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;
double DeltaE(const CaloTauRef &) const
T getParameter(std::string const &) const
void beginEvent(const edm::Event &, const edm::EventSetup &) override
CaloRecoTauDiscriminationByDeltaE(const ParameterSet &iConfig)
DEFINE_FWK_MODULE(CosmicTrackingParticleSelector)
~CaloRecoTauDiscriminationByDeltaE()
size_type size() const
Size of the RefVector.
double discriminate(const reco::CaloTauRef &) const override