Changeset 33 in svn
- Timestamp:
- Nov 17, 2008, 9:01:32 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 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 -
trunk/data/DataCardDet.dat
r32 r33 31 31 HAD_Chf 0.13 // C term for HF 32 32 33 34 33 # muon smearing 35 34 MU_SmearPt 0.01 35 36 #thresholds for reconstructed objects 37 ELEC_pt 10 38 MUON_pt 10 39 JET_pt 20 40 TAUJET_pt 10 36 41 37 42 #For Tau-jet definition -
trunk/interface/SmearUtil.h
r32 r33 67 67 // muon smearing 68 68 float MU_SmearPt; 69 69 70 //threshold for reconstructed objetcs 71 float ELEC_pt; 72 float MUON_pt; 73 float JET_pt; 74 float TAUJET_pt; 75 70 76 //For Tau-jet definition 71 77 // R = sqrt (phi^2 + eta^2) -
trunk/src/SmearUtil.cc
r32 r33 47 47 ELG_Nfwd = 0.0 ; // N term for central ECAL 48 48 49 HAD_Secal = 0.05 ; // S term for central ECAL // electromagnetic calorimeter50 HAD_Necal = 0.25 ; // N term for central ECAL51 HAD_Cecal = 0.0055 ; // C term for central ECAL52 49 HAD_Shcal = 0.91 ; // S term for central HCAL // hadronic calorimeter 53 50 HAD_Nhcal = 0. ; // N term for central HCAL … … 58 55 59 56 MU_SmearPt = 0.01 ; 57 58 ELEC_pt = 10.0; 59 MUON_pt = 10.0; 60 JET_pt = 20.0; 61 TAUJET_pt = 10.0; 62 60 63 61 64 TAU_CONE_ENERGY = 0.15 ; // Delta R = radius of the cone // for "electromagnetic collimation" … … 139 142 else if(strstr(temp_string.c_str(),"JETALGO")){curstring >> varname >> value; JETALGO = (int)value;} 140 143 else if(strstr(temp_string.c_str(),"TRACKING_EFF")){curstring >> varname >> value; TRACKING_EFF = (int)value;} 144 else if(strstr(temp_string.c_str(),"ELEC_pt")){curstring >> varname >> value; ELEC_pt = value;} 145 else if(strstr(temp_string.c_str(),"MUON_pt")){curstring >> varname >> value; MUON_pt = value;} 146 else if(strstr(temp_string.c_str(),"JET_pt")){curstring >> varname >> value; JET_pt = value;} 147 else if(strstr(temp_string.c_str(),"TAUJET_pt")){curstring >> varname >> value; TAUJET_pt = value;} 148 141 149 } 142 150 … … 177 185 pow(ELG_Sfwd*sqrt(energy),2) ) ); 178 186 } 179 float theta=electron.Theta();180 float phi=electron.Phi();181 float px = energyS * sin(theta) * cos(phi);182 float py = energyS * sin(theta) * sin(phi);183 float pz = energyS * cos(theta);184 //cout<<" px "<<px<<" py "<<py<<" pz "<<pz<<endl;185 187 electron.SetPtEtaPhiE(energyS/cosh(electron.Eta()), electron.Eta(), electron.Phi(), energyS); 186 //cout<<"nous "<<electron.Px()<<" "<<electron.Py()<<" "<<electron.Pz()<<endl;187 188 if(electron.E() < 0)electron.SetPxPyPzE(0,0,0,0); // no negative values after smearing ! 188 189 }
Note:
See TracChangeset
for help on using the changeset viewer.