65 virtual void endJob()
override ;
97 m_digiprofiler(iConfig),
98 m_collection(iConfig.getParameter<edm::InputTag>(
"collection")),
99 m_singleevents(iConfig.getParameter<bool>(
"singleEvents")),
100 m_folded(iConfig.getUntrackedParameter<bool>(
"foldedStrips",
false)),
101 m_want1dHisto(iConfig.getUntrackedParameter<bool>(
"want1dHisto",
true)),
102 m_wantProfile(iConfig.getUntrackedParameter<bool>(
"wantProfile",
true)),
103 m_want2dHisto(iConfig.getUntrackedParameter<bool>(
"want2dHisto",
false))
108 std::vector<edm::ParameterSet> selconfigs = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"selections");
110 for(std::vector<edm::ParameterSet>::const_iterator selconfig=selconfigs.begin();selconfig!=selconfigs.end();++selconfig) {
119 sprintf(dirname,
"Summary");
124 unsigned int nbins =768;
131 m_hist.push_back(subd.
make<TH1F>(hname.c_str(),htitle.c_str(),
nbins,-0.5,nbins-0.5));
136 m_hprof.push_back(subd.
make<TProfile>(hname.c_str(),htitle.c_str(),
nbins,-0.5,nbins-0.5));
141 m_hist2d.push_back(subd.
make<TH2F>(hname.c_str(),htitle.c_str(),
nbins,-0.5,nbins-0.5,257,-0.5,256.5));
175 m_hist.clear(); m_hprof.clear(); m_hist2d.clear();
178 sprintf(dirname,
"event_%u_%u",iEvent.
run(),iEvent.
id().
event());
183 unsigned int nbins =768;
184 if(m_folded) nbins=256;
186 for(std::vector<std::string>::const_iterator
label=m_labels.begin();
label!=m_labels.end(); ++
label) {
190 m_hist.push_back(subd.make<TH1F>(hname.c_str(),htitle.c_str(),
nbins,-0.5,nbins-0.5));
195 m_hprof.push_back(subd.make<TProfile>(hname.c_str(),htitle.c_str(),
nbins,-0.5,nbins-0.5));
200 m_hist2d.push_back(subd.make<TH2F>(hname.c_str(),htitle.c_str(),
nbins,-0.5,nbins-0.5,257,-0.5,256.5));
210 m_digiprofiler.fill(digis,m_hist,m_hprof,m_hist2d);
T getParameter(std::string const &) const
EventNumber_t event() const
std::vector< TH1F * > m_hist
#define DEFINE_FWK_MODULE(type)
std::vector< TH2F * > m_hist2d
BigEventsDebugger< edm::DetSetVector< SiStripDigi > > DigiBigEventsDebugger
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
DigiCollectionProfiler< T > m_digiprofiler
std::vector< TProfile * > m_hprof
edm::InputTag m_collection
T * make(const Args &...args) const
make new ROOT object
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
BigEventsDebugger(const edm::ParameterSet &)
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
std::vector< std::string > m_labels
volatile std::atomic< bool > shutdown_flag false
BigEventsDebugger< edmNew::DetSetVector< SiStripCluster > > ClusterBigEventsDebugger
virtual void endJob() override