1 #ifndef DPGAnalysis_SiStripTools_Multiplicities_H
2 #define DPGAnalysis_SiStripTools_Multiplicities_H
89 m_modthr(-1), m_useQuality(
false), m_qualityLabel(),
97 m_collection(iC.consumes<
T>(iConfig.getParameter<edm::InputTag>(
"collectionName"))),
98 m_modthr(iConfig.getUntrackedParameter<int>(
"moduleThreshold")),
99 m_useQuality(iConfig.getUntrackedParameter<bool>(
"useQuality",
false)),
100 m_qualityLabel(iConfig.getUntrackedParameter<std::
string>(
"qualityLabel",
"")),
106 m_collection(iC.consumes<
T>(iConfig.getParameter<edm::InputTag>(
"collectionName"))),
107 m_modthr(iConfig.getUntrackedParameter<int>(
"moduleThreshold")),
108 m_useQuality(iConfig.getUntrackedParameter<bool>(
"useQuality",
false)),
109 m_qualityLabel(iConfig.getUntrackedParameter<std::
string>(
"qualityLabel",
"")),
131 for(
typename T::const_iterator it = digis->begin();it!=digis->end();it++) {
133 if(!m_useQuality || !qualityHandle->IsModuleBad(it->detId()) ) {
134 if(m_modthr < 0 ||
int(it->size()) < m_modthr ) {
135 m_mult += it->size();
147 template <
class T1,
class T2>
170 template <
class T1,
class T2>
173 m_multiplicity1(), m_multiplicity2()
177 template <
class T1,
class T2>
180 m_multiplicity1(iConfig.getParameter<edm::
ParameterSet>(
"firstMultiplicityConfig"),iC),
181 m_multiplicity2(iConfig.getParameter<edm::
ParameterSet>(
"secondMultiplicityConfig"),iC)
183 template <
class T1,
class T2>
186 m_multiplicity1(iConfig.getParameter<edm::
ParameterSet>(
"firstMultiplicityConfig"),iC),
187 m_multiplicity2(iConfig.getParameter<edm::
ParameterSet>(
"secondMultiplicityConfig"),iC)
191 template <
class T1,
class T2>
195 m_multiplicity1.getEvent(iEvent,iSetup);
196 m_multiplicity2.getEvent(iEvent,iSetup);
203 template<
class T1,
class T2>
206 template<
class T1,
class T2>
217 #endif // DPGAnalysis_SiStripTools_Multiplicities_H
std::string m_qualityLabel
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void getEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
MultiplicityPair< ClusterSummarySingleMultiplicity, ClusterSummarySingleMultiplicity > ClusterSummaryMultiplicityPair
edm::EDGetTokenT< T > m_collection
void getEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
std::vector< std::string > m_clustsummvar
SingleMultiplicity< edmNew::DetSetVector< SiPixelCluster > > SingleSiPixelClusterMultiplicity
SingleMultiplicity< edmNew::DetSetVector< SiStripCluster > > SingleSiStripClusterMultiplicity
void getEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
MultiplicityPair< SingleMultiplicity< edmNew::DetSetVector< SiPixelCluster > >,SingleMultiplicity< edmNew::DetSetVector< SiStripCluster > > > SiPixelClusterSiStripClusterMultiplicityPair
volatile std::atomic< bool > shutdown_flag false
SingleMultiplicity< edm::DetSetVector< SiStripDigi > > SingleSiStripDigiMultiplicity
ClusterSummarySingleMultiplicity()
edm::EDGetTokenT< ClusterSummary > m_collection