CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
ClusterSummarySingleMultiplicity Class Reference

#include <Multiplicities.h>

Public Member Functions

 ClusterSummarySingleMultiplicity ()
 
 ClusterSummarySingleMultiplicity (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
 
 ClusterSummarySingleMultiplicity (const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
 
void getEvent (const edm::Event &iEvent, const edm::EventSetup &iSetup)
 
int mult () const
 

Private Attributes

edm::EDGetTokenT< ClusterSummarym_collection
 
int m_mult
 
ClusterSummary::CMSTracker m_subdetenum
 
ClusterSummary::VariablePlacement m_varenum
 

Detailed Description

Definition at line 33 of file Multiplicities.h.

Constructor & Destructor Documentation

ClusterSummarySingleMultiplicity::ClusterSummarySingleMultiplicity ( )
ClusterSummarySingleMultiplicity::ClusterSummarySingleMultiplicity ( const edm::ParameterSet iConfig,
edm::ConsumesCollector &&  iC 
)

Definition at line 6 of file Multiplicities.cc.

6  :
8  m_mult(0),
9  m_collection(iC.consumes<ClusterSummary>(iConfig.getParameter<edm::InputTag>("clusterSummaryCollection")))
10 {}
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
ClusterSummary::VariablePlacement m_varenum
ClusterSummary::CMSTracker m_subdetenum
edm::EDGetTokenT< ClusterSummary > m_collection
ClusterSummarySingleMultiplicity::ClusterSummarySingleMultiplicity ( const edm::ParameterSet iConfig,
edm::ConsumesCollector iC 
)

Definition at line 12 of file Multiplicities.cc.

12  :
14  m_mult(0),
15  m_collection(iC.consumes<ClusterSummary>(iConfig.getParameter<edm::InputTag>("clusterSummaryCollection")))
16 {}
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
ClusterSummary::VariablePlacement m_varenum
ClusterSummary::CMSTracker m_subdetenum
edm::EDGetTokenT< ClusterSummary > m_collection

Member Function Documentation

void ClusterSummarySingleMultiplicity::getEvent ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)

Definition at line 18 of file Multiplicities.cc.

References ClusterSummary::CLUSTERCHARGE, ClusterSummary::CLUSTERSIZE, edm::Event::getByToken(), ClusterSummary::getClusCharge(), ClusterSummary::getClusSize(), ClusterSummary::getNClus(), createfilelist::int, m_collection, m_mult, m_subdetenum, m_varenum, and ClusterSummary::NCLUSTERS.

18  {
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 }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:579
float getClusCharge(const CMSTracker mod) const
ClusterSummary::VariablePlacement m_varenum
int getClusSize(const CMSTracker mod) const
int getNClus(const CMSTracker mod) const
ClusterSummary::CMSTracker m_subdetenum
edm::EDGetTokenT< ClusterSummary > m_collection
int ClusterSummarySingleMultiplicity::mult ( ) const

Definition at line 33 of file Multiplicities.cc.

References m_mult.

Member Data Documentation

edm::EDGetTokenT<ClusterSummary> ClusterSummarySingleMultiplicity::m_collection
private

Definition at line 50 of file Multiplicities.h.

Referenced by getEvent().

int ClusterSummarySingleMultiplicity::m_mult
private

Definition at line 48 of file Multiplicities.h.

Referenced by getEvent(), and mult().

ClusterSummary::CMSTracker ClusterSummarySingleMultiplicity::m_subdetenum
private

Definition at line 46 of file Multiplicities.h.

Referenced by getEvent().

ClusterSummary::VariablePlacement ClusterSummarySingleMultiplicity::m_varenum
private

Definition at line 47 of file Multiplicities.h.

Referenced by getEvent().