1 #ifndef DPGAnalysis_SiStripTools_Multiplicities_H
2 #define DPGAnalysis_SiStripTools_Multiplicities_H
88 m_modthr(-1), m_useQuality(
false), m_qualityLabel(),
96 m_collection(iC.consumes<
T>(iConfig.getParameter<edm::
InputTag>(
"collectionName"))),
97 m_modthr(iConfig.getUntrackedParameter<int>(
"moduleThreshold")),
98 m_useQuality(iConfig.getUntrackedParameter<bool>(
"useQuality",
false)),
99 m_qualityLabel(iConfig.getUntrackedParameter<std::
string>(
"qualityLabel",
"")),
105 m_collection(iC.consumes<
T>(iConfig.getParameter<edm::
InputTag>(
"collectionName"))),
106 m_modthr(iConfig.getUntrackedParameter<int>(
"moduleThreshold")),
107 m_useQuality(iConfig.getUntrackedParameter<bool>(
"useQuality",
false)),
108 m_qualityLabel(iConfig.getUntrackedParameter<std::
string>(
"qualityLabel",
"")),
113 #ifndef __ROOTCLING__
130 for(
typename T::const_iterator it = digis->begin();it!=digis->end();it++) {
132 if(!m_useQuality || !qualityHandle->IsModuleBad(it->detId()) ) {
133 if(m_modthr < 0 ||
int(it->size()) < m_modthr ) {
134 m_mult += it->size();
146 template <
class T1,
class T2>
151 #ifndef __ROOTCLING__
169 template <
class T1,
class T2>
172 m_multiplicity1(), m_multiplicity2()
175 #ifndef __ROOTCLING__
176 template <
class T1,
class T2>
179 m_multiplicity1(iConfig.getParameter<edm::
ParameterSet>(
"firstMultiplicityConfig"),iC),
180 m_multiplicity2(iConfig.getParameter<edm::
ParameterSet>(
"secondMultiplicityConfig"),iC)
182 template <
class T1,
class T2>
185 m_multiplicity1(iConfig.getParameter<edm::
ParameterSet>(
"firstMultiplicityConfig"),iC),
186 m_multiplicity2(iConfig.getParameter<edm::
ParameterSet>(
"secondMultiplicityConfig"),iC)
190 template <
class T1,
class T2>
194 m_multiplicity1.getEvent(iEvent,iSetup);
195 m_multiplicity2.getEvent(iEvent,iSetup);
202 template<
class T1,
class T2>
205 template<
class T1,
class T2>
216 #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)
SingleMultiplicity< edmNew::DetSetVector< SiPixelCluster > > SingleSiPixelClusterMultiplicity
SingleMultiplicity< edmNew::DetSetVector< SiStripCluster > > SingleSiStripClusterMultiplicity
ClusterSummary::VariablePlacement m_varenum
void getEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
ClusterSummary::CMSTracker m_subdetenum
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