92 : _apvphasecollectionToken(
96 _selectedvectorparts(iConfig.getUntrackedParameter<
std::
vector<
std::
string> >(
"selectedVectorPartitions",
98 m_maxLS(iConfig.getUntrackedParameter<unsigned
int>(
"maxLSBeforeRebin", 125)),
99 m_LSfrac(iConfig.getUntrackedParameter<unsigned
int>(
"startingLSFraction", 16)),
100 m_rhm(consumesCollector()),
103 _hselectedphasesvector(),
104 _hselectedphasessize(),
106 _hselectedphasevsorbit(),
107 _hselectedphasevectorvsorbit(),
119 sprintf(hname,
"selected_phase_%s",
part->c_str());
120 edm::LogInfo(
"SelectedTH1FBeingBooked") <<
"TH1F " << hname <<
" being booked";
123 sprintf(hname,
"selected_phasevsorbit_%s",
part->c_str());
124 edm::LogInfo(
"SelectedTProfileBeingBooked") <<
"TProfile " << hname <<
" being booked";
132 sprintf(hname,
"selected_phase_vector_%s",
part->c_str());
133 edm::LogInfo(
"SelectedVectTH1FBeingBooked") <<
"TH1F " << hname <<
" being booked";
136 sprintf(hname,
"selected_phase_size_%s",
part->c_str());
137 edm::LogInfo(
"SelectedVectSizeTH1FBeingBooked") <<
"TH1F " << hname <<
" being booked";
140 sprintf(hname,
"selected_phasevectorvsorbit_%s",
part->c_str());
141 edm::LogInfo(
"SelectedVectTProfileBeingBooked") <<
"TProfile " << hname <<
" being booked";
168 for (std::map<std::string, int>::const_iterator
phase = apvphases->
get().begin();
phase != apvphases->
get().end();
177 sprintf(hname,
"phase_%s",
phase->first.c_str());
178 edm::LogInfo(
"TH1FBeingBooked") <<
"TH1F " << hname <<
" being booked";
179 _hphases[
phase->first] = subrun.make<TH1F>(hname, hname, 70, -0.5, 69.5);
183 sprintf(hname,
"phasevsorbit_%s",
phase->first.c_str());
184 edm::LogInfo(
"TProfileBeingBooked") <<
"TProfile " << hname <<
" being booked";
236 if (*(
hist->second)) {
237 (*(
hist->second))->GetXaxis()->SetTitle(
"BX mod 70");
238 (*(
hist->second))->GetYaxis()->SetTitle(
"Events");
244 if (*(prof->second)) {
245 (*(prof->second))->SetCanExtend(TH1::kXaxis);
246 (*(prof->second))->GetXaxis()->SetTitle(
"time [orbit#]");
247 (*(prof->second))->GetYaxis()->SetTitle(
"Phase");
253 if (*(
hist->second)) {
254 (*(
hist->second))->GetXaxis()->SetTitle(
"BX mod 70");
255 (*(
hist->second))->GetYaxis()->SetTitle(
"Events");
261 if (*(
hist->second)) {
262 (*(
hist->second))->GetXaxis()->SetTitle(
"Number of Phases");
263 (*(
hist->second))->GetYaxis()->SetTitle(
"Events");
269 if (*(prof->second)) {
270 (*(prof->second))->SetCanExtend(TH1::kXaxis);
271 (*(prof->second))->GetXaxis()->SetTitle(
"time [orbit#]");
272 (*(prof->second))->GetYaxis()->SetTitle(
"Phase");
std::map< std::string, TH1F ** > _hselectedphasesvector
static const std::string kSharedResource
T getParameter(std::string const &) const
std::vector< std::string > _selectedparts
edm::EDGetTokenT< APVCyclePhaseCollection > _apvphasecollectionToken
void endRun(const edm::Run &, const edm::EventSetup &) override
std::map< std::string, TProfile ** > _hselectedphasevsorbit
const std::map< std::string, int > & get() const
std::map< std::string, TH1F * > _hphases
TH1F ** makeTH1F(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
std::map< std::string, TProfile ** > _hselectedphasevectorvsorbit
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
~APVCyclePhaseMonitor() override
void beginRun(const edm::Run &, const edm::EventSetup &) override
std::map< std::string, TH1F ** > _hselectedphases
TProfile ** makeTProfile(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
APVCyclePhaseMonitor(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
const std::vector< int > getPhases(const std::string partition) const
std::map< std::string, TH1F ** > _hselectedphasessize
void analyze(const edm::Event &, const edm::EventSetup &) override
const unsigned int m_maxLS
std::vector< std::string > _selectedvectorparts
Log< level::Info, false > LogInfo
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
void beginRun(const edm::Run &iRun)
const int getPhase(const std::string partition) const
std::map< std::string, TProfile * > _hphasevsorbit
RunHistogramManager m_rhm
const unsigned int m_LSfrac