CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
AntiElectronIDCut2 Class Reference

#include <AntiElectronIDCut2.h>

Public Member Functions

 AntiElectronIDCut2 ()
 
void ApplyCut_EcalCrack (bool keepAll_, bool rejectAll_)
 
void ApplyCuts (bool applyCut_hcal3x3OverPLead, bool applyCut_leadPFChargedHadrEoP, bool applyCut_GammaEtaMom, bool applyCut_GammaPhiMom, bool applyCut_GammaEnFrac, bool applyCut_HLTSpecific)
 
template<typename T >
double Discriminator (const T &thePFTau)
 
double Discriminator (float TauPt, float TauEta, float TauLeadChargedPFCandPt, float TauLeadChargedPFCandEtaAtEcalEntrance, float TauLeadPFChargedHadrEoP, float TauHcal3x3OverPLead, const std::vector< float > &GammasdEta, const std::vector< float > &GammasdPhi, const std::vector< float > &GammasPt)
 
double Discriminator (float TauPt, float TauEta, float TauLeadChargedPFCandPt, float TauLeadChargedPFCandEtaAtEcalEntrance, float TauLeadPFChargedHadrEoP, float TauHcal3x3OverPLead, float TauGammaEtaMom, float TauGammaPhiMom, float TauGammaEnFrac)
 
void SetBarrelCutValues (float TauLeadPFChargedHadrEoP_min, float TauLeadPFChargedHadrEoP_max, float TauHcal3x3OverPLead_max, float TauGammaEtaMom_max, float TauGammaPhiMom_max, float TauGammaEnFrac_max)
 
void SetEcalCracks (const std::vector< pdouble > &etaCracks)
 
void SetEndcapCutValues (float TauLeadPFChargedHadrEoP_min_1, float TauLeadPFChargedHadrEoP_max_1, float TauLeadPFChargedHadrEoP_min_2, float TauLeadPFChargedHadrEoP_max_2, float TauHcal3x3OverPLead_max, float TauGammaEtaMom_max, float TauGammaPhiMom_max, float TauGammaEnFrac_max)
 
 ~AntiElectronIDCut2 ()
 

Private Member Functions

bool isInEcalCrack (double eta) const
 

Private Attributes

std::vector< pdoubleecalCracks_
 
bool keepAllInEcalCrack_
 
bool rejectAllInEcalCrack_
 
bool Tau_applyCut_GammaEnFrac_
 
bool Tau_applyCut_GammaEtaMom_
 
bool Tau_applyCut_GammaPhiMom_
 
bool Tau_applyCut_hcal3x3OverPLead_
 
bool Tau_applyCut_HLTSpecific_
 
bool Tau_applyCut_leadPFChargedHadrEoP_
 
float TauGammaEnFrac_barrel_max_
 
float TauGammaEnFrac_endcap_max_
 
float TauGammaEtaMom_barrel_max_
 
float TauGammaEtaMom_endcap_max_
 
float TauGammaPhiMom_barrel_max_
 
float TauGammaPhiMom_endcap_max_
 
float TauHcal3x3OverPLead_barrel_max_
 
float TauHcal3x3OverPLead_endcap_max_
 
float TauLeadPFChargedHadrEoP_barrel_max_
 
float TauLeadPFChargedHadrEoP_barrel_min_
 
float TauLeadPFChargedHadrEoP_endcap_max1_
 
float TauLeadPFChargedHadrEoP_endcap_max2_
 
float TauLeadPFChargedHadrEoP_endcap_min1_
 
float TauLeadPFChargedHadrEoP_endcap_min2_
 
int verbosity_
 

Detailed Description

Definition at line 22 of file AntiElectronIDCut2.h.

Constructor & Destructor Documentation

◆ AntiElectronIDCut2()

AntiElectronIDCut2::AntiElectronIDCut2 ( )

◆ ~AntiElectronIDCut2()

AntiElectronIDCut2::~AntiElectronIDCut2 ( )

Definition at line 27 of file AntiElectronIDCut2.cc.

27 {}

Member Function Documentation

◆ ApplyCut_EcalCrack()

void AntiElectronIDCut2::ApplyCut_EcalCrack ( bool  keepAll_,
bool  rejectAll_ 
)
inline

Definition at line 126 of file AntiElectronIDCut2.h.

126  {
127  keepAllInEcalCrack_ = keepAll_;
128  rejectAllInEcalCrack_ = rejectAll_;
129  };

References keepAllInEcalCrack_, and rejectAllInEcalCrack_.

◆ ApplyCuts()

void AntiElectronIDCut2::ApplyCuts ( bool  applyCut_hcal3x3OverPLead,
bool  applyCut_leadPFChargedHadrEoP,
bool  applyCut_GammaEtaMom,
bool  applyCut_GammaPhiMom,
bool  applyCut_GammaEnFrac,
bool  applyCut_HLTSpecific 
)

◆ Discriminator() [1/3]

template<typename T >
double AntiElectronIDCut2::Discriminator ( const T thePFTau)
inline

Definition at line 48 of file AntiElectronIDCut2.h.

48  {
49  float TauLeadChargedPFCandEtaAtEcalEntrance = -99.;
50  float TauLeadChargedPFCandPt = -99.;
51  const std::vector<reco::PFCandidatePtr>& signalPFCands = thePFTau.signalPFCands();
52  for (std::vector<reco::PFCandidatePtr>::const_iterator pfCandidate = signalPFCands.begin();
53  pfCandidate != signalPFCands.end();
54  ++pfCandidate) {
55  const reco::Track* track = nullptr;
56  if ((*pfCandidate)->trackRef().isNonnull())
57  track = (*pfCandidate)->trackRef().get();
58  else if ((*pfCandidate)->muonRef().isNonnull() && (*pfCandidate)->muonRef()->innerTrack().isNonnull())
59  track = (*pfCandidate)->muonRef()->innerTrack().get();
60  else if ((*pfCandidate)->muonRef().isNonnull() && (*pfCandidate)->muonRef()->globalTrack().isNonnull())
61  track = (*pfCandidate)->muonRef()->globalTrack().get();
62  else if ((*pfCandidate)->muonRef().isNonnull() && (*pfCandidate)->muonRef()->outerTrack().isNonnull())
63  track = (*pfCandidate)->muonRef()->outerTrack().get();
64  else if ((*pfCandidate)->gsfTrackRef().isNonnull())
65  track = (*pfCandidate)->gsfTrackRef().get();
66  if (track) {
67  if (track->pt() > TauLeadChargedPFCandPt) {
68  TauLeadChargedPFCandEtaAtEcalEntrance = (*pfCandidate)->positionAtECALEntrance().eta();
69  TauLeadChargedPFCandPt = track->pt();
70  }
71  }
72  }
73 
74  float TauPt = thePFTau.pt();
75  float TauEta = thePFTau.eta();
76  //float TauLeadPFChargedHadrHoP = 0.;
77  float TauLeadPFChargedHadrEoP = 0.;
78  if (thePFTau.leadPFChargedHadrCand()->p() > 0.) {
79  //TauLeadPFChargedHadrHoP = thePFTau.leadPFChargedHadrCand()->hcalEnergy()/thePFTau.leadPFChargedHadrCand()->p();
80  TauLeadPFChargedHadrEoP = thePFTau.leadPFChargedHadrCand()->ecalEnergy() / thePFTau.leadPFChargedHadrCand()->p();
81  }
82 
83  std::vector<float> GammasdEta;
84  std::vector<float> GammasdPhi;
85  std::vector<float> GammasPt;
86  for (unsigned i = 0; i < thePFTau.signalGammaCands().size(); ++i) {
87  reco::CandidatePtr gamma = thePFTau.signalGammaCands().at(i);
88  if (thePFTau.leadChargedHadrCand().isNonnull()) {
89  GammasdEta.push_back(gamma->eta() - thePFTau.leadChargedHadrCand()->eta());
90  GammasdPhi.push_back(gamma->phi() - thePFTau.leadChargedHadrCand()->phi());
91  } else {
92  GammasdEta.push_back(gamma->eta() - thePFTau.eta());
93  GammasdPhi.push_back(gamma->phi() - thePFTau.phi());
94  }
95  GammasPt.push_back(gamma->pt());
96  }
97 
98  float TauHcal3x3OverPLead = thePFTau.hcal3x3OverPLead();
99 
100  return Discriminator(TauPt,
101  TauEta,
102  TauLeadChargedPFCandPt,
103  TauLeadChargedPFCandEtaAtEcalEntrance,
104  TauLeadPFChargedHadrEoP,
105  TauHcal3x3OverPLead,
106  GammasdEta,
107  GammasdPhi,
108  GammasPt);
109  };

References Discriminator(), CustomPhysics_cfi::gamma, mps_fire::i, and HLT_2018_cff::track.

◆ Discriminator() [2/3]

double AntiElectronIDCut2::Discriminator ( float  TauPt,
float  TauEta,
float  TauLeadChargedPFCandPt,
float  TauLeadChargedPFCandEtaAtEcalEntrance,
float  TauLeadPFChargedHadrEoP,
float  TauHcal3x3OverPLead,
const std::vector< float > &  GammasdEta,
const std::vector< float > &  GammasdPhi,
const std::vector< float > &  GammasPt 
)

Definition at line 111 of file AntiElectronIDCut2.cc.

119  {
120  double sumPt = 0.;
121  double dEta2 = 0.;
122  double dPhi2 = 0.;
123  for (unsigned int i = 0; i < GammasPt.size(); ++i) {
124  double pt_i = GammasPt[i];
125  double phi_i = GammasdPhi[i];
126  if (GammasdPhi[i] > TMath::Pi())
127  phi_i = GammasdPhi[i] - 2 * TMath::Pi();
128  else if (GammasdPhi[i] < -TMath::Pi())
129  phi_i = GammasdPhi[i] + 2 * TMath::Pi();
130  double eta_i = GammasdEta[i];
131  sumPt += pt_i;
132  dEta2 += (pt_i * eta_i * eta_i);
133  dPhi2 += (pt_i * phi_i * phi_i);
134  }
135 
136  float TauGammaEnFrac = sumPt / TauPt;
137 
138  if (sumPt > 0.) {
139  dEta2 /= sumPt;
140  dPhi2 /= sumPt;
141  }
142 
143  float TauGammaEtaMom = TMath::Sqrt(dEta2) * TMath::Sqrt(TauGammaEnFrac) * TauPt;
144  float TauGammaPhiMom = TMath::Sqrt(dPhi2) * TMath::Sqrt(TauGammaEnFrac) * TauPt;
145 
146  return Discriminator(TauPt,
147  TauEta,
148  TauLeadChargedPFCandPt,
149  TauLeadChargedPFCandEtaAtEcalEntrance,
150  TauLeadPFChargedHadrEoP,
151  TauHcal3x3OverPLead,
152  TauGammaEtaMom,
153  TauGammaPhiMom,
154  TauGammaEnFrac);
155 }

References Discriminator(), mps_fire::i, Pi, and TtFullHadEvtBuilder_cfi::sumPt.

◆ Discriminator() [3/3]

double AntiElectronIDCut2::Discriminator ( float  TauPt,
float  TauEta,
float  TauLeadChargedPFCandPt,
float  TauLeadChargedPFCandEtaAtEcalEntrance,
float  TauLeadPFChargedHadrEoP,
float  TauHcal3x3OverPLead,
float  TauGammaEtaMom,
float  TauGammaPhiMom,
float  TauGammaEnFrac 
)

Definition at line 29 of file AntiElectronIDCut2.cc.

37  {
38  if (verbosity_) {
39  std::cout << "Tau GammaEnFrac " << TauGammaEnFrac << std::endl;
40  std::cout << "Tau GammaEtaMom " << TauGammaEtaMom << std::endl;
41  std::cout << "Tau GammaPhiMom " << TauGammaPhiMom << std::endl;
42  std::cout << "Tau Hcal3x3OverPLead " << TauHcal3x3OverPLead << std::endl;
43  std::cout << "Tau LeadPFChargedHadrEoP " << TauLeadPFChargedHadrEoP << std::endl;
44  std::cout << "Tau LeadChargedPFCandEtaAtEcalEntrance " << TauLeadChargedPFCandEtaAtEcalEntrance << std::endl;
45  std::cout << "Tau LeadChargedPFCandPt " << TauLeadChargedPFCandPt << std::endl;
46  std::cout << "Tau Eta " << TauEta << std::endl;
47  std::cout << "Tau Pt " << TauPt << std::endl;
48  }
49 
50  // ensure tau has at least one charged object
51  if (TauLeadChargedPFCandPt <= 0) {
52  return 0.;
53  } else {
54  // Check if track goes to Ecal Crack
55  if (isInEcalCrack(TauLeadChargedPFCandEtaAtEcalEntrance)) {
57  return 1.0;
58  else if (rejectAllInEcalCrack_)
59  return 0.;
60  }
61  }
62 
63  bool decision = false;
64  //Apply separate cuts for barrel and endcap
65  if (TMath::Abs(TauEta) < 1.479) {
66  //Apply cut for barrel
68  decision = true;
69 
71  decision = true;
72 
74  decision = true;
75 
77  decision = true;
78 
80  TauLeadPFChargedHadrEoP > TauLeadPFChargedHadrEoP_barrel_max_))
81  decision = true;
82  } else {
83  //Apply cut for endcap
85  decision = true;
86 
88  decision = true;
89 
91  decision = true;
92 
93  //This cut is for both offline and HLT. For offline, use cut 0.99-1.01,
94  //For HLT use cut 0.7-1.3
96  TauLeadPFChargedHadrEoP > TauLeadPFChargedHadrEoP_endcap_max1_))
97  decision = true;
98 
99  //This cut is only for HLT. For HLT, use cut like 0.99-1.01 & H3x3/P>0.1
100  //For offline, keep the values same as above : 0.99-1.01 & H3x3/P>0, otherwise it may select events in a wrong way.
102  (TauLeadPFChargedHadrEoP < TauLeadPFChargedHadrEoP_endcap_min2_ ||
103  TauLeadPFChargedHadrEoP > TauLeadPFChargedHadrEoP_endcap_max2_) &&
104  TauHcal3x3OverPLead > TauHcal3x3OverPLead_endcap_max_)
105  decision = true;
106  }
107 
108  return (decision ? 1. : 0.);
109 }

References Abs(), gather_cfg::cout, isInEcalCrack(), keepAllInEcalCrack_, rejectAllInEcalCrack_, Tau_applyCut_GammaEnFrac_, Tau_applyCut_GammaEtaMom_, Tau_applyCut_GammaPhiMom_, Tau_applyCut_hcal3x3OverPLead_, Tau_applyCut_HLTSpecific_, Tau_applyCut_leadPFChargedHadrEoP_, TauGammaEnFrac_barrel_max_, TauGammaEnFrac_endcap_max_, TauGammaEtaMom_barrel_max_, TauGammaEtaMom_endcap_max_, TauGammaPhiMom_barrel_max_, TauGammaPhiMom_endcap_max_, TauHcal3x3OverPLead_barrel_max_, TauHcal3x3OverPLead_endcap_max_, TauLeadPFChargedHadrEoP_barrel_max_, TauLeadPFChargedHadrEoP_barrel_min_, TauLeadPFChargedHadrEoP_endcap_max1_, TauLeadPFChargedHadrEoP_endcap_max2_, TauLeadPFChargedHadrEoP_endcap_min1_, TauLeadPFChargedHadrEoP_endcap_min2_, and verbosity_.

Referenced by Discriminator().

◆ isInEcalCrack()

bool AntiElectronIDCut2::isInEcalCrack ( double  eta) const
private

Definition at line 203 of file AntiElectronIDCut2.cc.

203  {
204  bool in_ecal_crack = false;
205 
206  eta = fabs(eta);
207  for (std::vector<pdouble>::const_iterator etaCrack = ecalCracks_.begin(); etaCrack != ecalCracks_.end(); ++etaCrack)
208  if (eta >= etaCrack->first && eta < etaCrack->second)
209  in_ecal_crack = true;
210 
211  return in_ecal_crack;
212 }

References ecalCracks_, PVValHelper::eta, and edm::second().

Referenced by Discriminator().

◆ SetBarrelCutValues()

void AntiElectronIDCut2::SetBarrelCutValues ( float  TauLeadPFChargedHadrEoP_min,
float  TauLeadPFChargedHadrEoP_max,
float  TauHcal3x3OverPLead_max,
float  TauGammaEtaMom_max,
float  TauGammaPhiMom_max,
float  TauGammaEnFrac_max 
)

Definition at line 157 of file AntiElectronIDCut2.cc.

162  {
163  TauLeadPFChargedHadrEoP_barrel_min_ = TauLeadPFChargedHadrEoP_min;
164  TauLeadPFChargedHadrEoP_barrel_max_ = TauLeadPFChargedHadrEoP_max;
165  TauHcal3x3OverPLead_barrel_max_ = TauHcal3x3OverPLead_max;
166  TauGammaEtaMom_barrel_max_ = TauGammaEtaMom_max;
167  TauGammaPhiMom_barrel_max_ = TauGammaPhiMom_max;
168  TauGammaEnFrac_barrel_max_ = TauGammaEnFrac_max;
169 }

References TauGammaEnFrac_barrel_max_, TauGammaEtaMom_barrel_max_, TauGammaPhiMom_barrel_max_, TauHcal3x3OverPLead_barrel_max_, TauLeadPFChargedHadrEoP_barrel_max_, and TauLeadPFChargedHadrEoP_barrel_min_.

◆ SetEcalCracks()

void AntiElectronIDCut2::SetEcalCracks ( const std::vector< pdouble > &  etaCracks)
inline

Definition at line 138 of file AntiElectronIDCut2.h.

138  {
139  ecalCracks_.clear();
140  for (size_t i = 0; i < etaCracks.size(); i++)
141  ecalCracks_.push_back(etaCracks[i]);
142  }

References ecalCracks_, PFRecoTauDiscriminationAgainstElectron2_cfi::etaCracks, and mps_fire::i.

◆ SetEndcapCutValues()

void AntiElectronIDCut2::SetEndcapCutValues ( float  TauLeadPFChargedHadrEoP_min_1,
float  TauLeadPFChargedHadrEoP_max_1,
float  TauLeadPFChargedHadrEoP_min_2,
float  TauLeadPFChargedHadrEoP_max_2,
float  TauHcal3x3OverPLead_max,
float  TauGammaEtaMom_max,
float  TauGammaPhiMom_max,
float  TauGammaEnFrac_max 
)

Definition at line 171 of file AntiElectronIDCut2.cc.

178  {
179  TauLeadPFChargedHadrEoP_endcap_min1_ = TauLeadPFChargedHadrEoP_min_1;
180  TauLeadPFChargedHadrEoP_endcap_max1_ = TauLeadPFChargedHadrEoP_max_1;
181  TauLeadPFChargedHadrEoP_endcap_min2_ = TauLeadPFChargedHadrEoP_min_2;
182  TauLeadPFChargedHadrEoP_endcap_max2_ = TauLeadPFChargedHadrEoP_max_2;
183  TauHcal3x3OverPLead_endcap_max_ = TauHcal3x3OverPLead_max;
184  TauGammaEtaMom_endcap_max_ = TauGammaEtaMom_max;
185  TauGammaPhiMom_endcap_max_ = TauGammaPhiMom_max;
186  TauGammaEnFrac_endcap_max_ = TauGammaEnFrac_max;
187 }

References TauGammaEnFrac_endcap_max_, TauGammaEtaMom_endcap_max_, TauGammaPhiMom_endcap_max_, TauHcal3x3OverPLead_endcap_max_, TauLeadPFChargedHadrEoP_endcap_max1_, TauLeadPFChargedHadrEoP_endcap_max2_, TauLeadPFChargedHadrEoP_endcap_min1_, and TauLeadPFChargedHadrEoP_endcap_min2_.

Member Data Documentation

◆ ecalCracks_

std::vector<pdouble> AntiElectronIDCut2::ecalCracks_
private

Definition at line 172 of file AntiElectronIDCut2.h.

Referenced by isInEcalCrack(), and SetEcalCracks().

◆ keepAllInEcalCrack_

bool AntiElectronIDCut2::keepAllInEcalCrack_
private

Definition at line 162 of file AntiElectronIDCut2.h.

Referenced by AntiElectronIDCut2(), ApplyCut_EcalCrack(), and Discriminator().

◆ rejectAllInEcalCrack_

bool AntiElectronIDCut2::rejectAllInEcalCrack_
private

Definition at line 163 of file AntiElectronIDCut2.h.

Referenced by AntiElectronIDCut2(), ApplyCut_EcalCrack(), and Discriminator().

◆ Tau_applyCut_GammaEnFrac_

bool AntiElectronIDCut2::Tau_applyCut_GammaEnFrac_
private

Definition at line 169 of file AntiElectronIDCut2.h.

Referenced by AntiElectronIDCut2(), ApplyCuts(), and Discriminator().

◆ Tau_applyCut_GammaEtaMom_

bool AntiElectronIDCut2::Tau_applyCut_GammaEtaMom_
private

Definition at line 167 of file AntiElectronIDCut2.h.

Referenced by AntiElectronIDCut2(), ApplyCuts(), and Discriminator().

◆ Tau_applyCut_GammaPhiMom_

bool AntiElectronIDCut2::Tau_applyCut_GammaPhiMom_
private

Definition at line 168 of file AntiElectronIDCut2.h.

Referenced by AntiElectronIDCut2(), ApplyCuts(), and Discriminator().

◆ Tau_applyCut_hcal3x3OverPLead_

bool AntiElectronIDCut2::Tau_applyCut_hcal3x3OverPLead_
private

Definition at line 165 of file AntiElectronIDCut2.h.

Referenced by AntiElectronIDCut2(), ApplyCuts(), and Discriminator().

◆ Tau_applyCut_HLTSpecific_

bool AntiElectronIDCut2::Tau_applyCut_HLTSpecific_
private

Definition at line 170 of file AntiElectronIDCut2.h.

Referenced by AntiElectronIDCut2(), ApplyCuts(), and Discriminator().

◆ Tau_applyCut_leadPFChargedHadrEoP_

bool AntiElectronIDCut2::Tau_applyCut_leadPFChargedHadrEoP_
private

Definition at line 166 of file AntiElectronIDCut2.h.

Referenced by AntiElectronIDCut2(), ApplyCuts(), and Discriminator().

◆ TauGammaEnFrac_barrel_max_

float AntiElectronIDCut2::TauGammaEnFrac_barrel_max_
private

Definition at line 152 of file AntiElectronIDCut2.h.

Referenced by Discriminator(), and SetBarrelCutValues().

◆ TauGammaEnFrac_endcap_max_

float AntiElectronIDCut2::TauGammaEnFrac_endcap_max_
private

Definition at line 160 of file AntiElectronIDCut2.h.

Referenced by Discriminator(), and SetEndcapCutValues().

◆ TauGammaEtaMom_barrel_max_

float AntiElectronIDCut2::TauGammaEtaMom_barrel_max_
private

Definition at line 150 of file AntiElectronIDCut2.h.

Referenced by Discriminator(), and SetBarrelCutValues().

◆ TauGammaEtaMom_endcap_max_

float AntiElectronIDCut2::TauGammaEtaMom_endcap_max_
private

Definition at line 158 of file AntiElectronIDCut2.h.

Referenced by Discriminator(), and SetEndcapCutValues().

◆ TauGammaPhiMom_barrel_max_

float AntiElectronIDCut2::TauGammaPhiMom_barrel_max_
private

Definition at line 151 of file AntiElectronIDCut2.h.

Referenced by Discriminator(), and SetBarrelCutValues().

◆ TauGammaPhiMom_endcap_max_

float AntiElectronIDCut2::TauGammaPhiMom_endcap_max_
private

Definition at line 159 of file AntiElectronIDCut2.h.

Referenced by Discriminator(), and SetEndcapCutValues().

◆ TauHcal3x3OverPLead_barrel_max_

float AntiElectronIDCut2::TauHcal3x3OverPLead_barrel_max_
private

Definition at line 149 of file AntiElectronIDCut2.h.

Referenced by Discriminator(), and SetBarrelCutValues().

◆ TauHcal3x3OverPLead_endcap_max_

float AntiElectronIDCut2::TauHcal3x3OverPLead_endcap_max_
private

Definition at line 157 of file AntiElectronIDCut2.h.

Referenced by Discriminator(), and SetEndcapCutValues().

◆ TauLeadPFChargedHadrEoP_barrel_max_

float AntiElectronIDCut2::TauLeadPFChargedHadrEoP_barrel_max_
private

Definition at line 148 of file AntiElectronIDCut2.h.

Referenced by Discriminator(), and SetBarrelCutValues().

◆ TauLeadPFChargedHadrEoP_barrel_min_

float AntiElectronIDCut2::TauLeadPFChargedHadrEoP_barrel_min_
private

Definition at line 147 of file AntiElectronIDCut2.h.

Referenced by Discriminator(), and SetBarrelCutValues().

◆ TauLeadPFChargedHadrEoP_endcap_max1_

float AntiElectronIDCut2::TauLeadPFChargedHadrEoP_endcap_max1_
private

Definition at line 154 of file AntiElectronIDCut2.h.

Referenced by Discriminator(), and SetEndcapCutValues().

◆ TauLeadPFChargedHadrEoP_endcap_max2_

float AntiElectronIDCut2::TauLeadPFChargedHadrEoP_endcap_max2_
private

Definition at line 156 of file AntiElectronIDCut2.h.

Referenced by Discriminator(), and SetEndcapCutValues().

◆ TauLeadPFChargedHadrEoP_endcap_min1_

float AntiElectronIDCut2::TauLeadPFChargedHadrEoP_endcap_min1_
private

Definition at line 153 of file AntiElectronIDCut2.h.

Referenced by Discriminator(), and SetEndcapCutValues().

◆ TauLeadPFChargedHadrEoP_endcap_min2_

float AntiElectronIDCut2::TauLeadPFChargedHadrEoP_endcap_min2_
private

Definition at line 155 of file AntiElectronIDCut2.h.

Referenced by Discriminator(), and SetEndcapCutValues().

◆ verbosity_

int AntiElectronIDCut2::verbosity_
private

Definition at line 174 of file AntiElectronIDCut2.h.

Referenced by AntiElectronIDCut2(), and Discriminator().

PFRecoTauDiscriminationAgainstElectron2_cfi.applyCut_hcal3x3OverPLead
applyCut_hcal3x3OverPLead
Definition: PFRecoTauDiscriminationAgainstElectron2_cfi.py:19
PFRecoTauDiscriminationAgainstElectron2_cfi.applyCut_HLTSpecific
applyCut_HLTSpecific
Definition: PFRecoTauDiscriminationAgainstElectron2_cfi.py:24
mps_fire.i
i
Definition: mps_fire.py:355
AntiElectronIDCut2::Tau_applyCut_leadPFChargedHadrEoP_
bool Tau_applyCut_leadPFChargedHadrEoP_
Definition: AntiElectronIDCut2.h:166
AntiElectronIDCut2::Tau_applyCut_hcal3x3OverPLead_
bool Tau_applyCut_hcal3x3OverPLead_
Definition: AntiElectronIDCut2.h:165
AntiElectronIDCut2::isInEcalCrack
bool isInEcalCrack(double eta) const
Definition: AntiElectronIDCut2.cc:203
AntiElectronIDCut2::TauGammaPhiMom_barrel_max_
float TauGammaPhiMom_barrel_max_
Definition: AntiElectronIDCut2.h:151
gather_cfg.cout
cout
Definition: gather_cfg.py:144
AntiElectronIDCut2::keepAllInEcalCrack_
bool keepAllInEcalCrack_
Definition: AntiElectronIDCut2.h:162
CustomPhysics_cfi.gamma
gamma
Definition: CustomPhysics_cfi.py:17
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:215
AntiElectronIDCut2::Tau_applyCut_HLTSpecific_
bool Tau_applyCut_HLTSpecific_
Definition: AntiElectronIDCut2.h:170
AntiElectronIDCut2::Discriminator
double Discriminator(float TauPt, float TauEta, float TauLeadChargedPFCandPt, float TauLeadChargedPFCandEtaAtEcalEntrance, float TauLeadPFChargedHadrEoP, float TauHcal3x3OverPLead, float TauGammaEtaMom, float TauGammaPhiMom, float TauGammaEnFrac)
Definition: AntiElectronIDCut2.cc:29
AntiElectronIDCut2::TauLeadPFChargedHadrEoP_barrel_min_
float TauLeadPFChargedHadrEoP_barrel_min_
Definition: AntiElectronIDCut2.h:147
TtFullHadEvtBuilder_cfi.sumPt
sumPt
Definition: TtFullHadEvtBuilder_cfi.py:38
PFRecoTauDiscriminationAgainstElectron2_cfi.applyCut_leadPFChargedHadrEoP
applyCut_leadPFChargedHadrEoP
Definition: PFRecoTauDiscriminationAgainstElectron2_cfi.py:20
AntiElectronIDCut2::TauGammaEnFrac_barrel_max_
float TauGammaEnFrac_barrel_max_
Definition: AntiElectronIDCut2.h:152
PFRecoTauDiscriminationAgainstElectron2_cfi.etaCracks
etaCracks
Definition: PFRecoTauDiscriminationAgainstElectron2_cfi.py:17
AntiElectronIDCut2::rejectAllInEcalCrack_
bool rejectAllInEcalCrack_
Definition: AntiElectronIDCut2.h:163
AntiElectronIDCut2::TauLeadPFChargedHadrEoP_endcap_min1_
float TauLeadPFChargedHadrEoP_endcap_min1_
Definition: AntiElectronIDCut2.h:153
AntiElectronIDCut2::TauGammaEnFrac_endcap_max_
float TauGammaEnFrac_endcap_max_
Definition: AntiElectronIDCut2.h:160
Abs
T Abs(T a)
Definition: MathUtil.h:49
AntiElectronIDCut2::TauHcal3x3OverPLead_barrel_max_
float TauHcal3x3OverPLead_barrel_max_
Definition: AntiElectronIDCut2.h:149
AntiElectronIDCut2::TauGammaEtaMom_endcap_max_
float TauGammaEtaMom_endcap_max_
Definition: AntiElectronIDCut2.h:158
AntiElectronIDCut2::TauGammaEtaMom_barrel_max_
float TauGammaEtaMom_barrel_max_
Definition: AntiElectronIDCut2.h:150
PVValHelper::eta
Definition: PVValidationHelpers.h:69
AntiElectronIDCut2::TauLeadPFChargedHadrEoP_barrel_max_
float TauLeadPFChargedHadrEoP_barrel_max_
Definition: AntiElectronIDCut2.h:148
reco::Track
Definition: Track.h:27
AntiElectronIDCut2::ecalCracks_
std::vector< pdouble > ecalCracks_
Definition: AntiElectronIDCut2.h:172
AntiElectronIDCut2::Tau_applyCut_GammaEnFrac_
bool Tau_applyCut_GammaEnFrac_
Definition: AntiElectronIDCut2.h:169
AntiElectronIDCut2::Tau_applyCut_GammaPhiMom_
bool Tau_applyCut_GammaPhiMom_
Definition: AntiElectronIDCut2.h:168
PFRecoTauDiscriminationAgainstElectron2_cfi.applyCut_GammaPhiMom
applyCut_GammaPhiMom
Definition: PFRecoTauDiscriminationAgainstElectron2_cfi.py:22
PFRecoTauDiscriminationAgainstElectron2_cfi.applyCut_GammaEnFrac
applyCut_GammaEnFrac
Definition: PFRecoTauDiscriminationAgainstElectron2_cfi.py:23
AntiElectronIDCut2::TauLeadPFChargedHadrEoP_endcap_max1_
float TauLeadPFChargedHadrEoP_endcap_max1_
Definition: AntiElectronIDCut2.h:154
PFRecoTauDiscriminationAgainstElectron2_cfi.applyCut_GammaEtaMom
applyCut_GammaEtaMom
Definition: PFRecoTauDiscriminationAgainstElectron2_cfi.py:21
edm::Ptr< Candidate >
AntiElectronIDCut2::Tau_applyCut_GammaEtaMom_
bool Tau_applyCut_GammaEtaMom_
Definition: AntiElectronIDCut2.h:167
AntiElectronIDCut2::TauGammaPhiMom_endcap_max_
float TauGammaPhiMom_endcap_max_
Definition: AntiElectronIDCut2.h:159
AntiElectronIDCut2::verbosity_
int verbosity_
Definition: AntiElectronIDCut2.h:174
AntiElectronIDCut2::TauHcal3x3OverPLead_endcap_max_
float TauHcal3x3OverPLead_endcap_max_
Definition: AntiElectronIDCut2.h:157
Pi
const double Pi
Definition: CosmicMuonParameters.h:18
HLT_2018_cff.track
track
Definition: HLT_2018_cff.py:10352
AntiElectronIDCut2::TauLeadPFChargedHadrEoP_endcap_min2_
float TauLeadPFChargedHadrEoP_endcap_min2_
Definition: AntiElectronIDCut2.h:155
AntiElectronIDCut2::TauLeadPFChargedHadrEoP_endcap_max2_
float TauLeadPFChargedHadrEoP_endcap_max2_
Definition: AntiElectronIDCut2.h:156