Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoTauTag
RecoTau
plugins
CaloRecoTauDiscriminationAgainstHadronicJets.cc
Go to the documentation of this file.
1
/*
2
* class CaloRecoTauDiscriminationAgainstHadronicJets
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
using namespace
edm;
13
14
class
CaloRecoTauDiscriminationAgainstHadronicJets
:
public
CaloTauDiscriminationProducerBase
{
15
public
:
16
explicit
CaloRecoTauDiscriminationAgainstHadronicJets
(
17
const
edm::ParameterSet
& iConfig)
18
:
CaloTauDiscriminationProducerBase
(iConfig){
19
tcTauAlgorithm =
new
TCTauAlgorithm
(iConfig, consumesCollector());
20
}
21
~CaloRecoTauDiscriminationAgainstHadronicJets
(){}
22
double
discriminate(
const
CaloTauRef
& theCaloTauRef)
override
;
23
void
beginEvent(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
24
25
private
:
26
TCTauAlgorithm
*
tcTauAlgorithm
;
27
};
28
29
void
CaloRecoTauDiscriminationAgainstHadronicJets::beginEvent
(
30
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup){
31
tcTauAlgorithm->eventSetup(iEvent,iSetup);
32
}
33
34
35
double
CaloRecoTauDiscriminationAgainstHadronicJets::discriminate
(
36
const
CaloTauRef
& theCaloTauRef){
37
tcTauAlgorithm->recalculateEnergy(*theCaloTauRef);
38
return
((tcTauAlgorithm->algoComponent() !=
39
TCTauAlgorithm::TCAlgoHadronicJet
) ? 1. : 0.);
40
}
41
42
DEFINE_FWK_MODULE
(
CaloRecoTauDiscriminationAgainstHadronicJets
);
CaloRecoTauDiscriminationAgainstHadronicJets
Definition:
CaloRecoTauDiscriminationAgainstHadronicJets.cc:14
TauDiscriminationProducerBase.h
CaloRecoTauDiscriminationAgainstHadronicJets::~CaloRecoTauDiscriminationAgainstHadronicJets
~CaloRecoTauDiscriminationAgainstHadronicJets()
Definition:
CaloRecoTauDiscriminationAgainstHadronicJets.cc:21
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
TCTauAlgorithm::TCAlgoHadronicJet
Definition:
TCTauAlgorithm.h:52
CaloRecoTauDiscriminationAgainstHadronicJets::beginEvent
void beginEvent(const edm::Event &, const edm::EventSetup &) override
Definition:
CaloRecoTauDiscriminationAgainstHadronicJets.cc:29
edm::EventSetup
Definition:
EventSetup.h:44
reco::DEFINE_FWK_MODULE
DEFINE_FWK_MODULE(CosmicTrackingParticleSelector)
TauDiscriminationProducerBase
Definition:
TauDiscriminationProducerBase.h:48
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:62
CaloRecoTauDiscriminationAgainstHadronicJets::CaloRecoTauDiscriminationAgainstHadronicJets
CaloRecoTauDiscriminationAgainstHadronicJets(const edm::ParameterSet &iConfig)
Definition:
CaloRecoTauDiscriminationAgainstHadronicJets.cc:16
CaloRecoTauDiscriminationAgainstHadronicJets::discriminate
double discriminate(const CaloTauRef &theCaloTauRef) override
Definition:
CaloRecoTauDiscriminationAgainstHadronicJets.cc:35
edm::Ref
Definition:
AssociativeIterator.h:51
CaloRecoTauDiscriminationAgainstHadronicJets::tcTauAlgorithm
TCTauAlgorithm * tcTauAlgorithm
Definition:
CaloRecoTauDiscriminationAgainstHadronicJets.cc:26
Generated for CMSSW Reference Manual by
1.8.5