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(),
117 sprintf(hname,
"selected_phase_%s",
part->c_str());
118 edm::LogInfo(
"SelectedTH1FBeingBooked") <<
"TH1F " << hname <<
" being booked";
121 sprintf(hname,
"selected_phasevsorbit_%s",
part->c_str());
122 edm::LogInfo(
"SelectedTProfileBeingBooked") <<
"TProfile " << hname <<
" being booked";
130 sprintf(hname,
"selected_phase_vector_%s",
part->c_str());
131 edm::LogInfo(
"SelectedVectTH1FBeingBooked") <<
"TH1F " << hname <<
" being booked";
134 sprintf(hname,
"selected_phase_size_%s",
part->c_str());
135 edm::LogInfo(
"SelectedVectSizeTH1FBeingBooked") <<
"TH1F " << hname <<
" being booked";
138 sprintf(hname,
"selected_phasevectorvsorbit_%s",
part->c_str());
139 edm::LogInfo(
"SelectedVectTProfileBeingBooked") <<
"TProfile " << hname <<
" being booked";
166 for (std::map<std::string, int>::const_iterator
phase = apvphases->get().begin();
phase != apvphases->get().end();
170 sprintf(dirname,
"run_%d", iEvent.
run());
175 sprintf(hname,
"phase_%s",
phase->first.c_str());
176 edm::LogInfo(
"TH1FBeingBooked") <<
"TH1F " << hname <<
" being booked";
177 _hphases[
phase->first] = subrun.make<TH1F>(hname, hname, 70, -0.5, 69.5);
181 sprintf(hname,
"phasevsorbit_%s",
phase->first.c_str());
182 edm::LogInfo(
"TProfileBeingBooked") <<
"TProfile " << hname <<
" being booked";
206 const std::vector<int>
phases = apvphases->getPhases(*
part);
213 for (std::vector<int>::const_iterator
phase = phases.begin();
phase != phases.end(); ++
phase) {
234 if (*(
hist->second)) {
235 (*(
hist->second))->GetXaxis()->SetTitle(
"BX mod 70");
236 (*(
hist->second))->GetYaxis()->SetTitle(
"Events");
242 if (*(prof->second)) {
243 (*(prof->second))->SetCanExtend(TH1::kXaxis);
244 (*(prof->second))->GetXaxis()->SetTitle(
"time [orbit#]");
245 (*(prof->second))->GetYaxis()->SetTitle(
"Phase");
251 if (*(
hist->second)) {
252 (*(
hist->second))->GetXaxis()->SetTitle(
"BX mod 70");
253 (*(
hist->second))->GetYaxis()->SetTitle(
"Events");
259 if (*(
hist->second)) {
260 (*(
hist->second))->GetXaxis()->SetTitle(
"Number of Phases");
261 (*(
hist->second))->GetYaxis()->SetTitle(
"Events");
267 if (*(prof->second)) {
268 (*(prof->second))->SetCanExtend(TH1::kXaxis);
269 (*(prof->second))->GetXaxis()->SetTitle(
"time [orbit#]");
270 (*(prof->second))->GetYaxis()->SetTitle(
"Phase");
std::map< std::string, TH1F ** > _hselectedphasesvector
std::vector< std::string > _selectedparts
edm::EDGetTokenT< APVCyclePhaseCollection > _apvphasecollectionToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void endRun(const edm::Run &, const edm::EventSetup &) override
std::map< std::string, TProfile ** > _hselectedphasevsorbit
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)
m_rhm(consumesCollector())
~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 &)
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
std::vector< int > phases
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
void beginRun(const edm::Run &iRun)
T getParameter(std::string const &) const
std::map< std::string, TProfile * > _hphasevsorbit
RunHistogramManager m_rhm
const unsigned int m_LSfrac