Changeset 94 in svn for trunk/Resolutions.cpp
- Timestamp:
- Dec 12, 2008, 5:32:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Resolutions.cpp
r89 r94 236 236 237 237 //input generator level particle for jet algorithm 238 if(particle->Status == 1 && eta < DET-> MAX_CALO_FWD)238 if(particle->Status == 1 && eta < DET->CEN_max_calo_fwd) 239 239 { 240 240 input_particlesGEN.push_back(fastjet::PseudoJet(genMomentum.Px(),genMomentum.Py(),genMomentum.Pz(), genMomentum.E())); … … 246 246 if( (particle->Status == 1) && 247 247 ((pid != pNU1) && (pid != pNU2) && (pid != pNU3)) && 248 (fabs(particle->Eta) < DET-> MAX_CALO_FWD)248 (fabs(particle->Eta) < DET->CEN_max_calo_fwd) 249 249 ) 250 250 { … … 260 260 case pE: // all electrons with eta < DET->MAX_CALO_FWD 261 261 DET->SmearElectron(recoMomentum); 262 if(recoMomentum.E() !=0 && eta < DET-> MAX_TRACKER){262 if(recoMomentum.E() !=0 && eta < DET->CEN_max_tracker){ 263 263 elementElec=(RESOLELEC*) branchelec->NewEntry(); 264 264 elementElec->E = genMomentum.E(); … … 287 287 int charge=Charge(pid); 288 288 if(recoMomentum.E() !=0 && pid != pMU) { 289 if(charge == 0 || (charge !=0 && recoMomentum.Pt() >= DET-> PT_TRACKS_MIN)){289 if(charge == 0 || (charge !=0 && recoMomentum.Pt() >= DET->TRACK_ptmin)){ 290 290 towers.push_back(PhysicsTower(LorentzVector(recoMomentum.Px(),recoMomentum.Py(),recoMomentum.Pz(), recoMomentum.E()))); 291 291 input_particlesReco.push_back(fastjet::PseudoJet(recoMomentum.Px(),recoMomentum.Py(),recoMomentum.Pz(), recoMomentum.E())); … … 296 296 if( 297 297 (genMomentum.E()!=0) && 298 (fabs(genMomentum.Eta()) < DET-> MAX_TRACKER) &&299 (genMomentum.Pt() > DET-> PT_TRACKS_MIN) && // pt too small to be taken into account300 ((rand()%100) < DET->TRACK ING_EFF) &&298 (fabs(genMomentum.Eta()) < DET->CEN_max_tracker) && 299 (genMomentum.Pt() > DET->TRACK_ptmin ) && // pt too small to be taken into account 300 ((rand()%100) < DET->TRACK_eff) && 301 301 (charge!=0) 302 302 ) … … 346 346 TLorentzVector JETT(0,0,0,0); 347 347 JETT.SetPxPyPzE(sorted_jetsReco[i].px(),sorted_jetsReco[i].py(),sorted_jetsReco[i].pz(),sorted_jetsReco[i].E()); 348 if(fabs(JETT.Eta()) < (DET-> MAX_TRACKER - DET->TAU_CONE_TRACKS))348 if(fabs(JETT.Eta()) < (DET->CEN_max_tracker - DET->TAU_track_scone)) 349 349 { 350 350 for(Int_t i=0; i<TausHadr.GetEntries();i++) … … 354 354 elementTaujet= (TAUHAD*) branchtaujet->NewEntry(); 355 355 elementTaujet->EnergieCen = (DET->EnergySmallCone(towers,JETT.Eta(),JETT.Phi())/JETT.E()); 356 elementTaujet->NumTrack = DET->NumTracks(TrackCentral,DET-> PT_TRACK_TAU,JETT.Eta(),JETT.Phi());356 elementTaujet->NumTrack = DET->NumTracks(TrackCentral,DET->TAU_track_pt,JETT.Eta(),JETT.Phi()); 357 357 } 358 358 }
Note:
See TracChangeset
for help on using the changeset viewer.