CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Multiplicities.cc
Go to the documentation of this file.
3 
5  m_collection(),m_subdetenum(0),m_subdetvar(), m_clustsummvar(), m_mult(0) { }
6 
8  m_collection(iConfig.getParameter<edm::InputTag>("clusterSummaryCollection")),
9  m_subdetenum(iConfig.getParameter<int>("subDetEnum")),
10  m_subdetvar(iConfig.getParameter<std::string>("subDetVariable")),
11  m_clustsummvar(),
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 }
23 
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 }
36 
38 
void getEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
std::vector< std::string > m_clustsummvar
int iEvent
Definition: GenABIO.cc:243
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356