114 m_maxLS(iConfig.getUntrackedParameter<unsigned int>(
"maxLSBeforeRebin",250)),
115 m_LSfrac(iConfig.getUntrackedParameter<unsigned int>(
"startingLSFraction",16)),
116 m_rhm(consumesCollector()),
117 _hsize(0),_hlresync(0),_hlOC0(0),_hlTE(0),_hlstart(0),_hlEC0(0),_hlHR(0),_hdlec0lresync(0),_hdlresynclHR(0),
118 _lastResync(-1),_lastHardReset(-1),_lastStart(-1),
119 _lastEventCounter0(-1),_lastOrbitCounter0(-1),_lastTestEnable(-1)
163 (*_hlresync)->GetXaxis()->SetTitle(
"Orbit"); (*_hlresync)->GetYaxis()->SetTitle(
"Events");
164 (*_hlresync)->SetCanExtend(TH1::kXaxis);
168 (*_hlOC0)->GetXaxis()->SetTitle(
"Orbit"); (*_hlOC0)->GetYaxis()->SetTitle(
"Events");
169 (*_hlOC0)->SetCanExtend(TH1::kXaxis);
173 (*_hlTE)->GetXaxis()->SetTitle(
"Orbit"); (*_hlTE)->GetYaxis()->SetTitle(
"Events");
174 (*_hlTE)->SetCanExtend(TH1::kXaxis);
178 (*_hlstart)->GetXaxis()->SetTitle(
"Orbit"); (*_hlstart)->GetYaxis()->SetTitle(
"Events");
179 (*_hlstart)->SetCanExtend(TH1::kXaxis);
183 (*_hlEC0)->GetXaxis()->SetTitle(
"Orbit"); (*_hlEC0)->GetYaxis()->SetTitle(
"Events");
184 (*_hlEC0)->SetCanExtend(TH1::kXaxis);
188 (*_hlHR)->GetXaxis()->SetTitle(
"Orbit"); (*_hlHR)->GetYaxis()->SetTitle(
"Events");
189 (*_hlHR)->SetCanExtend(TH1::kXaxis);
193 (*_hdlec0lresync)->GetXaxis()->SetTitle(
"lastEC0-lastResync");
197 (*_hdlresynclHR)->GetXaxis()->SetTitle(
"lastEC0-lastResync");
219 if(
_hlOC0 && *
_hlOC0) (*_hlOC0)->Fill((*l1ts)[0].lastOrbitCounter0());
220 if(
_hlTE && *
_hlTE) (*_hlTE)->Fill((*l1ts)[0].lastTestEnable());
222 if(
_hlEC0 && *
_hlEC0) (*_hlEC0)->Fill((*l1ts)[0].lastEventCounter0());
223 if(
_hlHR && *
_hlHR) (*_hlHR)->Fill((*l1ts)[0].lastHardReset());
261 descriptions.
add(
"l1TSDebugger",desc);
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
RunHistogramManager m_rhm
const unsigned int m_maxLS
~APVCyclePhaseDebuggerFromL1TS()
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
TH1F ** makeTH1F(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
long long _lastOrbitCounter0
m_rhm(consumesCollector())
long long _lastEventCounter0
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< Level1TriggerScalersCollection > _l1tscollectionToken
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
void beginRun(const edm::Run &iRun)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< Level1TriggerScalers > Level1TriggerScalersCollection
long long _lastTestEnable
APVCyclePhaseDebuggerFromL1TS(const edm::ParameterSet &)
const unsigned int m_LSfrac