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;