89 _apvphasecollection(iConfig.getParameter<edm::InputTag>(
"apvCyclePhaseCollection")),
90 _selectedparts(iConfig.getUntrackedParameter<std::vector<std::string> >(
"selectedPartitions",std::vector<std::string>())),
91 _selectedvectorparts(iConfig.getUntrackedParameter<std::vector<std::string> >(
"selectedVectorPartitions",std::vector<std::string>())),
92 _hphases(),_hselectedphases(),_hselectedphasesvector(),_hselectedphasessize(),
93 _hphasevsorbit(),_hselectedphasevsorbit(),_hselectedphasevectorvsorbit(),
131 for(std::map<std::string,int>::const_iterator phase = apvphases->get().begin(); phase != apvphases->get().end(); ++phase) {
135 sprintf(dirname,
"run_%d",iEvent.
run());
140 sprintf(hname,
"phase_%s",phase->first.c_str());
141 edm::LogInfo(
"TH1FBeingBooked") <<
"TH1F " << hname <<
" being booked" ;
142 _hphases[phase->first] = subrun.make<TH1F>(hname,hname,70,-0.5,69.5);
143 _hphases[phase->first]->GetXaxis()->SetTitle(
"BX mod 70");
_hphases[phase->first]->GetYaxis()->SetTitle(
"Events");
145 sprintf(hname,
"phasevsorbit_%s",phase->first.c_str());
146 edm::LogInfo(
"TProfileBeingBooked") <<
"TProfile " << hname <<
" being booked" ;
147 _hphasevsorbit[phase->first] = subrun.make<TProfile>(hname,hname,1800,0.,1800*11223);
152 _hphases[phase->first]->Fill(phase->second);
170 const std::vector<int> phases = apvphases->getPhases(*
part);
176 for(std::vector<int>::const_iterator phase=phases.begin();phase!=phases.end();++phase) {
203 sprintf(dirname,
"run_%d",iRun.
run());
210 sprintf(hname,
"selected_phase_%s",
part->c_str());
211 edm::LogInfo(
"SelectedTH1FBeingBooked") <<
"TH1F " << hname <<
" being booked" ;
215 sprintf(hname,
"selected_phasevsorbit_%s",
part->c_str());
216 edm::LogInfo(
"SelectedTProfileBeingBooked") <<
"TProfile " << hname <<
" being booked" ;
228 sprintf(hname,
"selected_phase_vector_%s",
part->c_str());
229 edm::LogInfo(
"SelectedVectTH1FBeingBooked") <<
"TH1F " << hname <<
" being booked" ;
234 sprintf(hname,
"selected_phase_size_%s",
part->c_str());
235 edm::LogInfo(
"SelectedVectSizeTH1FBeingBooked") <<
"TH1F " << hname <<
" being booked" ;
240 sprintf(hname,
"selected_phasevectorvsorbit_%s",
part->c_str());
241 edm::LogInfo(
"SelectedVectTProfileBeingBooked") <<
"TProfile " << hname <<
" being booked" ;
std::vector< std::string > _selectedparts
virtual void endRun(const edm::Run &, const edm::EventSetup &)
std::map< std::string, TH1F * > _hselectedphasessize
#define DEFINE_FWK_MODULE(type)
std::map< std::string, TH1F * > _hselectedphasesvector
std::map< std::string, TH1F * > _hphases
APVCyclePhaseMonitor(const edm::ParameterSet &)
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< std::string > _selectedvectorparts
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
std::map< std::string, TProfile * > _hselectedphasevsorbit
const edm::InputTag _apvphasecollection
std::map< std::string, TProfile * > _hphasevsorbit
std::map< std::string, TProfile * > _hselectedphasevectorvsorbit
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::map< std::string, TH1F * > _hselectedphases