Changeset 0b8551f in git for external/TrackCovariance/SolGeom.cc
- Timestamp:
- Nov 29, 2021, 4:04:38 PM (3 years ago)
- Branches:
- master
- Children:
- 0c0c9af
- Parents:
- 9a7ea36 (diff), bd376e3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Michele Selvaggi <michele.selvaggi@…> (11/29/21 16:04:38)
- git-committer:
- GitHub <noreply@…> (11/29/21 16:04:38)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/TrackCovariance/SolGeom.cc
r9a7ea36 r0b8551f 87 87 if (flLay == 1) fNm++; 88 88 } 89 // 90 // Define inner box for fast tracking 91 // 92 SetMinBoundaries(); 89 93 } 90 94 … … 104 108 delete[] fflLay; 105 109 } 110 111 // 112 // Get inner boundaries of cylindrical box for fast simulation 113 // 114 void SolGeom::SetMinBoundaries() 115 { 116 // Get radius of first barrel layer 117 fRmin = 1000000.0; 118 fZminPos = 1000000.0; 119 fZminNeg = -1000000.0; 120 for (Int_t i = 0; i < fNlay; i++){ 121 if (ftyLay[i] == 1) { // Cylinders 122 if (frPos[i] < fRmin) fRmin = frPos[i]; 123 } 124 if (ftyLay[i] == 2) { // Disks 125 if (frPos[i] > 0.0 && frPos[i] < fZminPos) fZminPos = frPos[i]; // Positive direction 126 if (frPos[i] < 0.0 && frPos[i] > fZminNeg) fZminNeg = frPos[i]; // Negative direction 127 } 128 } 129 }
Note:
See TracChangeset
for help on using the changeset viewer.