Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
JetMETCorrections
TauJet
plugins
TCRecoTauDiscriminationAlgoComponent.cc
Go to the documentation of this file.
1
/*
2
* class TCRecoTauDiscriminationAlgoComponent
3
* created : May 4 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
TCRecoTauDiscriminationAlgoComponent
:
public
CaloTauDiscriminationProducerBase
{
14
public
:
15
explicit
TCRecoTauDiscriminationAlgoComponent
(
const
edm::ParameterSet
& iConfig):
CaloTauDiscriminationProducerBase
(iConfig){
16
tcTauAlgorithm =
new
TCTauAlgorithm
(iConfig, consumesCollector());
17
}
18
~TCRecoTauDiscriminationAlgoComponent
(){}
19
double
discriminate(
const
CaloTauRef
& theCaloTauRef)
override
;
20
void
beginEvent(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
21
22
private
:
23
TCTauAlgorithm
*
tcTauAlgorithm
;
24
};
25
26
void
TCRecoTauDiscriminationAlgoComponent::beginEvent
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup){
27
tcTauAlgorithm->eventSetup(iEvent,iSetup);
28
}
29
30
31
double
TCRecoTauDiscriminationAlgoComponent::discriminate
(
const
CaloTauRef
& theCaloTauRef){
32
tcTauAlgorithm->recalculateEnergy(*theCaloTauRef);
33
return
(tcTauAlgorithm->algoComponent());
34
}
35
36
DEFINE_FWK_MODULE
(
TCRecoTauDiscriminationAlgoComponent
);
TauDiscriminationProducerBase.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
TCTauAlgorithm.h
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:107
TCRecoTauDiscriminationAlgoComponent::discriminate
double discriminate(const CaloTauRef &theCaloTauRef) override
Definition:
TCRecoTauDiscriminationAlgoComponent.cc:31
TCRecoTauDiscriminationAlgoComponent::TCRecoTauDiscriminationAlgoComponent
TCRecoTauDiscriminationAlgoComponent(const edm::ParameterSet &iConfig)
Definition:
TCRecoTauDiscriminationAlgoComponent.cc:15
TCRecoTauDiscriminationAlgoComponent::tcTauAlgorithm
TCTauAlgorithm * tcTauAlgorithm
Definition:
TCRecoTauDiscriminationAlgoComponent.cc:23
iEvent
int iEvent
Definition:
GenABIO.cc:230
TCTauAlgorithm
Definition:
TCTauAlgorithm.h:45
edm::EventSetup
Definition:
EventSetup.h:44
TauDiscriminationProducerBase
Definition:
TauDiscriminationProducerBase.h:48
TCRecoTauDiscriminationAlgoComponent
Definition:
TCRecoTauDiscriminationAlgoComponent.cc:13
TCRecoTauDiscriminationAlgoComponent::beginEvent
void beginEvent(const edm::Event &, const edm::EventSetup &) override
Definition:
TCRecoTauDiscriminationAlgoComponent.cc:26
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:62
edm::Ref
Definition:
AssociativeIterator.h:51
TCRecoTauDiscriminationAlgoComponent::~TCRecoTauDiscriminationAlgoComponent
~TCRecoTauDiscriminationAlgoComponent()
Definition:
TCRecoTauDiscriminationAlgoComponent.cc:18
Generated for CMSSW Reference Manual by
1.8.5