Changeset 9234 for trunk/MagicSoft/Mars/msim
- Timestamp:
- 01/21/09 14:26:15 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msim/MHPhotonEvent.cc
r9232 r9234 44 44 // 45 45 // Type 3: 46 // The maximum in x and y is determined from M Camera->GetMaxR();46 // The maximum in x and y is determined from MGeomCam->GetMaxR(); 47 47 // 48 48 // Type 4: 49 49 // As type 3 but divided by 10. 50 50 // 51 // Type 5:52 // The maximum in x and y is determined from MGeomCam->GetMaxR();53 //54 // Type 6:55 // As type 5 but divided by 10.56 //57 51 // The binning is optimized using MH::FindGoodLimits. The number of bins 58 // in 100 in the default case and 50 for type 3- 6.52 // in 100 in the default case and 50 for type 3-4. 59 53 // 60 54 // Fill expects a MPhotonEvent (the second argumnet in MFillH). … … 78 72 #include "MCorsikaRunHeader.h" 79 73 80 #include " ../msimreflector/MSimReflector.h" // MCamera, MReflector74 #include "MReflector.h" 81 75 82 76 ClassImp(MHPhotonEvent); … … 198 192 case 4: 199 193 { 200 MCamera *c = (MCamera*)pList->FindObject("MCamera");201 if (!c)202 {203 *fLog << err << "MCamera not found... aborting." << endl;204 return kFALSE;205 }206 xmax = fType==3 ? c->GetMaxR() : c->GetMaxR()/10;207 num = 50;208 209 break;210 }211 case 5:212 case 6:213 {214 194 MGeomCam *c = (MGeomCam*)pList->FindObject("MGeomCam"); 215 195 if (!c) … … 218 198 return kFALSE; 219 199 } 220 xmax = fType== 5 ? c->GetMaxRadius() : c->GetMaxRadius()/10;200 xmax = fType==3 ? c->GetMaxRadius()/10 : c->GetMaxRadius()/100; 221 201 num = 50; 222 202
Note:
See TracChangeset
for help on using the changeset viewer.