Changeset 19993 for trunk/Mars/mmc/MMcEvtBasic.cc
- Timestamp:
- 09/21/20 11:22:10 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mmc/MMcEvtBasic.cc
r19992 r19993 18 18 ! Author(s): Abelardo Moralejo, 02/2005 <mailto:moralejo@pd.infn.it> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-20 0520 ! Copyright: MAGIC Software Development, 2000-2020 21 21 ! 22 22 ! … … 93 93 Float_t fImpa, Float_t fTPhii, Float_t fTThet) 94 94 : fPartId(usPId), fEnergy(fEner), fImpact(fImpa), 95 fTelescopePhi(fTPhii), fTelescopeTheta(fTThet), fTheta(0), fPhi(0) 95 fTelescopePhi(fTPhii), fTelescopeTheta(fTThet), fTheta(0), fPhi(0), fCoreX(0), fCoreY(0) 96 96 { 97 97 fName = "MMcEvtBasic"; … … 112 112 fPhi = evt.fPhi; 113 113 fTheta = evt.fTheta; 114 fCoreX = evt.fCoreX; 115 fCoreY = evt.fCoreY; 114 116 } 115 117 … … 130 132 fTheta = 0; 131 133 fPhi = 0; 134 135 fCoreX = 0; 136 fCoreY = 0; 132 137 } 133 138 … … 237 242 *fLog << "Energy: " << fEnergy << "GeV" << endl; 238 243 if (str.Contains("impact", TString::kIgnoreCase)) 239 *fLog << "Impact: " << fImpact << "cm " << endl;244 *fLog << "Impact: " << fImpact << "cm [x=" << fCoreX << ", y=" << fCoreY << "]" << endl; 240 245 } 241 246 … … 256 261 if (!fin.SetRefAddress("MMcEvtBasic.fPhi", fPhi )) return kFALSE; 257 262 263 // Written to MMcEvt for MMcEvtBasic < V4 264 if (fin.HasColumn("MMcEvtBasic.fCoreX")) 265 if (!fin.SetRefAddress("MMcEvtBasic.fCoreX", fCoreX)) 266 return kFALSE; 267 268 if (fin.HasColumn("MMcEvtBasic.fCoreY")) 269 if (!fin.SetRefAddress("MMcEvtBasic.fCoreY", fCoreY)) 270 return kFALSE; 271 258 272 return kTRUE; 259 273 }
Note:
See TracChangeset
for help on using the changeset viewer.