1 #ifndef DPGAnalysis_SiStripTools_Multiplicities_H
2 #define DPGAnalysis_SiStripTools_Multiplicities_H
71 m_collection(), m_modthr(-1), m_useQuality(
false), m_qualityLabel(),
78 m_collection(iConfig.getParameter<edm::InputTag>(
"collectionName")),
79 m_modthr(iConfig.getUntrackedParameter<int>(
"moduleThreshold")),
80 m_useQuality(iConfig.getUntrackedParameter<bool>(
"useQuality",
false)),
81 m_qualityLabel(iConfig.getUntrackedParameter<std::
string>(
"qualityLabel",
"")),
102 for(
typename T::const_iterator it = digis->begin();it!=digis->end();it++) {
104 if(!m_useQuality || !qualityHandle->IsModuleBad(it->detId()) ) {
105 if(m_modthr < 0 ||
int(it->size()) < m_modthr ) {
106 m_mult += it->size();
118 template <
class T1,
class T2>
138 template <
class T1,
class T2>
141 m_multiplicity1(), m_multiplicity2()
144 template <
class T1,
class T2>
147 m_multiplicity1(iConfig.getParameter<edm::
ParameterSet>(
"firstMultiplicityConfig")),
148 m_multiplicity2(iConfig.getParameter<edm::
ParameterSet>(
"secondMultiplicityConfig"))
151 template <
class T1,
class T2>
155 m_multiplicity1.getEvent(iEvent,iSetup);
156 m_multiplicity2.getEvent(iEvent,iSetup);
163 template<
class T1,
class T2>
166 template<
class T1,
class T2>
177 #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()