Changeset fec809d in git for modules/EnergyLoss.cc
- Timestamp:
- Jan 27, 2020, 12:26:15 PM (5 years ago)
- Branches:
- Timing
- Children:
- 32b2ff1
- Parents:
- 6777565
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/EnergyLoss.cc
r6777565 rfec809d 81 81 fX1 = GetDouble("x1", 2.8716); 82 82 fI = GetDouble("I", 173.0); // mean excitation potential in (eV) 83 f X0 = GetDouble("c0", 4.4355);83 fC0 = GetDouble("c0", 4.4355); 84 84 85 85 // import arrays with output from other modules … … 120 120 void EnergyLoss::Process() 121 121 { 122 Candidate *candidate , *particle;122 Candidate *candidate; 123 123 vector<TIterator *>::iterator itInputList; 124 124 TIterator *iterator; … … 131 131 vector<Double_t> elosses; 132 132 133 cout<<"---------------- new event -------------------"<<endl;133 //cout<<"---------------- new event -------------------"<<endl; 134 134 135 135 … … 143 143 while((candidate = static_cast<Candidate *>(iterator->Next()))) 144 144 { 145 cout<<" ---------------- new candidate -------------------"<<endl;145 //cout<<" ---------------- new candidate -------------------"<<endl; 146 146 const TLorentzVector &candidateMomentum = candidate->Momentum; 147 147 … … 149 149 gamma = candidateMomentum.Gamma(); 150 150 charge = TMath::Abs(candidate->Charge); 151 151 152 152 153 // length of the track normalized by the fraction of active material and the charge collection efficiency in the tracker (in cm) … … 161 162 nhits = Int_t(L*fActiveFraction/dx); 162 163 164 165 //beta = 0.999945; 166 //gamma = 95.6446; 167 //charge = 1.; 168 //nhits = 100; 169 163 170 //cout<<L<<","<<fActiveFraction<<","<<dx<<","<<nhits<<endl; 164 171 … … 180 187 dP = chi*( TMath::Log(Wmax/I) + TMath::Log(chi/I) + 0.2 - beta*beta - delta); 181 188 182 if (candidateMomentum.Pt() > 5) {183 189 //cout<<"L: "<<L<<", PT: "<<candidateMomentum.Pt()<<", Eta: "<<candidateMomentum.Eta()<<", Phi: "<< candidateMomentum.Phi()<<endl; 190 //cout<<"Nhits: "<<nhits<<", dx: "<<dx<<", Charge: "<<charge<<", Beta: "<< beta<<", Gamma: "<<gamma<<", PT: "<<candidateMomentum.Pt()<<endl; 184 191 //cout<<x<<","<<kappa<<endl; 185 cout<<" Wmax: "<<Wmax<<", Chi: "<<chi<<", delta: "<<delta<<", DeDx: "<<avdE<<", DeltaP: "<<dP<<endl; 186 } 192 //cout<<" Wmax: "<<Wmax<<", Chi: "<<chi<<", delta: "<<delta<<", DeDx: "<<avdE<<", DeltaP: "<<dP<<endl; 187 193 188 194 // simulate Nhits energy loss measurements
Note:
See TracChangeset
for help on using the changeset viewer.