Changeset 305 in svn
- Timestamp:
- Mar 9, 2009, 11:40:41 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Delphes.cpp
r304 r305 579 579 elementElec->PhiCalo = electron[i].PhiCalo(); 580 580 elementElec->Charge = sign(electron[i].PID()); 581 elementElec->IsolFlag = DET->Isolation(electron[i].Phi(),electron[i].Eta(),TrackCentral,2.0);//isolation based on tracks 581 //elementElec->IsolFlag = DET->Isolation(electron[i].Phi(),electron[i].Eta(),TrackCentral,2.0,0.5);//isolation based on tracks 582 elementElec->IsolFlag = DET->Isolation(electron[i].Phi(),electron[i].Eta(),TrackCentral,DET->ISOL_PT,DET->ISOL_Cone);//isolation based on tracks 582 583 } /////////////// HARDCODING 583 584 DET->SortedVector(muon); … … 588 589 elementMu->EtaCalo = muon[i].EtaCalo(); 589 590 elementMu->PhiCalo = muon[i].PhiCalo(); 590 elementMu->IsolFlag = DET->Isolation(muon[i].Phi(),muon[i].Eta(),TrackCentral,2.0); /////////////// HARDCODING 591 //elementMu->IsolFlag = DET->Isolation(muon[i].Phi(),muon[i].Eta(),TrackCentral,2.0,0.5); /////////////// HARDCODING 592 elementMu->IsolFlag = DET->Isolation(muon[i].Phi(),muon[i].Eta(),TrackCentral,DET->ISOL_PT,DET->ISOL_Cone); /////////////// HARDCODING 591 593 } 592 594 DET->SortedVector(gamma); -
trunk/data/DetectorCard.dat
r303 r305 54 54 PTCUT_taujet 10.0 55 55 56 ISOL_PT 2.0 //minimal pt of tracks for isolation criteria 57 ISOL_Cone 0.5 //Cone for isolation criteria 58 59 56 60 # General jet variable 57 61 JET_coneradius 0.7 // generic jet radius ; not for tau's !!! -
trunk/data/DetectorCard_ATLAS.dat
r302 r305 54 54 PTCUT_taujet 10.0 55 55 56 ISOL_PT 2.0 //minimal pt of tracks for isolation criteria 57 ISOL_Cone 0.5 //Cone for isolation criteria 58 59 56 60 # General jet variable 57 61 JET_coneradius 0.7 // generic jet radius ; not for tau's !!! -
trunk/data/DetectorCard_CMS.dat
r303 r305 54 54 PTCUT_taujet 10.0 55 55 56 ISOL_PT 2.0 //minimal pt of tracks for isolation criteria 57 ISOL_Cone 0.5 //Cone for isolation criteria 58 59 56 60 # General jet variable 57 61 JET_coneradius 0.7 // generic jet radius ; not for tau's !!! -
trunk/interface/SmearUtil.h
r287 r305 152 152 float PTCUT_gamma; 153 153 float PTCUT_taujet; 154 155 float ISOL_PT; //minimal pt of tracks for isolation criteria 156 float ISOL_Cone; //Cone for isolation criteria 154 157 155 158 //General jet variable … … 228 231 /// Lepton isolation 229 232 //bool Isolation(const float phi, const float eta,const vector<TLorentzVector> &tracks,float PT_TRACK2); 230 bool Isolation(const float phi, const float eta,const vector<TRootTracks> &tracks, const float PT_TRACK2 );233 bool Isolation(const float phi, const float eta,const vector<TRootTracks> &tracks, const float PT_TRACK2, const float isolCone); 231 234 232 235 //********************* returns a segmented value for eta and phi, for calo towers ***** -
trunk/src/SmearUtil.cc
r287 r305 102 102 PTCUT_taujet = 10.0; 103 103 104 ISOL_PT = 2.0; //minimal pt of tracks for isolation criteria 105 ISOL_Cone = 0.5; //Cone for isolation criteria 106 107 104 108 // General jet variable 105 109 JET_coneradius = 0.7; // generic jet radius ; not for tau's !!! … … 223 227 PTCUT_taujet = DET.PTCUT_taujet; 224 228 229 ISOL_PT = DET.ISOL_PT; //minimal pt of tracks for isolation criteria 230 ISOL_Cone = DET.ISOL_Cone; //Cone for isolation criteria 231 232 225 233 // General jet variable 226 234 JET_coneradius = DET.JET_coneradius; … … 336 344 PTCUT_gamma = DET.PTCUT_gamma; 337 345 PTCUT_taujet = DET.PTCUT_taujet; 346 347 ISOL_PT = DET.ISOL_PT; //minimal pt of tracks for isolation criteria 348 ISOL_Cone = DET.ISOL_Cone; //Cone for isolation criteria 349 338 350 339 351 // General jet variable … … 482 494 else if(strstr(temp_string.c_str(),"PTCUT_taujet")) {curstring >> varname >> value; PTCUT_taujet = value;} 483 495 496 else if(strstr(temp_string.c_str(),"ISOL_PT")) {curstring >> varname >> value; ISOL_PT = value;} 497 else if(strstr(temp_string.c_str(),"ISOL_Cone")) {curstring >> varname >> value; ISOL_Cone = value;} 498 499 484 500 else if(strstr(temp_string.c_str(),"JET_coneradius")) {curstring >> varname >> value; JET_coneradius = value;} 485 501 else if(strstr(temp_string.c_str(),"JET_jetalgo")) {curstring >> varname >> ivalue;JET_jetalgo = ivalue;} … … 745 761 << left << setw(20) <<PTCUT_gamma <<""<< right << setw(10)<<"*"<<"\n"; 746 762 f_out<<"* *"<<"\n"; 763 f_out<<"#******************* *"<<"\n"; 764 f_out<<"# Isolation criteria *"<<"\n"; 765 f_out<<"#******************* *"<<"\n"; 766 f_out<<"* *"<<"\n"; 767 f_out << left << setw(40) <<"* Minimum pT for tracks [GeV]: "<<"" 768 << left << setw(20) <<ISOL_PT <<""<< right << setw(10)<<"*"<<"\n"; 769 f_out << left << setw(40) <<"* Cone for isolation criteria: "<<"" 770 << left << setw(20) <<ISOL_Cone <<""<< right << setw(10)<<"*"<<"\n"; 771 f_out<<"* *"<<"\n"; 747 772 f_out<<"#*************** *"<<"\n"; 748 773 f_out<<"# Jet definition *"<<"\n"; … … 1050 1075 //**************************************************************** 1051 1076 //bool RESOLution::Isolation(const float phi, const float eta,const vector<TLorentzVector> &tracks, const float pt_second_track) 1052 bool RESOLution::Isolation(const float phi, const float eta,const vector<TRootTracks> &tracks, const float pt_second_track )1077 bool RESOLution::Isolation(const float phi, const float eta,const vector<TRootTracks> &tracks, const float pt_second_track, const float isolCone) 1053 1078 { 1054 1079 bool isolated = false; … … 1065 1090 deltar=genDeltaR; 1066 1091 } 1067 if(deltar > 0.5) isolated = true;1092 if(deltar > isolCone) isolated = true; 1068 1093 return isolated; 1069 1094 }
Note:
See TracChangeset
for help on using the changeset viewer.