CMS 3D CMS Logo

Multiplicities.cc
Go to the documentation of this file.
2 
4  : m_subdetenum(ClusterSummary::STRIP), m_varenum(ClusterSummary::NCLUSTERS), m_mult(0), m_collection() {}
5 
8  : m_subdetenum((ClusterSummary::CMSTracker)iConfig.getParameter<int>("subDetEnum")),
9  m_varenum((ClusterSummary::VariablePlacement)iConfig.getParameter<int>("varEnum")),
10  m_mult(0),
11  m_collection(iC.consumes<ClusterSummary>(iConfig.getParameter<edm::InputTag>("clusterSummaryCollection"))) {}
12 
15  : m_subdetenum((ClusterSummary::CMSTracker)iConfig.getParameter<int>("subDetEnum")),
16  m_varenum((ClusterSummary::VariablePlacement)iConfig.getParameter<int>("varEnum")),
17  m_mult(0),
18  m_collection(iC.consumes<ClusterSummary>(iConfig.getParameter<edm::InputTag>("clusterSummaryCollection"))) {}
19 
21  m_mult = 0;
22 
24  iEvent.getByToken(m_collection, clustsumm);
25 
26  switch (m_varenum) {
28  m_mult = int(clustsumm->getNClus(m_subdetenum));
29  break;
31  m_mult = int(clustsumm->getClusSize(m_subdetenum));
32  break;
34  m_mult = int(clustsumm->getClusCharge(m_subdetenum));
35  break;
36  default:
37  m_mult = -1;
38  }
39 }
40 
edm
HLT enums.
Definition: AlignableModifier.h:19
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89353
edm::Handle
Definition: AssociativeIterator.h:50
ClusterSummarySingleMultiplicity::ClusterSummarySingleMultiplicity
ClusterSummarySingleMultiplicity()
Definition: Multiplicities.cc:3
ClusterSummarySingleMultiplicity::m_subdetenum
ClusterSummary::CMSTracker m_subdetenum
Definition: Multiplicities.h:40
ClusterSummarySingleMultiplicity::mult
int mult() const
Definition: Multiplicities.cc:41
edm::ParameterSet
Definition: ParameterSet.h:47
Multiplicities.h
ClusterSummarySingleMultiplicity::getEvent
void getEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Definition: Multiplicities.cc:20
ClusterSummarySingleMultiplicity::m_mult
int m_mult
Definition: Multiplicities.h:42
createfilelist.int
int
Definition: createfilelist.py:10
iEvent
int iEvent
Definition: GenABIO.cc:224
ClusterSummary::getClusSize
int getClusSize(const CMSTracker mod) const
Definition: ClusterSummary.h:120
ClusterSummarySingleMultiplicity::m_varenum
ClusterSummary::VariablePlacement m_varenum
Definition: Multiplicities.h:41
ClusterSummary::NCLUSTERS
Definition: ClusterSummary.h:99
ClusterSummary::getClusCharge
float getClusCharge(const CMSTracker mod) const
Definition: ClusterSummary.h:124
edm::EventSetup
Definition: EventSetup.h:57
ClusterSummary::CLUSTERCHARGE
Definition: ClusterSummary.h:99
ClusterSummary
Definition: ClusterSummary.h:59
ClusterSummary::CLUSTERSIZE
Definition: ClusterSummary.h:99
ClusterSummary::getNClus
int getNClus(const CMSTracker mod) const
Definition: ClusterSummary.h:116
edm::Event
Definition: Event.h:73
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
ClusterSummarySingleMultiplicity::m_collection
edm::EDGetTokenT< ClusterSummary > m_collection
Definition: Multiplicities.h:43