test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
:
public
CaloTauDiscriminationProducerBase
{
14
public
:
15
explicit
TCRecoTauDiscriminationAgainstHadronicJets
(
const
edm::ParameterSet
& iConfig):
CaloTauDiscriminationProducerBase
(iConfig){
16
tcTauAlgorithm =
new
TCTauAlgorithm
(iConfig, consumesCollector());
17
}
18
~TCRecoTauDiscriminationAgainstHadronicJets
(){}
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
TCRecoTauDiscriminationAgainstHadronicJets::beginEvent
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup){
27
tcTauAlgorithm->eventSetup(iEvent,iSetup);
28
}
29
30
31
double
TCRecoTauDiscriminationAgainstHadronicJets::discriminate
(
const
CaloTauRef
& theCaloTauRef){
32
tcTauAlgorithm->recalculateEnergy(*theCaloTauRef);
33
return
((tcTauAlgorithm->algoComponent() !=
TCTauAlgorithm::TCAlgoHadronicJet
) ? 1. : 0.);
34
}
35
36
DEFINE_FWK_MODULE
(
TCRecoTauDiscriminationAgainstHadronicJets
);
TauDiscriminationProducerBase.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
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
TCTauAlgorithm::TCAlgoHadronicJet
Definition:
TCTauAlgorithm.h:52
iEvent
int iEvent
Definition:
GenABIO.cc:230
TCTauAlgorithm
Definition:
TCTauAlgorithm.h:45
TCRecoTauDiscriminationAgainstHadronicJets
Definition:
TCRecoTauDiscriminationAgainstHadronicJets.cc:13
edm::EventSetup
Definition:
EventSetup.h:44
TCRecoTauDiscriminationAgainstHadronicJets::discriminate
double discriminate(const CaloTauRef &theCaloTauRef) override
Definition:
TCRecoTauDiscriminationAgainstHadronicJets.cc:31
TCRecoTauDiscriminationAgainstHadronicJets::tcTauAlgorithm
TCTauAlgorithm * tcTauAlgorithm
Definition:
TCRecoTauDiscriminationAgainstHadronicJets.cc:23
TCRecoTauDiscriminationAgainstHadronicJets::beginEvent
void beginEvent(const edm::Event &, const edm::EventSetup &) override
Definition:
TCRecoTauDiscriminationAgainstHadronicJets.cc:26
TauDiscriminationProducerBase
Definition:
TauDiscriminationProducerBase.h:48
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::Event
Definition:
Event.h:62
edm::Ref
Definition:
AssociativeIterator.h:51
Generated for CMSSW Reference Manual by
1.8.5