PhysicsTools
IsolationAlgos
plugins
CandIsoDepositProducer.h
Go to the documentation of this file.
1
#ifndef MuonIsolationProducers_CandIsoDepositProducer_H
2
#define MuonIsolationProducers_CandIsoDepositProducer_H
3
4
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
5
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
6
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
7
#include "
DataFormats/Common/interface/AssociationVector.h
"
8
#include "
DataFormats/Common/interface/RefToBaseProd.h
"
9
#include <
DataFormats/RecoCandidate/interface/RecoCandidate.h
>
10
11
#include "
DataFormats/RecoCandidate/interface/IsoDepositFwd.h
"
12
#include "
DataFormats/RecoCandidate/interface/IsoDeposit.h
"
13
#include "
PhysicsTools/IsolationAlgos/interface/IsoDepositExtractor.h
"
14
15
#include <string>
16
17
namespace
edm
{
18
class
Event
;
19
}
20
namespace
edm
{
21
class
EventSetup
;
22
}
23
24
class
CandIsoDepositProducer
:
public
edm::stream::EDProducer
<> {
25
public
:
26
CandIsoDepositProducer
(
const
edm::ParameterSet
&);
27
28
~CandIsoDepositProducer
()
override
;
29
30
void
produce
(
edm::Event
&,
const
edm::EventSetup
&)
override
;
31
32
private
:
33
inline
const
reco::Track
*
extractTrack
(
const
reco::Candidate
&
cand
,
reco::Track
*dummyStorage)
const
;
34
enum
TrackType
{
FakeT
,
BestT
,
StandAloneMuonT
,
CombinedMuonT
,
TrackT
,
GsfT
,
CandidateT
};
35
edm::ParameterSet
theConfig
;
36
edm::EDGetTokenT<edm::View<reco::Candidate>
>
theCandCollectionToken
;
37
TrackType
theTrackType
;
38
std::vector<std::string>
theDepositNames
;
39
bool
theMultipleDepositsFlag
;
40
std::unique_ptr<reco::isodeposit::IsoDepositExtractor>
theExtractor
;
41
};
42
#endif
CandIsoDepositProducer
Definition:
CandIsoDepositProducer.h:24
CandIsoDepositProducer::FakeT
Definition:
CandIsoDepositProducer.h:34
CandIsoDepositProducer::CombinedMuonT
Definition:
CandIsoDepositProducer.h:34
edm::EDGetTokenT
Definition:
EDGetToken.h:33
CandIsoDepositProducer::theExtractor
std::unique_ptr< reco::isodeposit::IsoDepositExtractor > theExtractor
Definition:
CandIsoDepositProducer.h:40
edm
HLT enums.
Definition:
AlignableModifier.h:19
EDProducer.h
RecoCandidate.h
CandIsoDepositProducer::CandIsoDepositProducer
CandIsoDepositProducer(const edm::ParameterSet &)
constructor with config
Definition:
CandIsoDepositProducer.cc:29
CandIsoDepositProducer::BestT
Definition:
CandIsoDepositProducer.h:34
CandIsoDepositProducer::TrackT
Definition:
CandIsoDepositProducer.h:34
reco::Track
Definition:
Track.h:27
Event
IsoDeposit.h
RefToBaseProd.h
CandIsoDepositProducer::~CandIsoDepositProducer
~CandIsoDepositProducer() override
destructor
Definition:
CandIsoDepositProducer.cc:73
IsoDepositExtractor.h
edm::ParameterSet
Definition:
ParameterSet.h:47
cand
Definition:
decayParser.h:32
CandIsoDepositProducer::StandAloneMuonT
Definition:
CandIsoDepositProducer.h:34
edm::stream::EDProducer
Definition:
EDProducer.h:38
edm::EventSetup
Definition:
EventSetup.h:57
CandIsoDepositProducer::theDepositNames
std::vector< std::string > theDepositNames
Definition:
CandIsoDepositProducer.h:38
CandIsoDepositProducer::CandidateT
Definition:
CandIsoDepositProducer.h:34
reco::Candidate
Definition:
Candidate.h:27
CandIsoDepositProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
build deposits
Definition:
CandIsoDepositProducer.cc:113
CandIsoDepositProducer::theCandCollectionToken
edm::EDGetTokenT< edm::View< reco::Candidate > > theCandCollectionToken
Definition:
CandIsoDepositProducer.h:36
CandIsoDepositProducer::theConfig
edm::ParameterSet theConfig
Definition:
CandIsoDepositProducer.h:35
CandIsoDepositProducer::GsfT
Definition:
CandIsoDepositProducer.h:34
AssociationVector.h
ConsumesCollector.h
IsoDepositFwd.h
EventSetup
ParameterSet.h
CandIsoDepositProducer::TrackType
TrackType
Definition:
CandIsoDepositProducer.h:34
CandIsoDepositProducer::theTrackType
TrackType theTrackType
Definition:
CandIsoDepositProducer.h:37
edm::Event
Definition:
Event.h:73
CandIsoDepositProducer::extractTrack
const reco::Track * extractTrack(const reco::Candidate &cand, reco::Track *dummyStorage) const
Definition:
CandIsoDepositProducer.cc:77
CandIsoDepositProducer::theMultipleDepositsFlag
bool theMultipleDepositsFlag
Definition:
CandIsoDepositProducer.h:39
Generated for CMSSW Reference Manual by
1.8.16