1 #ifndef DPGAnalysis_SiStripTools_DigiCollectionProfile_H 2 #define DPGAnalysis_SiStripTools_DigiCollectionProfile_H 26 void fill(
edm::Handle<T> digis,
const std::vector<TH1F*>&,
const std::vector<TProfile*>&,
const std::vector<TH2F*>&)
const;
45 m_folded(iConfig.getUntrackedParameter<bool>(
"foldedStrips",
false)),
52 std::vector<edm::ParameterSet> selconfigs = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"selections");
54 for(std::vector<edm::ParameterSet>::const_iterator selconfig=selconfigs.begin();selconfig!=selconfigs.end();++selconfig) {
72 for(
unsigned int isel=0;isel<
m_selections.size(); ++isel) {
76 TProfile* tobefilledprof=0;
86 unsigned int strip = digi->strip();
88 if(tobefilled1d) tobefilled1d->Fill(strip);
89 if(tobefilledprof) tobefilledprof->Fill(strip,digi->adc());
90 if(tobefilled2d) tobefilled2d->Fill(strip,digi->adc());
103 for(
unsigned int isel=0;isel<
m_selections.size(); ++isel) {
106 TH1F* tobefilled1d=0;
107 TProfile* tobefilledprof=0;
108 TH2F* tobefilled2d=0;
114 unsigned int istrip=0;
118 unsigned int strip = istrip;
120 if(tobefilled1d) tobefilled1d->Fill(strip);
121 if(tobefilledprof) tobefilledprof->Fill(strip,digi->adc());
122 if(tobefilled2d) tobefilled2d->Fill(strip,digi->adc());
135 for(
unsigned int isel=0;isel<
m_selections.size(); ++isel) {
138 TH1F* tobefilled1d=0;
139 TProfile* tobefilledprof=0;
140 TH2F* tobefilled2d=0;
148 for(
unsigned int digi=0; digi < clus->amplitudes().size() ; ++digi) {
150 if(clus->amplitudes()[digi]>0) {
151 unsigned int strip = clus->firstStrip()+digi;
153 if(tobefilled1d) tobefilled1d->Fill(strip);
154 if(tobefilledprof) tobefilledprof->Fill(strip,clus->amplitudes()[digi]);
155 if(tobefilled2d) tobefilled2d->Fill(strip,clus->amplitudes()[digi]);
164 #endif // DPGAnalysis_SiStripTools_DigiCollectionProfile_H
T getParameter(std::string const &) const
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
std::vector< DetIdSelector > m_selections
data_type const * const_iterator
void fill(edm::Handle< T > digis, const std::vector< TH1F * > &, const std::vector< TProfile * > &, const std::vector< TH2F * > &) const
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
T mod(const T &a, const T &b)
~DigiCollectionProfiler()