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
:
public
CaloTauDiscriminationProducerBase
{
14
public
:
15
explicit
TCRecoTauDiscriminationAgainstHadronicJets
(
const
edm::ParameterSet
& iConfig):
CaloTauDiscriminationProducerBase
(iConfig){
16
tcTauAlgorithm =
new
TCTauAlgorithm
(iConfig);
17
}
18
~TCRecoTauDiscriminationAgainstHadronicJets
(){}
19
double
discriminate(
const
CaloTauRef
& theCaloTauRef);
20
void
beginEvent(
const
edm::Event
&,
const
edm::EventSetup
&);
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
TCRecoTauDiscriminationAgainstHadronicJets::discriminate
double discriminate(const CaloTauRef &theCaloTauRef)
Definition:
TCRecoTauDiscriminationAgainstHadronicJets.cc:31
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:105
iEvent
int iEvent
Definition:
GenABIO.cc:243
TCTauAlgorithm
Definition:
TCTauAlgorithm.h:45
TCRecoTauDiscriminationAgainstHadronicJets
Definition:
TCRecoTauDiscriminationAgainstHadronicJets.cc:13
edm::EventSetup
Definition:
EventSetup.h:44
TCRecoTauDiscriminationAgainstHadronicJets::tcTauAlgorithm
TCTauAlgorithm * tcTauAlgorithm
Definition:
TCRecoTauDiscriminationAgainstHadronicJets.cc:23
reco::DEFINE_FWK_MODULE
DEFINE_FWK_MODULE(CosmicTrackingParticleSelector)
TauDiscriminationProducerBase
Definition:
TauDiscriminationProducerBase.h:47
edm::ParameterSet
Definition:
ParameterSet.h:35
TCRecoTauDiscriminationAgainstHadronicJets::beginEvent
void beginEvent(const edm::Event &, const edm::EventSetup &)
Definition:
TCRecoTauDiscriminationAgainstHadronicJets.cc:26
TCTauAlgorithm::TCAlgoHadronicJet
Definition:
TCTauAlgorithm.h:52
edm::Event
Definition:
Event.h:50
edm::Ref
Definition:
AssociativeIterator.h:52
Generated for CMSSW Reference Manual by
1.8.5