35 float TauLeadChargedPFCandPt,
36 float TauLeadChargedPFCandEtaAtEcalEntrance,
37 float TauLeadPFChargedHadrEoP,
38 float TauHcal3x3OverPLead,
45 std::cout<<
"Tau GammaEnFrac "<<TauGammaEnFrac<<std::endl;
46 std::cout<<
"Tau GammaEtaMom "<<TauGammaEtaMom<<std::endl;
47 std::cout<<
"Tau GammaPhiMom "<<TauGammaPhiMom<<std::endl;
48 std::cout<<
"Tau Hcal3x3OverPLead "<<TauHcal3x3OverPLead<<std::endl;
49 std::cout<<
"Tau LeadPFChargedHadrEoP "<<TauLeadPFChargedHadrEoP<<std::endl;
50 std::cout<<
"Tau LeadChargedPFCandEtaAtEcalEntrance "<<TauLeadChargedPFCandEtaAtEcalEntrance<<std::endl;
51 std::cout<<
"Tau LeadChargedPFCandPt "<<TauLeadChargedPFCandPt<<std::endl;
57 if( TauLeadChargedPFCandPt <= 0 )
72 bool decision =
false;
123 return (decision ? 1. : 0.);
129 float TauLeadChargedPFCandPt,
130 float TauLeadChargedPFCandEtaAtEcalEntrance,
131 float TauLeadPFChargedHadrEoP,
132 float TauHcal3x3OverPLead,
133 const std::vector<float>& GammasdEta,
134 const std::vector<float>& GammasdPhi,
135 const std::vector<float>& GammasPt
142 for (
unsigned int i = 0 ;
i < GammasPt.size() ; ++
i ) {
143 double pt_i = GammasPt[
i];
144 double phi_i = GammasdPhi[
i];
147 double eta_i = GammasdEta[
i];
149 dEta2 += (pt_i*eta_i*eta_i);
150 dPhi2 += (pt_i*phi_i*phi_i);
153 float TauGammaEnFrac = sumPt/TauPt;
160 float TauGammaEtaMom = TMath::Sqrt(dEta2)*TMath::Sqrt(TauGammaEnFrac)*TauPt;
161 float TauGammaPhiMom = TMath::Sqrt(dPhi2)*TMath::Sqrt(TauGammaEnFrac)*TauPt;
165 TauLeadChargedPFCandPt,
166 TauLeadChargedPFCandEtaAtEcalEntrance,
167 TauLeadPFChargedHadrEoP,
177 float TauLeadPFChargedHadrEoP_max,
178 float TauHcal3x3OverPLead_max,
179 float TauGammaEtaMom_max,
180 float TauGammaPhiMom_max,
181 float TauGammaEnFrac_max
194 float TauLeadPFChargedHadrEoP_max_1,
195 float TauLeadPFChargedHadrEoP_min_2,
196 float TauLeadPFChargedHadrEoP_max_2,
197 float TauHcal3x3OverPLead_max,
198 float TauGammaEtaMom_max,
199 float TauGammaPhiMom_max,
200 float TauGammaEnFrac_max
233 bool in_ecal_crack =
false;
236 for(std::vector<pdouble>::const_iterator etaCrack =
ecalCracks_.begin();
238 if(eta >= etaCrack->first && eta < etaCrack->
second)
239 in_ecal_crack =
true;
241 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)