93 : m_digiprofiler(iConfig),
94 m_collectionToken(consumes<
T>(iConfig.getParameter<edm::
InputTag>(
"collection"))),
95 m_singleevents(iConfig.getParameter<bool>(
"singleEvents")),
96 m_folded(iConfig.getUntrackedParameter<bool>(
"foldedStrips",
false)),
97 m_want1dHisto(iConfig.getUntrackedParameter<bool>(
"want1dHisto",
true)),
98 m_wantProfile(iConfig.getUntrackedParameter<bool>(
"wantProfile",
true)),
99 m_want2dHisto(iConfig.getUntrackedParameter<bool>(
"want2dHisto",
false))
105 std::vector<edm::ParameterSet> selconfigs = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"selections");
107 for (std::vector<edm::ParameterSet>::const_iterator selconfig = selconfigs.begin(); selconfig != selconfigs.end();
116 sprintf(dirname,
"Summary");
121 unsigned int nbins = 768;
129 m_hist.push_back(subd.
make<TH1F>(hname.c_str(), htitle.c_str(),
nbins, -0.5, nbins - 0.5));
134 m_hprof.push_back(subd.
make<TProfile>(hname.c_str(), htitle.c_str(),
nbins, -0.5, nbins - 0.5));
139 m_hist2d.push_back(subd.
make<TH2F>(hname.c_str(), htitle.c_str(),
nbins, -0.5, nbins - 0.5, 257, -0.5, 256.5));
164 if (m_singleevents) {
170 sprintf(dirname,
"event_%u_%llu", iEvent.
run(), iEvent.
id().
event());
175 unsigned int nbins = 768;
179 for (std::vector<std::string>::const_iterator
label = m_labels.begin();
label != m_labels.end(); ++
label) {
183 m_hist.push_back(subd.make<TH1F>(hname.c_str(), htitle.c_str(),
nbins, -0.5, nbins - 0.5));
188 m_hprof.push_back(subd.make<TProfile>(hname.c_str(), htitle.c_str(),
nbins, -0.5, nbins - 0.5));
193 m_hist2d.push_back(subd.make<TH2F>(hname.c_str(), htitle.c_str(),
nbins, -0.5, nbins - 0.5, 257, -0.5, 256.5));
202 m_digiprofiler.fill(digis, m_hist, m_hprof, m_hist2d);
static const std::string kSharedResource
EventNumber_t event() const
std::vector< TH1F * > m_hist
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< TH2F * > m_hist2d
~BigEventsDebugger() override
BigEventsDebugger< edm::DetSetVector< SiStripDigi > > DigiBigEventsDebugger
void analyze(const edm::Event &, const edm::EventSetup &) override
DigiCollectionProfiler< T > m_digiprofiler
std::vector< TProfile * > m_hprof
T * make(const Args &...args) const
make new ROOT object
BigEventsDebugger(const edm::ParameterSet &)
edm::EDGetTokenT< T > m_collectionToken
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
T getParameter(std::string const &) const
std::vector< std::string > m_labels
BigEventsDebugger< edm::DetSetVector< SiStripRawDigi > > RawDigiBigEventsDebugger
BigEventsDebugger< edmNew::DetSetVector< SiStripCluster > > ClusterBigEventsDebugger