1 #ifndef DPGAnalysis_SiStripTools_Multiplicities_H
2 #define DPGAnalysis_SiStripTools_Multiplicities_H
68 m_collection(), m_modthr(-1), m_useQuality(
false), m_qualityLabel(),
75 m_collection(iConfig.getParameter<edm::InputTag>(
"collectionName")),
76 m_modthr(iConfig.getUntrackedParameter<int>(
"moduleThreshold")),
77 m_useQuality(iConfig.getUntrackedParameter<bool>(
"useQuality",
false)),
78 m_qualityLabel(iConfig.getUntrackedParameter<std::string>(
"qualityLabel",
"")),
98 for(
typename T::const_iterator it = digis->begin();it!=digis->end();it++) {
100 if(!m_useQuality || !qualityHandle->IsModuleBad(it->detId()) ) {
101 if(m_modthr < 0 ||
int(it->size()) < m_modthr ) {
102 m_mult += it->size();
113 template <
class T1,
class T2>
133 template <
class T1,
class T2>
136 m_multiplicity1(), m_multiplicity2()
139 template <
class T1,
class T2>
142 m_multiplicity1(iConfig.getParameter<edm::
ParameterSet>(
"firstMultiplicityConfig")),
143 m_multiplicity2(iConfig.getParameter<edm::
ParameterSet>(
"secondMultiplicityConfig"))
146 template <
class T1,
class T2>
150 m_multiplicity1.getEvent(iEvent,iSetup);
151 m_multiplicity2.getEvent(iEvent,iSetup);
158 template<
class T1,
class T2>
161 template<
class T1,
class T2>
172 #endif // DPGAnalysis_SiStripTools_Multiplicities_H
std::string m_qualityLabel
void getEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
MultiplicityPair< ClusterSummarySingleMultiplicity, ClusterSummarySingleMultiplicity > ClusterSummaryMultiplicityPair
void getEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
std::vector< std::string > m_clustsummvar
edm::InputTag m_collection
SingleMultiplicity< edmNew::DetSetVector< SiPixelCluster > > SingleSiPixelClusterMultiplicity
edm::InputTag m_collection
SingleMultiplicity< edmNew::DetSetVector< SiStripCluster > > SingleSiStripClusterMultiplicity
void getEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MultiplicityPair< SingleMultiplicity< edmNew::DetSetVector< SiPixelCluster > >,SingleMultiplicity< edmNew::DetSetVector< SiStripCluster > > > SiPixelClusterSiStripClusterMultiplicityPair
SingleMultiplicity< edm::DetSetVector< SiStripDigi > > SingleSiStripDigiMultiplicity
ClusterSummarySingleMultiplicity()