CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:539
m_mult(0)
void getEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
int iEvent
Definition: GenABIO.cc:224
ClusterSummary::VariablePlacement m_varenum
ClusterSummary::CMSTracker m_subdetenum
m_collection(iC.consumes< T >(iConfig.getParameter< edm::InputTag >("collectionName")))
edm::EDGetTokenT< ClusterSummary > m_collection