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