116 |
|
|
117 |
|
//-------------------------------------------------------------------------------------------------- |
118 |
|
|
119 |
< |
Bool_t MVATools::PassMVASelection(const Photon* p,const Vertex* vtx,const TrackCol* trackCol,const VertexCol* vtxCol,Double_t _tRho,const ElectronCol* els,double MVAPtMin, Float_t bdtCutBarrel, Float_t bdtCutEndcap) { |
119 |
> |
Bool_t MVATools::PassMVASelection(const Photon* p,const Vertex* vtx,const TrackCol* trackCol,const VertexCol* vtxCol,Double_t _tRho,const ElectronCol* els,double MVAPtMin, Float_t bdtCutBarrel, Float_t bdtCutEndcap, Bool_t applyEleVeto) { |
120 |
|
|
121 |
|
// these values are taken from the H2GGlobe code... (actually from Marco/s mail) |
122 |
|
float cic4_allcuts_temp_sublead[] = { |
143 |
|
|
144 |
|
wVtxInd = 0; |
145 |
|
|
146 |
< |
trackIso1 = IsolationTools::CiCTrackIsolation(p,vtx, 0.3, 0.02, 0.0, 0.0, 0.1, 1.0, trackCol);//Question Ming:whyfPV->At(0) instead of selected vertex using ranking method? |
146 |
> |
trackIso1 = IsolationTools::CiCTrackIsolation(p,vtx, 0.3, 0.02, 0.0, 0.0, 0.1, 1.0, trackCol, NULL, NULL, (!applyEleVeto ? els : NULL) );//Question Ming:whyfPV->At(0) instead of selected vertex using ranking method? |
147 |
|
|
148 |
|
// track iso only |
149 |
< |
trackIso3 = IsolationTools::CiCTrackIsolation(p,vtx, 0.3, 0.02, 0.0, 0.0, 0.1, 1.0, trackCol); |
149 |
> |
trackIso3 = IsolationTools::CiCTrackIsolation(p,vtx, 0.3, 0.02, 0.0, 0.0, 0.1, 1.0, trackCol, NULL, NULL, (!applyEleVeto ? els : NULL)); |
150 |
|
|
151 |
|
// track iso worst vtx |
152 |
< |
trackIso2 = IsolationTools::CiCTrackIsolation(p,vtx, 0.4, 0.02, 0.0, 0.0, 0.1, 1.0, trackCol, &wVtxInd,vtxCol); |
152 |
> |
trackIso2 = IsolationTools::CiCTrackIsolation(p,vtx, 0.4, 0.02, 0.0, 0.0, 0.1, 1.0, trackCol, &wVtxInd,vtxCol, (!applyEleVeto ? els : NULL)); |
153 |
|
|
154 |
|
combIso1 = ecalIso3+hcalIso4+trackIso1 - 0.17*_tRho; |
155 |
|
combIso2 = ecalIso4+hcalIso4+trackIso2 - 0.52*_tRho; |
200 |
|
if ( !isbarrel ) _tCat = 3; |
201 |
|
if ( R9 < 0.94 ) _tCat++; |
202 |
|
|
203 |
< |
//Electron Veto |
204 |
< |
if(dRTrack > cic4_allcuts_temp_sublead[_tCat-1+6*4]){ |
203 |
> |
//Electron Veto (made electron Veto optinal (Fabian) ) |
204 |
> |
if(dRTrack > cic4_allcuts_temp_sublead[_tCat-1+6*4] || !applyEleVeto ){ |
205 |
|
PassElecVeto=kTRUE; |
206 |
|
} |
207 |
|
|