Changeset 619 for trunk/MagicSoft
- Timestamp:
- 02/22/01 20:14:48 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.cxx
r609 r619 21 21 // set all values to zero 22 22 23 usPartId = 0 ;23 fPartId = 0 ; 24 24 fEnergy = 0. ; 25 25 … … 32 32 fImpact = 0. ; 33 33 34 usPhotIni = 0 ; 35 usPassPhotAtm = 0 ; 36 usPassPhotRef = 0 ; 37 usPassPhotCone = 0 ; 38 usPhotEl = 0 ; 34 fPhotIni = 0 ; 35 fPassPhotAtm = 0 ; 36 fPassPhotRef = 0 ; 37 fPassPhotCone = 0 ; 38 fPhotElfromShower = 0 ; 39 fPhotElinCamera = 0 ; 39 40 } 40 41 … … 47 48 Float_t fCorY, 48 49 Float_t fImpa, 49 UShort_t usPin, 50 UShort_t usPat, 51 UShort_t usPre, 52 UShort_t usPco, 53 UShort_t usPel ) { 50 UInt_t uiPin, 51 UInt_t uiPat, 52 UInt_t uiPre, 53 UInt_t uiPco, 54 UInt_t uiPelS, 55 UInt_t uiPelC ) { 54 56 // 55 57 // constuctor II … … 60 62 // 61 63 62 usPartId = usPId ;64 fPartId = usPId ; 63 65 fEnergy = fEner ; 64 66 … … 71 73 fImpact = fImpa ; 72 74 73 usPhotIni = usPin ; 74 usPassPhotAtm = usPat ; 75 usPassPhotRef = usPre ; 76 usPassPhotCone = usPco ; 77 usPhotEl = usPel ; 75 fPhotIni = uiPin ; 76 fPassPhotAtm = uiPat ; 77 fPassPhotRef = uiPre ; 78 fPassPhotCone = uiPco ; 79 fPhotElfromShower = uiPelS ; 80 fPhotElinCamera = uiPelC ; 78 81 } 79 82 … … 94 97 // reset all values to zero 95 98 96 usPartId = 0 ;99 fPartId = 0 ; 97 100 fEnergy = 0. ; 98 101 … … 105 108 fImpact = 0. ; 106 109 107 usPhotIni = 0 ; 108 usPassPhotAtm = 0 ; 109 usPassPhotRef = 0 ; 110 usPassPhotCone = 0 ; 111 usPhotEl = 0 ; 110 fPhotIni = 0 ; 111 fPassPhotAtm = 0 ; 112 fPassPhotRef = 0 ; 113 fPassPhotCone = 0 ; 114 fPhotElfromShower = 0 ; 115 fPhotElinCamera = 0 ; 112 116 } 117 113 118 void MMcEvt::Fill( UShort_t usPId, 114 119 Float_t fEner, … … 119 124 Float_t fCorY, 120 125 Float_t fImpa, 121 UShort_t usPin, 122 UShort_t usPat, 123 UShort_t usPre, 124 UShort_t usPco, 125 UShort_t usPel ) { 126 UInt_t uiPin, 127 UInt_t uiPat, 128 UInt_t uiPre, 129 UInt_t uiPco, 130 UInt_t uiPelS, 131 UInt_t uiPelC ) { 126 132 // 127 133 // All datamembers are filled with the correspondin parameters. … … 130 136 // 131 137 132 usPartId = usPId ;138 fPartId = usPId ; 133 139 fEnergy = fEner ; 134 140 … … 141 147 fImpact = fImpa ; 142 148 143 usPhotIni = usPin ; 144 usPassPhotAtm = usPat ; 145 usPassPhotRef = usPre ; 146 usPassPhotCone = usPco ; 147 usPhotEl = usPel ; 149 fPhotIni = uiPin ; 150 fPassPhotAtm = uiPat ; 151 fPassPhotRef = uiPre ; 152 fPassPhotCone = uiPco ; 153 fPhotElfromShower = uiPelS ; 154 fPhotElinCamera = uiPelC ; 148 155 } 149 156 … … 154 161 // print out the data member on screen 155 162 // 156 cout << endl << "Monte Carlo output:" <<endl;157 cout << " Particle Id : " << usPartId << endl;158 cout << " Energy [GeV]: " << fEnergy << endl;159 cout << " Impactpar. [m]: " << fImpact << endl;160 cout << " Photoelectrons : " << usPhotEl << endl;163 cout <<endl << "Monte Carlo output:" <<endl; 164 cout << " Particle Id : " << fPartId ; 165 cout << " Energy (GeV) : " << fEnergy ; 166 cout << " Impactpar. (m) : " << fImpact ; 167 cout << " Photoelectrons : " << fPhotElfromShower ; 161 168 cout << endl ; 162 169 } 163 164 165
Note:
See TracChangeset
for help on using the changeset viewer.