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 30 of file Multiplicities.h.

Constructor & Destructor Documentation

◆ ClusterSummarySingleMultiplicity() [1/3]

ClusterSummarySingleMultiplicity::ClusterSummarySingleMultiplicity ( )

◆ ClusterSummarySingleMultiplicity() [2/3]

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

Definition at line 6 of file Multiplicities.cc.

8  : m_subdetenum((ClusterSummary::CMSTracker)iConfig.getParameter<int>("subDetEnum")),
10  m_mult(0),
11  m_collection(iC.consumes<ClusterSummary>(iConfig.getParameter<edm::InputTag>("clusterSummaryCollection"))) {}

◆ ClusterSummarySingleMultiplicity() [3/3]

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

Definition at line 13 of file Multiplicities.cc.

15  : m_subdetenum((ClusterSummary::CMSTracker)iConfig.getParameter<int>("subDetEnum")),
17  m_mult(0),
18  m_collection(iC.consumes<ClusterSummary>(iConfig.getParameter<edm::InputTag>("clusterSummaryCollection"))) {}

Member Function Documentation

◆ getEvent()

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

Definition at line 20 of file Multiplicities.cc.

20  {
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 }

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

◆ mult()

int ClusterSummarySingleMultiplicity::mult ( ) const

Definition at line 41 of file Multiplicities.cc.

41 { return m_mult; }

References m_mult.

Member Data Documentation

◆ m_collection

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

Definition at line 43 of file Multiplicities.h.

Referenced by getEvent().

◆ m_mult

int ClusterSummarySingleMultiplicity::m_mult
private

Definition at line 42 of file Multiplicities.h.

Referenced by getEvent(), and mult().

◆ m_subdetenum

ClusterSummary::CMSTracker ClusterSummarySingleMultiplicity::m_subdetenum
private

Definition at line 40 of file Multiplicities.h.

Referenced by getEvent().

◆ m_varenum

ClusterSummary::VariablePlacement ClusterSummarySingleMultiplicity::m_varenum
private

Definition at line 41 of file Multiplicities.h.

Referenced by getEvent().

ClusterSummary::STRIP
Definition: ClusterSummary.h:84
edm::Handle
Definition: AssociativeIterator.h:50
ClusterSummarySingleMultiplicity::m_subdetenum
ClusterSummary::CMSTracker m_subdetenum
Definition: Multiplicities.h:40
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
ClusterSummary::VariablePlacement
VariablePlacement
Definition: ClusterSummary.h:99
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
ClusterSummary::CLUSTERCHARGE
Definition: ClusterSummary.h:99
ClusterSummary::CMSTracker
CMSTracker
Definition: ClusterSummary.h:83
ClusterSummary
Definition: ClusterSummary.h:59
ClusterSummary::CLUSTERSIZE
Definition: ClusterSummary.h:99
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
ClusterSummary::getNClus
int getNClus(const CMSTracker mod) const
Definition: ClusterSummary.h:116
edm::InputTag
Definition: InputTag.h:15
ClusterSummarySingleMultiplicity::m_collection
edm::EDGetTokenT< ClusterSummary > m_collection
Definition: Multiplicities.h:43