1 #ifndef DPGAnalysis_SiStripTools_Multiplicities_H
2 #define DPGAnalysis_SiStripTools_Multiplicities_H
70 : m_modthr(iConfig.getUntrackedParameter<int>(
"moduleThreshold")),
71 m_useQuality(iConfig.getUntrackedParameter<bool>(
"useQuality",
false)),
72 m_qualityToken(m_useQuality
80 :
m_modthr(iConfig.getUntrackedParameter<int>(
"moduleThreshold")),
101 for (
typename T::const_iterator it = digis->begin(); it != digis->end(); it++) {
116 template <
class T1,
class T2>
132 template <
class T1,
class T2>
135 template <
class T1,
class T2>
137 : m_multiplicity1(iConfig.getParameter<edm::
ParameterSet>(
"firstMultiplicityConfig"), iC),
138 m_multiplicity2(iConfig.getParameter<edm::
ParameterSet>(
"secondMultiplicityConfig"), iC) {}
139 template <
class T1,
class T2>
141 : m_multiplicity1(iConfig.getParameter<edm::
ParameterSet>(
"firstMultiplicityConfig"), iC),
142 m_multiplicity2(iConfig.getParameter<edm::
ParameterSet>(
"secondMultiplicityConfig"), iC) {}
144 template <
class T1,
class T2>
146 m_multiplicity1.getEvent(iEvent, iSetup);
147 m_multiplicity2.getEvent(iEvent, iSetup);
150 template <
class T1,
class T2>
152 return m_multiplicity1.mult();
155 template <
class T1,
class T2>
157 return m_multiplicity2.mult();
169 #endif // DPGAnalysis_SiStripTools_Multiplicities_H
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getUntrackedParameter(std::string const &, T const &) const
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > m_qualityToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void getEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
uint32_t const *__restrict__ Quality * quality
edm::EDGetTokenT< T > m_collection
MultiplicityPair< ClusterSummarySingleMultiplicity, ClusterSummarySingleMultiplicity > ClusterSummaryMultiplicityPair
MultiplicityPair< SingleMultiplicity< edmNew::DetSetVector< SiPixelCluster > >, SingleMultiplicity< edmNew::DetSetVector< SiStripCluster > > > SiPixelClusterSiStripClusterMultiplicityPair
void getEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
bool getData(T &iHolder) const
SingleMultiplicity< edmNew::DetSetVector< SiPixelCluster > > SingleSiPixelClusterMultiplicity
SingleMultiplicity< edmNew::DetSetVector< SiStripCluster > > SingleSiStripClusterMultiplicity
bool IsModuleBad(const uint32_t &detid) const
ClusterSummary::VariablePlacement m_varenum
void getEvent(const edm::Event &iEvent, const edm::EventSetup &iSetup)
T getParameter(std::string const &) const
ClusterSummary::CMSTracker m_subdetenum
m_collection(iC.consumes< T >(iConfig.getParameter< edm::InputTag >("collectionName")))
SingleMultiplicity< edm::DetSetVector< SiStripDigi > > SingleSiStripDigiMultiplicity
ClusterSummarySingleMultiplicity()
edm::EDGetTokenT< ClusterSummary > m_collection