CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ClusterSummarySingleMultiplicity Class Reference

#include <Multiplicities.h>

Public Member Functions

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

Private Attributes

std::vector< std::string > m_clustsummvar
 
edm::InputTag m_collection
 
int m_mult
 
int m_subdetenum
 
std::string m_subdetvar
 

Detailed Description

Definition at line 27 of file Multiplicities.h.

Constructor & Destructor Documentation

ClusterSummarySingleMultiplicity::ClusterSummarySingleMultiplicity ( )
ClusterSummarySingleMultiplicity::ClusterSummarySingleMultiplicity ( const edm::ParameterSet iConfig)

Definition at line 7 of file Multiplicities.cc.

References m_clustsummvar.

7  :
8  m_collection(iConfig.getParameter<edm::InputTag>("clusterSummaryCollection")),
9  m_subdetenum(iConfig.getParameter<int>("subDetEnum")),
10  m_subdetvar(iConfig.getParameter<std::string>("subDetVariable")),
12  m_mult(0)
13 {
14 
15  m_clustsummvar.push_back("cHits");
16  m_clustsummvar.push_back("cSize");
17  m_clustsummvar.push_back("cCharge");
18  m_clustsummvar.push_back("pHits");
19  m_clustsummvar.push_back("pSize");
20  m_clustsummvar.push_back("pCharge");
21 
22 }
T getParameter(std::string const &) const
std::vector< std::string > m_clustsummvar

Member Function Documentation

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

Definition at line 24 of file Multiplicities.cc.

References edm::Event::getByLabel(), m_clustsummvar, m_collection, m_mult, m_subdetenum, and m_subdetvar.

24  {
25 
26  m_mult = 0;
27 
29  iEvent.getByLabel(m_collection,clustsumm);
30 
31  clustsumm->SetUserContent(m_clustsummvar);
32 
33  m_mult = int(clustsumm->GetGenericVariable(m_subdetvar,m_subdetenum));
34 
35 }
std::vector< std::string > m_clustsummvar
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:390
int ClusterSummarySingleMultiplicity::mult ( ) const

Definition at line 37 of file Multiplicities.cc.

References m_mult.

Member Data Documentation

std::vector<std::string> ClusterSummarySingleMultiplicity::m_clustsummvar
private

Definition at line 40 of file Multiplicities.h.

Referenced by ClusterSummarySingleMultiplicity(), and getEvent().

edm::InputTag ClusterSummarySingleMultiplicity::m_collection
private

Definition at line 37 of file Multiplicities.h.

Referenced by getEvent().

int ClusterSummarySingleMultiplicity::m_mult
private

Definition at line 41 of file Multiplicities.h.

Referenced by getEvent(), and mult().

int ClusterSummarySingleMultiplicity::m_subdetenum
private

Definition at line 38 of file Multiplicities.h.

Referenced by getEvent().

std::string ClusterSummarySingleMultiplicity::m_subdetvar
private

Definition at line 39 of file Multiplicities.h.

Referenced by getEvent().