31 float TauLeadChargedPFCandPt,
32 float TauLeadChargedPFCandEtaAtEcalEntrance,
33 float TauLeadPFChargedHadrEoP,
34 float TauHcal3x3OverPLead,
37 float TauGammaEnFrac) {
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;
51 if (TauLeadChargedPFCandPt <= 0) {
63 bool decision =
false;
108 return (decision ? 1. : 0.);
113 float TauLeadChargedPFCandPt,
114 float TauLeadChargedPFCandEtaAtEcalEntrance,
115 float TauLeadPFChargedHadrEoP,
116 float TauHcal3x3OverPLead,
117 const std::vector<float>& GammasdEta,
118 const std::vector<float>& GammasdPhi,
119 const std::vector<float>& GammasPt) {
123 for (
unsigned int i = 0;
i < GammasPt.size(); ++
i) {
124 double pt_i = GammasPt[
i];
125 double phi_i = GammasdPhi[
i];
130 double eta_i = GammasdEta[
i];
132 dEta2 += (pt_i * eta_i * eta_i);
133 dPhi2 += (pt_i * phi_i * phi_i);
136 float TauGammaEnFrac = sumPt / TauPt;
143 float TauGammaEtaMom = TMath::Sqrt(dEta2) * TMath::Sqrt(TauGammaEnFrac) * TauPt;
144 float TauGammaPhiMom = TMath::Sqrt(dPhi2) * TMath::Sqrt(TauGammaEnFrac) * TauPt;
148 TauLeadChargedPFCandPt,
149 TauLeadChargedPFCandEtaAtEcalEntrance,
150 TauLeadPFChargedHadrEoP,
158 float TauLeadPFChargedHadrEoP_max,
159 float TauHcal3x3OverPLead_max,
160 float TauGammaEtaMom_max,
161 float TauGammaPhiMom_max,
162 float TauGammaEnFrac_max) {
172 float TauLeadPFChargedHadrEoP_max_1,
173 float TauLeadPFChargedHadrEoP_min_2,
174 float TauLeadPFChargedHadrEoP_max_2,
175 float TauHcal3x3OverPLead_max,
176 float TauGammaEtaMom_max,
177 float TauGammaPhiMom_max,
178 float TauGammaEnFrac_max) {
204 bool in_ecal_crack =
false;
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;
211 return in_ecal_crack;
float TauGammaEtaMom_endcap_max_
bool Tau_applyCut_GammaPhiMom_
float TauLeadPFChargedHadrEoP_barrel_max_
float TauGammaEnFrac_barrel_max_
float TauLeadPFChargedHadrEoP_endcap_max1_
bool Tau_applyCut_leadPFChargedHadrEoP_
double Discriminator(float TauPt, float TauEta, float TauLeadChargedPFCandPt, float TauLeadChargedPFCandEtaAtEcalEntrance, float TauLeadPFChargedHadrEoP, float TauHcal3x3OverPLead, float TauGammaEtaMom, float TauGammaPhiMom, float TauGammaEnFrac)
float TauLeadPFChargedHadrEoP_endcap_min2_
applyCut_hcal3x3OverPLead
U second(std::pair< T, U > const &p)
bool Tau_applyCut_GammaEnFrac_
applyCut_leadPFChargedHadrEoP
void SetBarrelCutValues(float TauLeadPFChargedHadrEoP_min, float TauLeadPFChargedHadrEoP_max, float TauHcal3x3OverPLead_max, float TauGammaEtaMom_max, float TauGammaPhiMom_max, float TauGammaEnFrac_max)
bool rejectAllInEcalCrack_
bool Tau_applyCut_hcal3x3OverPLead_
bool Tau_applyCut_GammaEtaMom_
std::vector< pdouble > ecalCracks_
float TauGammaPhiMom_endcap_max_
float TauGammaEtaMom_barrel_max_
bool Tau_applyCut_HLTSpecific_
bool isInEcalCrack(double eta) const
float TauLeadPFChargedHadrEoP_endcap_max2_
float TauGammaEnFrac_endcap_max_
float TauGammaPhiMom_barrel_max_
float TauLeadPFChargedHadrEoP_barrel_min_
float TauLeadPFChargedHadrEoP_endcap_min1_
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)
float TauHcal3x3OverPLead_endcap_max_
float TauHcal3x3OverPLead_barrel_max_
void ApplyCuts(bool applyCut_hcal3x3OverPLead, bool applyCut_leadPFChargedHadrEoP, bool applyCut_GammaEtaMom, bool applyCut_GammaPhiMom, bool applyCut_GammaEnFrac, bool applyCut_HLTSpecific)