Changeset 19993
- Timestamp:
- 09/21/20 11:22:10 (4 years ago)
- Location:
- trunk/Mars/mmc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mmc/MMcEvt.cxx
r19992 r19993 18 18 ! Author(s): 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-20 0720 ! Copyright: MAGIC Software Development, 2000-2020 21 21 ! 22 22 ! … … 127 127 void MMcEvt::Clear(Option_t *opt) 128 128 { 129 MMcEvtBasic::Clear(); 130 129 131 fRunNumber = 0; 130 132 131 fPartId = kUNDEFINED;132 fEnergy = -1;133 134 133 fCoreD = 0; 135 fCoreX = 0;136 fCoreY = 0;137 fImpact = -1;138 134 139 135 fPhotIni = 0; … … 282 278 if (!fin.SetRefAddress("MMcEvt.fZFirstInteraction", fZFirstInteraction)) return kFALSE; 283 279 if (!fin.SetRefAddress("MMcEvt.fCoreD", fCoreD )) return kFALSE; 284 if (!fin.SetRefAddress("MMcEvt.fCoreX", fCoreX )) return kFALSE;285 if (!fin.SetRefAddress("MMcEvt.fCoreY", fCoreY )) return kFALSE;286 280 if (!fin.SetRefAddress("MMcEvt.fTimeFirst", fTimeFirst )) return kFALSE; 287 281 if (!fin.SetRefAddress("MMcEvt.fTimeLast", fTimeLast )) return kFALSE; … … 310 304 return kFALSE; 311 305 306 // Written to MmcEvtBasic for MMcEvt > V8 307 if (fin.HasColumn("MMcEvt.fCoreX")) 308 if (!fin.SetRefAddress("MMcEvt.fCoreX", fCoreX)) 309 return kFALSE; 310 311 if (fin.HasColumn("MMcEvt.fCoreY")) 312 if (!fin.SetRefAddress("MMcEvt.fCoreY", fCoreY)) 313 return kFALSE; 314 312 315 return MMcEvtBasic::SetupFits(fin); 313 316 } -
trunk/Mars/mmc/MMcEvt.hxx
r19992 r19993 70 70 UInt_t GetEvtNumber() const { return fEvtNumber; } //Get Event Number 71 71 72 Float_t GetCoreX() const { return fCoreX; } //Get Core x pos73 Float_t GetCoreY() const { return fCoreY; } //Get Core y pos74 75 72 UInt_t GetPhotIni() const { return fPhotIni; } //Get Initial photons 76 73 UInt_t GetPassPhotAtm() const { return fPassPhotAtm;} //Get Passed atmosphere … … 99 96 // Setter 100 97 void SetCoreD(Float_t CoreD) { fCoreD=CoreD; } //Set Core d pos 101 void SetCoreX(Float_t CoreX) { fCoreX=CoreX; } //Set Core x pos102 void SetCoreY(Float_t CoreY) { fCoreY=CoreY; } //Set Core y pos103 98 104 99 void SetRunNumber(UInt_t n) { fRunNumber=n; } -
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 } -
trunk/Mars/mmc/MMcEvtBasic.h
r19992 r19993 63 63 //Float_t GetPhi() const { return fPhi ; } 64 64 65 Float_t GetCoreX() const { return fCoreX; } //Get Core x pos 66 Float_t GetCoreY() const { return fCoreY; } //Get Core y pos 67 65 68 static TString GetParticleName(Int_t id); 66 69 static TString GetParticleSymbol(Int_t id); … … 96 99 //void SetPhi(Float_t Phi) { fPhi=Phi; } //Set Phi angle 97 100 101 void SetCoreX(Float_t CoreX) { fCoreX=CoreX; } //Set Core x pos 102 void SetCoreY(Float_t CoreY) { fCoreY=CoreY; } //Set Core y pos 103 98 104 void Fill(ParticleId_t, Float_t, Float_t, Float_t, Float_t); 99 105
Note:
See TracChangeset
for help on using the changeset viewer.