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 
int getClusSize(const CMSTracker mod) const
float getClusCharge(const CMSTracker mod) const
void getEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
int iEvent
Definition: GenABIO.cc:224
ClusterSummary::VariablePlacement m_varenum
int getNClus(const CMSTracker mod) const
ClusterSummary::CMSTracker m_subdetenum
HLT enums.
edm::EDGetTokenT< ClusterSummary > m_collection