Changeset 33 in svn for trunk/Delphes.cpp
- Timestamp:
- Nov 17, 2008, 9:01:32 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Delphes.cpp
r30 r33 339 339 PTmis = PTmis + genMomentum;//ptmis 340 340 if(pid !=pMU) { 341 341 342 towers.push_back(PhysicsTower(LorentzVector(genMomentum.Px(),genMomentum.Py(),genMomentum.Pz(), genMomentum.E()))); 342 343 // create a fastjet::PseudoJet with these components and put it onto … … 449 450 450 451 for(unsigned int i=0; i < electron.size(); i++) { 451 if(electron[i].E()!=0 && fabs(electron[i].Eta()) < DET->MAX_TRACKER )452 if(electron[i].E()!=0 && fabs(electron[i].Eta()) < DET->MAX_TRACKER && electron[i].Pt() > DET->ELEC_pt) 452 453 { 453 454 elementElec = (TRootElectron*) branchElectron->NewEntry(); … … 458 459 } 459 460 for(unsigned int i=0; i < muon.size(); i++) { 460 if(muon[i].E()!=0 && fabs(muon[i].Eta()) < DET->MAX_MU )461 if(muon[i].E()!=0 && fabs(muon[i].Eta()) < DET->MAX_MU && muon[i].Pt() > DET->MUON_pt) 461 462 { 462 463 elementMu = (TRootMuon*) branchMuon->NewEntry(); … … 494 495 TLorentzVector JET; 495 496 JET.SetPxPyPzE(sorted_jets[i].px(),sorted_jets[i].py(),sorted_jets[i].pz(),sorted_jets[i].E()); 496 //cout<<"Jet.Pt() "<<JET.Pt()<<endl; 497 elementJet->Set(JET); 498 // b-jets 499 bool btag=false; 500 if((fabs(JET.Eta()) < DET->MAX_TRACKER && DET->Btaggedjet(JET, NFCentralQ)))btag=true; 501 elementJet->Btag = btag; 502 503 // Tau jet identification : 1! track and electromagnetic collimation 504 if(fabs(JET.Eta()) < (DET->MAX_TRACKER - DET->TAU_CONE_TRACKS)) { 505 double Energie_tau_central = DET->EnergySmallCone(towers,JET.Eta(),JET.Phi()); 506 if( 507 ( Energie_tau_central/JET.E() > DET->TAU_EM_COLLIMATION ) && 508 ( DET->NumTracks(TrackCentral,DET->PT_TRACK_TAU,JET.Eta(),JET.Phi()) == 1 ) 509 ) { 510 elementTauJet = (TRootTauJet*) branchTauJet->NewEntry(); 511 elementTauJet->Set(JET); 512 } // if tau jet 513 } // if JET.eta < tracker - tau_cone : Tau jet identification 497 // Tau jet identification : 1! track and electromagnetic collimation 498 if(fabs(JET.Eta()) < (DET->MAX_TRACKER - DET->TAU_CONE_TRACKS)) { 499 double Energie_tau_central = DET->EnergySmallCone(towers,JET.Eta(),JET.Phi()); 500 if( 501 ( Energie_tau_central/JET.E() > DET->TAU_EM_COLLIMATION ) && 502 ( DET->NumTracks(TrackCentral,DET->PT_TRACK_TAU,JET.Eta(),JET.Phi()) == 1 ) && 503 ( JET.Pt() > DET->TAUJET_pt) 504 ) { 505 elementTauJet = (TRootTauJet*) branchTauJet->NewEntry(); 506 elementTauJet->Set(JET); 507 } // if tau jet 508 } // if JET.eta < tracker - tau_cone : Tau jet identification 509 510 if(JET.Pt() > DET->JET_pt) 511 { 512 elementJet->Set(JET); 513 // b-jets 514 bool btag=false; 515 if((fabs(JET.Eta()) < DET->MAX_TRACKER && DET->Btaggedjet(JET, NFCentralQ)))btag=true; 516 elementJet->Btag = btag; 517 } 514 518 } // for itJet : loop on all jets 515 519
Note:
See TracChangeset
for help on using the changeset viewer.