12 #include "TLorentzVector.h"
23 chargedPionMass = 0.139;
24 booleanOutput = iConfig.
getParameter<
bool>(
"BooleanOutput");
46 double dE = DeltaE(tau);
47 if(booleanOutput)
return ( dE > deltaEmin && dE < deltaEmax ? 1. : 0. );
54 for(
size_t i = 0;
i < signalTracks.
size(); ++
i){
56 p4.SetXYZM(signalTracks[
i]->px(),
57 signalTracks[
i]->py(),
58 signalTracks[
i]->pz(),
62 if(tau->leadTrackHCAL3x3hitsEtSum() == 0)
return -1;
63 return tracksE/tau->leadTrackHCAL3x3hitsEtSum() - 1.0;
T getParameter(std::string const &) const
void beginEvent(const edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
double DeltaE(const CaloTauRef &)
double discriminate(const reco::CaloTauRef &) override
CaloRecoTauDiscriminationByDeltaE(const ParameterSet &iConfig)
~CaloRecoTauDiscriminationByDeltaE()
size_type size() const
Size of the RefVector.