- Timestamp:
- 06/24/10 16:42:52 (15 years ago)
- Location:
- trunk/MagicSoft/include-Classes/MMcFormat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.cxx
r8907 r9596 52 52 // - added fEventReuse 53 53 // 54 // Version 7: 55 // - moved fPhi to MMcEvtBasic 56 // - moved fTheta to MmcEvtBasic 57 // 54 58 ///////////////////////////////////////////////////////////////////////////// 55 59 #include "MMcEvt.hxx" … … 116 120 fPartId = kUNDEFINED; 117 121 fEnergy = -1; 118 119 fTheta = 0;120 fPhi = 0;121 122 122 123 fCoreD = 0; -
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvtBasic.cc
r9313 r9596 49 49 // - replaced MMcEvt::ParticleId_t by ParticleId_t 50 50 // 51 // Version 3: 52 // - moved fPhi from MMcEvt 53 // - moved fTheta from MmcEvt 54 // 51 55 ///////////////////////////////////////////////////////////////////////////// 52 56 #include "MMcEvtBasic.h" … … 81 85 // 82 86 MMcEvtBasic::MMcEvtBasic(ParticleId_t usPId, Float_t fEner, 83 Float_t fImpa, Float_t fTPhii, Float_t fTThet) 87 Float_t fImpa, Float_t fTPhii, Float_t fTThet) 88 : fPartId(usPId), fEnergy(fEner), fImpact(fImpa), 89 fTelescopePhi(fTPhii), fTelescopeTheta(fTThet), fTheta(0), fPhi(0) 84 90 { 85 91 fName = "MMcEvtBasic"; 86 92 fTitle = "Basic event info from Monte Carlo"; 87 88 Fill(usPId, fEner, fImpa, fTPhii, fTThet);89 93 } 90 94 … … 100 104 fTelescopePhi = evt.fTelescopePhi; 101 105 fTelescopeTheta = evt.fTelescopeTheta; 102 } 103 104 // -------------------------------------------------------------------------- 105 // 106 // Reset all values: Fill(kUNDEFINED, -1, -1, 0, 0) 106 fPhi = evt.fPhi; 107 fTheta = evt.fTheta; 108 } 109 110 // -------------------------------------------------------------------------- 111 // 112 // Reset all values. 107 113 // 108 114 void MMcEvtBasic::Clear(Option_t *opt) 109 115 { 110 Fill(kUNDEFINED, -1, -1, 0, 0); 116 fPartId = kUNDEFINED; 117 118 fEnergy = -1; 119 fImpact = -1; 120 121 fTelescopePhi = 0; 122 fTelescopeTheta = 0; 123 124 fTheta = 0; 125 fPhi = 0; 111 126 } 112 127
Note:
See TracChangeset
for help on using the changeset viewer.