15 #include "TLorentzVector.h" 26 chargedPionMass = 0.139;
27 booleanOutput = iConfig.
getParameter<
bool>(
"BooleanOutput");
50 double dE = DeltaE(tau);
58 for(
size_t i = 0;
i < signalTracks.
size(); ++
i){
60 p4.SetXYZM(signalTracks[
i]->px(),
61 signalTracks[
i]->py(),
62 signalTracks[
i]->pz(),
66 if(tau->leadTrackHCAL3x3hitsEtSum() == 0)
return -1;
67 return tracksE/tau->leadTrackHCAL3x3hitsEtSum() - 1.0;
74 desc.
add<
double>(
"deltaEmin", -0.15);
80 psd1.
add<
double>(
"cut");
86 desc.
add<
double>(
"deltaEmax", 1.0);
87 desc.
add<
bool>(
"BooleanOutput",
true);
89 descriptions.
add(
"caloRecoTauDiscriminationByDeltaE", desc);
double DeltaE(const CaloTauRef &) const
T getParameter(std::string const &) const
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
void beginEvent(const edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
double discriminate(const reco::CaloTauRef &) const override
#define DEFINE_FWK_MODULE(type)
CaloRecoTauDiscriminationByDeltaE(const ParameterSet &iConfig)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
size_type size() const
Size of the RefVector.
~CaloRecoTauDiscriminationByDeltaE() override