Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoTauTag
RecoTau
plugins
CaloRecoTauDiscriminationByTauPolarization.cc
Go to the documentation of this file.
1
#include "
RecoTauTag/RecoTau/interface/TauDiscriminationProducerBase.h
"
2
#include "
DataFormats/TrackReco/interface/Track.h
"
3
4
/* class CaloRecoTauDiscriminationByTauPolarization
5
* created : September 22 2010,
6
* contributors : Sami Lehti (sami.lehti@cern.ch ; HIP, Helsinki)
7
*/
8
9
using namespace
reco
;
10
using namespace
std;
11
12
class
CaloRecoTauDiscriminationByTauPolarization
:
public
CaloTauDiscriminationProducerBase
{
13
public
:
14
explicit
CaloRecoTauDiscriminationByTauPolarization
(
15
const
edm::ParameterSet
& iConfig)
16
:
CaloTauDiscriminationProducerBase
(iConfig) {
17
rTauMin = iConfig.
getParameter
<
double
>(
"rtau"
);
18
booleanOutput = iConfig.
getParameter
<
bool
>(
"BooleanOutput"
);
19
}
20
21
~CaloRecoTauDiscriminationByTauPolarization
(){}
22
double
discriminate(
const
CaloTauRef
&);
23
24
private
:
25
bool
booleanOutput
;
26
double
rTauMin
;
27
};
28
29
double
30
CaloRecoTauDiscriminationByTauPolarization::discriminate
(
const
CaloTauRef
&
tau
){
31
double
rTau = 0;
32
if
(tau.
isNonnull
() && tau->p() > 0 && tau->leadTrack().
isNonnull
())
33
rTau = tau->leadTrack()->p()/tau->p();
34
if
(booleanOutput)
return
( rTau > rTauMin ? 1. : 0. );
35
return
rTau;
36
}
37
38
DEFINE_FWK_MODULE
(
CaloRecoTauDiscriminationByTauPolarization
);
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
TauDiscriminationProducerBase.h
CaloRecoTauDiscriminationByTauPolarization::rTauMin
double rTauMin
Definition:
CaloRecoTauDiscriminationByTauPolarization.cc:26
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:105
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition:
Ref.h:250
CaloRecoTauDiscriminationByTauPolarization::discriminate
double discriminate(const CaloTauRef &)
Definition:
CaloRecoTauDiscriminationByTauPolarization.cc:30
metsig::tau
Definition:
SignAlgoResolutions.h:41
reco::DEFINE_FWK_MODULE
DEFINE_FWK_MODULE(CosmicTrackingParticleSelector)
TauDiscriminationProducerBase
Definition:
TauDiscriminationProducerBase.h:47
CaloRecoTauDiscriminationByTauPolarization::~CaloRecoTauDiscriminationByTauPolarization
~CaloRecoTauDiscriminationByTauPolarization()
Definition:
CaloRecoTauDiscriminationByTauPolarization.cc:21
CaloRecoTauDiscriminationByTauPolarization
Definition:
CaloRecoTauDiscriminationByTauPolarization.cc:12
edm::ParameterSet
Definition:
ParameterSet.h:35
Track.h
CaloRecoTauDiscriminationByTauPolarization::CaloRecoTauDiscriminationByTauPolarization
CaloRecoTauDiscriminationByTauPolarization(const edm::ParameterSet &iConfig)
Definition:
CaloRecoTauDiscriminationByTauPolarization.cc:14
edm::Ref
Definition:
AssociativeIterator.h:52
CaloRecoTauDiscriminationByTauPolarization::booleanOutput
bool booleanOutput
Definition:
CaloRecoTauDiscriminationByTauPolarization.cc:25
Generated for CMSSW Reference Manual by
1.8.5