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 
7  m_subdetenum((ClusterSummary::CMSTracker)iConfig.getParameter<int>("subDetEnum")),m_varenum((ClusterSummary::VariablePlacement)iConfig.getParameter<int>("varEnum")),
8  m_mult(0),
9  m_collection(iC.consumes<ClusterSummary>(iConfig.getParameter<edm::InputTag>("clusterSummaryCollection")))
10 {}
11 
13  m_subdetenum((ClusterSummary::CMSTracker)iConfig.getParameter<int>("subDetEnum")),m_varenum((ClusterSummary::VariablePlacement)iConfig.getParameter<int>("varEnum")),
14  m_mult(0),
15  m_collection(iC.consumes<ClusterSummary>(iConfig.getParameter<edm::InputTag>("clusterSummaryCollection")))
16 {}
17 
19 
20  m_mult = 0;
21 
23  iEvent.getByToken(m_collection,clustsumm);
24 
25  switch(m_varenum){
26  case ClusterSummary::NCLUSTERS : m_mult = int(clustsumm->getNClus (m_subdetenum)); break;
27  case ClusterSummary::CLUSTERSIZE : m_mult = int(clustsumm->getClusSize (m_subdetenum)); break;
29  default : m_mult = -1;
30  }
31 }
32 
34 
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:460
float getClusCharge(const CMSTracker mod) const
void getEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
int iEvent
Definition: GenABIO.cc:230
ClusterSummary::VariablePlacement m_varenum
int getClusSize(const CMSTracker mod) const
int getNClus(const CMSTracker mod) const
ClusterSummary::CMSTracker m_subdetenum
HLT enums.
edm::EDGetTokenT< ClusterSummary > m_collection