Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
JetMETCorrections
TauJet
plugins
TCRecoTauDiscriminationAgainstHadronicJets.cc
Go to the documentation of this file.
1
/*
2
* class TCRecoTauDiscriminationAgainstHadronicJets
3
* created : April 21 2010,
4
* revised : ,
5
* Authors : Sami Lehti (HIP)
6
*/
7
8
#include "
RecoTauTag/RecoTau/interface/TauDiscriminationProducerBase.h
"
9
#include "
RecoTauTag/RecoTau/interface/TCTauAlgorithm.h
"
10
11
using namespace
reco
;
12
13
class
TCRecoTauDiscriminationAgainstHadronicJets
final :
public
CaloTauDiscriminationProducerBase
{
14
public
:
15
explicit
TCRecoTauDiscriminationAgainstHadronicJets
(
const
edm::ParameterSet
& iConfig):
CaloTauDiscriminationProducerBase
(iConfig),
16
tcTauAlgorithm(iConfig, consumesCollector()) {
17
}
18
~TCRecoTauDiscriminationAgainstHadronicJets
(){}
19
20
double
discriminate(
const
CaloTauRef
& theCaloTauRef)
const override
;
21
void
beginEvent(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
22
23
private
:
24
TCTauAlgorithm
tcTauAlgorithm
;
25
};
26
27
void
TCRecoTauDiscriminationAgainstHadronicJets::beginEvent
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup){
28
tcTauAlgorithm.eventSetup(iEvent,iSetup);
29
}
30
31
32
double
TCRecoTauDiscriminationAgainstHadronicJets::discriminate
(
const
CaloTauRef
& theCaloTauRef)
const
{
33
auto
algoused =
TCTauAlgorithm::TCAlgoUndetermined
;
34
tcTauAlgorithm.recalculateEnergy(*theCaloTauRef, algoused);
35
return
(algoused !=
TCTauAlgorithm::TCAlgoHadronicJet
) ? 1. : 0.;
36
}
37
38
DEFINE_FWK_MODULE
(
TCRecoTauDiscriminationAgainstHadronicJets
);
TauDiscriminationProducerBase.h
edm::Ref
Definition:
AssociativeIterator.h:51
TCRecoTauDiscriminationAgainstHadronicJets::~TCRecoTauDiscriminationAgainstHadronicJets
~TCRecoTauDiscriminationAgainstHadronicJets()
Definition:
TCRecoTauDiscriminationAgainstHadronicJets.cc:18
TCRecoTauDiscriminationAgainstHadronicJets::TCRecoTauDiscriminationAgainstHadronicJets
TCRecoTauDiscriminationAgainstHadronicJets(const edm::ParameterSet &iConfig)
Definition:
TCRecoTauDiscriminationAgainstHadronicJets.cc:15
TCTauAlgorithm.h
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:107
iEvent
int iEvent
Definition:
GenABIO.cc:230
TCTauAlgorithm
Definition:
TCTauAlgorithm.h:45
TCRecoTauDiscriminationAgainstHadronicJets
Definition:
TCRecoTauDiscriminationAgainstHadronicJets.cc:13
TCRecoTauDiscriminationAgainstHadronicJets::tcTauAlgorithm
TCTauAlgorithm tcTauAlgorithm
Definition:
TCRecoTauDiscriminationAgainstHadronicJets.cc:24
TCRecoTauDiscriminationAgainstHadronicJets::discriminate
double discriminate(const CaloTauRef &theCaloTauRef) const override
Definition:
TCRecoTauDiscriminationAgainstHadronicJets.cc:32
edm::EventSetup
Definition:
EventSetup.h:44
TCRecoTauDiscriminationAgainstHadronicJets::beginEvent
void beginEvent(const edm::Event &, const edm::EventSetup &) override
Definition:
TCRecoTauDiscriminationAgainstHadronicJets.cc:27
reco::DEFINE_FWK_MODULE
DEFINE_FWK_MODULE(CosmicTrackingParticleSelector)
TauDiscriminationProducerBase
Definition:
TauDiscriminationProducerBase.h:49
TCTauAlgorithm::TCAlgoUndetermined
Definition:
TCTauAlgorithm.h:47
edm::ParameterSet
Definition:
ParameterSet.h:35
TCTauAlgorithm::TCAlgoHadronicJet
Definition:
TCTauAlgorithm.h:52
edm::Event
Definition:
Event.h:59
Generated for CMSSW Reference Manual by
1.8.5