110 : _l1tscollectionToken(
112 m_maxLS(iConfig.getUntrackedParameter<unsigned
int>(
"maxLSBeforeRebin", 250)),
113 m_LSfrac(iConfig.getUntrackedParameter<unsigned
int>(
"startingLSFraction", 16)),
114 m_rhm(consumesCollector()),
122 _hdlec0lresync(nullptr),
123 _hdlresynclHR(nullptr),
127 _lastEventCounter0(-1),
128 _lastOrbitCounter0(-1),
129 _lastTestEnable(-1) {
162 (*_hlresync)->GetXaxis()->SetTitle(
"Orbit");
163 (*_hlresync)->GetYaxis()->SetTitle(
"Events");
164 (*_hlresync)->SetCanExtend(TH1::kXaxis);
168 (*_hlOC0)->GetXaxis()->SetTitle(
"Orbit");
169 (*_hlOC0)->GetYaxis()->SetTitle(
"Events");
170 (*_hlOC0)->SetCanExtend(TH1::kXaxis);
174 (*_hlTE)->GetXaxis()->SetTitle(
"Orbit");
175 (*_hlTE)->GetYaxis()->SetTitle(
"Events");
176 (*_hlTE)->SetCanExtend(TH1::kXaxis);
180 (*_hlstart)->GetXaxis()->SetTitle(
"Orbit");
181 (*_hlstart)->GetYaxis()->SetTitle(
"Events");
182 (*_hlstart)->SetCanExtend(TH1::kXaxis);
186 (*_hlEC0)->GetXaxis()->SetTitle(
"Orbit");
187 (*_hlEC0)->GetYaxis()->SetTitle(
"Events");
188 (*_hlEC0)->SetCanExtend(TH1::kXaxis);
192 (*_hlHR)->GetXaxis()->SetTitle(
"Orbit");
193 (*_hlHR)->GetYaxis()->SetTitle(
"Events");
194 (*_hlHR)->SetCanExtend(TH1::kXaxis);
198 (*_hdlec0lresync)->GetXaxis()->SetTitle(
"lastEC0-lastResync");
202 (*_hdlresynclHR)->GetXaxis()->SetTitle(
"lastEC0-lastResync");
213 (*_hsize)->Fill(l1ts->size());
217 if (!l1ts->empty()) {
219 (*_hlresync)->Fill((*l1ts)[0].lastResync());
221 (*_hlOC0)->Fill((*l1ts)[0].lastOrbitCounter0());
223 (*_hlTE)->Fill((*l1ts)[0].lastTestEnable());
225 (*_hlstart)->Fill((*l1ts)[0].lastStart());
227 (*_hlEC0)->Fill((*l1ts)[0].lastEventCounter0());
229 (*_hlHR)->Fill((*l1ts)[0].lastHardReset());
234 (*_hdlec0lresync)->Fill((*l1ts)[0].lastEventCounter0() - (*l1ts)[0].lastResync());
240 (*_hdlresynclHR)->Fill((*l1ts)[0].lastResync() - (*l1ts)[0].lastHardReset());
265 descriptions.
add(
"l1TSDebugger",
desc);
void analyze(const edm::Event &, const edm::EventSetup &) override
~APVCyclePhaseDebuggerFromL1TS() override
#define DEFINE_FWK_MODULE(type)
RunHistogramManager m_rhm
const unsigned int m_maxLS
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void endRun(const edm::Run &, const edm::EventSetup &) override
TH1F ** makeTH1F(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
long long _lastOrbitCounter0
long long _lastEventCounter0
edm::EDGetTokenT< Level1TriggerScalersCollection > _l1tscollectionToken
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