Skip to content

Commit

Permalink
Bug fix in robust selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Sani committed Jun 23, 2010
1 parent 9c4eb1c commit 279b68e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/CutBasedElectronID.cc
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ double CutBasedElectronID::cicSelection(const reco::GsfElectron* electron,
sigmaee = sigmaee - 0.02*(fabs(eta) - 2.3); //correct sigmaetaeta dependence on eta in endcap
}

if (version_ != "V01" and version_ != "V00") {
if (version_ != "V01" or version_ != "V00") {
edm::Handle<reco::VertexCollection> vtxH;
e.getByLabel(verticesCollection_, vtxH);
if (vtxH->size() != 0) {
Expand Down Expand Up @@ -434,7 +434,7 @@ double CutBasedElectronID::robustSelection(const reco::GsfElectron* electron ,
sigmaee = sigmaee - 0.02*(fabs(eta) - 2.3); //correct sigmaetaeta dependence on eta in endcap
}

if (version_ == "V03" and version_ == "V04") {
if (version_ == "V03" or version_ == "V04") {
edm::Handle<reco::BeamSpot> pBeamSpot;
// uses the same name for the vertex collection to avoid adding more new names
e.getByLabel(verticesCollection_, pBeamSpot);
Expand Down Expand Up @@ -499,9 +499,9 @@ double CutBasedElectronID::robustSelection(const reco::GsfElectron* electron ,
result = 2.;
}

if ((hOverE > cut[0]) && (sigmaee > cut[1]) && (fabs(deltaPhiIn) > cut[2]) &&
(fabs(deltaEtaIn) > cut[3]) && (e25Maxoe55 < cut[4] && e15oe55 < cut[5]) &&
(sigmaee < cut[18]) && (eOverP < cut[19] || eOverP > cut[20]) ) {
if ((hOverE < cut[0]) && (sigmaee < cut[1]) && (fabs(deltaPhiIn) < cut[2]) &&
(fabs(deltaEtaIn) < cut[3]) && (e25Maxoe55 > cut[4] && e15oe55 > cut[5]) &&
(sigmaee >= cut[18]) && (eOverP > cut[19] && eOverP < cut[20]) ) {
result = result + 1;
}

Expand Down

0 comments on commit 279b68e

Please sign in to comment.