98 m_maxLS(iConfig.getUntrackedParameter<unsigned
int>(
"maxLSBeforeRebin", 125)),
99 m_LSfrac(iConfig.getUntrackedParameter<unsigned
int>(
"startingLSFraction", 16)),
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";
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
T getParameter(std::string const &) const
std::vector< std::string > _selectedparts
edm::EDGetTokenT< APVCyclePhaseCollection > _apvphasecollectionToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void endRun(const edm::Run &, const edm::EventSetup &) override
std::map< std::string, TProfile ** > _hselectedphasevsorbit
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::map< std::string, TH1F * > _hphases
TH1F ** makeTH1F(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
#define DEFINE_FWK_MODULE(type)
const std::map< std::string, int > & get() const
const int getPhase(const std::string partition) const
std::map< std::string, TProfile ** > _hselectedphasevectorvsorbit
const std::vector< int > getPhases(const std::string partition) const
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
~APVCyclePhaseMonitor() override
void beginRun(const edm::Run &, const edm::EventSetup &) override
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
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
std::vector< int > phases
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
void beginRun(const edm::Run &iRun)
std::map< std::string, TProfile * > _hphasevsorbit
RunHistogramManager m_rhm
const unsigned int m_LSfrac