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;
74 if(TMath::Abs(TauEta) < 1.479)
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
145 for (
unsigned int i = 0 ;
i < GammasPt.size() ; ++
i ) {
146 double pt_i = GammasPt[
i];
147 double phi_i = GammasdPhi[
i];
150 double eta_i = GammasdEta[
i];
152 sumPt2 += (pt_i*pt_i);
153 dEta += (pt_i*eta_i);
154 dEta2 += (pt_i*eta_i*eta_i);
155 dPhi += (pt_i*phi_i);
156 dPhi2 += (pt_i*phi_i*phi_i);
159 float TauGammaEnFrac = sumPt/TauPt;
168 float TauGammaEtaMom = TMath::Sqrt(dEta2)*TMath::Sqrt(TauGammaEnFrac)*TauPt;
169 float TauGammaPhiMom = TMath::Sqrt(dPhi2)*TMath::Sqrt(TauGammaEnFrac)*TauPt;
173 TauLeadChargedPFCandPt,
174 TauLeadChargedPFCandEtaAtEcalEntrance,
175 TauLeadPFChargedHadrEoP,
185 float TauLeadPFChargedHadrEoP_max,
186 float TauHcal3x3OverPLead_max,
187 float TauGammaEtaMom_max,
188 float TauGammaPhiMom_max,
189 float TauGammaEnFrac_max
202 float TauLeadPFChargedHadrEoP_max_1,
203 float TauLeadPFChargedHadrEoP_min_2,
204 float TauLeadPFChargedHadrEoP_max_2,
205 float TauHcal3x3OverPLead_max,
206 float TauGammaEtaMom_max,
207 float TauGammaPhiMom_max,
208 float TauGammaEnFrac_max
241 bool in_ecal_crack =
false;
244 for(std::vector<pdouble>::const_iterator etaCrack =
ecalCracks_.begin();
246 if(eta >= etaCrack->first && eta < etaCrack->
second)
247 in_ecal_crack =
true;
249 return in_ecal_crack;
float TauGammaEtaMom_endcap_max_
bool Tau_applyCut_GammaPhiMom_
float TauLeadPFChargedHadrEoP_barrel_max_
tuple applyCut_HLTSpecific
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_
U second(std::pair< T, U > const &p)
bool Tau_applyCut_GammaEnFrac_
tuple applyCut_leadPFChargedHadrEoP
void SetBarrelCutValues(float TauLeadPFChargedHadrEoP_min, float TauLeadPFChargedHadrEoP_max, float TauHcal3x3OverPLead_max, float TauGammaEtaMom_max, float TauGammaPhiMom_max, float TauGammaEnFrac_max)
double dPhi(double phi1, double phi2)
tuple applyCut_GammaEnFrac
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_
tuple applyCut_hcal3x3OverPLead
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)
tuple applyCut_GammaPhiMom
tuple applyCut_GammaEtaMom