Public Member Functions | |
CaloRecoTauDiscriminationByInvMass (const edm::ParameterSet &iConfig) | |
double | discriminate (const reco::CaloTauRef &) |
~CaloRecoTauDiscriminationByInvMass () | |
Private Member Functions | |
double | threeProngInvMass (const CaloTauRef &) |
Private Attributes | |
bool | booleanOutput |
double | chargedPionMass |
double | invMassMax |
double | invMassMin |
Definition at line 16 of file CaloRecoTauDiscriminationByInvMass.cc.
CaloRecoTauDiscriminationByInvMass::CaloRecoTauDiscriminationByInvMass | ( | const edm::ParameterSet & | iConfig | ) | [inline, explicit] |
Definition at line 18 of file CaloRecoTauDiscriminationByInvMass.cc.
References edm::ParameterSet::getParameter().
:CaloTauDiscriminationProducerBase(iConfig) { invMassMin = iConfig.getParameter<double>("invMassMin"); invMassMax = iConfig.getParameter<double>("invMassMax"); chargedPionMass = 0.139; booleanOutput = iConfig.getParameter<bool>("BooleanOutput"); }
CaloRecoTauDiscriminationByInvMass::~CaloRecoTauDiscriminationByInvMass | ( | ) | [inline] |
Definition at line 27 of file CaloRecoTauDiscriminationByInvMass.cc.
{}
double CaloRecoTauDiscriminationByInvMass::discriminate | ( | const reco::CaloTauRef & | tau | ) | [virtual] |
Implements TauDiscriminationProducerBase< TauType, TauDiscriminator >.
Definition at line 38 of file CaloRecoTauDiscriminationByInvMass.cc.
{ double invMass = threeProngInvMass(tau); if(booleanOutput) return ( invMass > invMassMin && invMass < invMassMax ? 1. : 0. ); return invMass; }
double CaloRecoTauDiscriminationByInvMass::threeProngInvMass | ( | const CaloTauRef & | tau | ) | [private] |
Definition at line 46 of file CaloRecoTauDiscriminationByInvMass.cc.
References i, p4, and edm::RefVector< C, T, F >::size().
bool CaloRecoTauDiscriminationByInvMass::booleanOutput [private] |
Definition at line 35 of file CaloRecoTauDiscriminationByInvMass.cc.
double CaloRecoTauDiscriminationByInvMass::chargedPionMass [private] |
Definition at line 33 of file CaloRecoTauDiscriminationByInvMass.cc.
double CaloRecoTauDiscriminationByInvMass::invMassMax [private] |
Definition at line 34 of file CaloRecoTauDiscriminationByInvMass.cc.
double CaloRecoTauDiscriminationByInvMass::invMassMin [private] |
Definition at line 34 of file CaloRecoTauDiscriminationByInvMass.cc.