109 : _l1tscollectionToken(
111 m_maxLS(iConfig.getUntrackedParameter<unsigned int>(
"maxLSBeforeRebin", 250)),
112 m_LSfrac(iConfig.getUntrackedParameter<unsigned int>(
"startingLSFraction", 16)),
113 m_rhm(consumesCollector()),
121 _hdlec0lresync(nullptr),
122 _hdlresynclHR(nullptr),
161 (*_hlresync)->GetXaxis()->SetTitle(
"Orbit");
162 (*_hlresync)->GetYaxis()->SetTitle(
"Events");
163 (*_hlresync)->SetCanExtend(TH1::kXaxis);
167 (*_hlOC0)->GetXaxis()->SetTitle(
"Orbit");
168 (*_hlOC0)->GetYaxis()->SetTitle(
"Events");
169 (*_hlOC0)->SetCanExtend(TH1::kXaxis);
173 (*_hlTE)->GetXaxis()->SetTitle(
"Orbit");
174 (*_hlTE)->GetYaxis()->SetTitle(
"Events");
175 (*_hlTE)->SetCanExtend(TH1::kXaxis);
179 (*_hlstart)->GetXaxis()->SetTitle(
"Orbit");
180 (*_hlstart)->GetYaxis()->SetTitle(
"Events");
181 (*_hlstart)->SetCanExtend(TH1::kXaxis);
185 (*_hlEC0)->GetXaxis()->SetTitle(
"Orbit");
186 (*_hlEC0)->GetYaxis()->SetTitle(
"Events");
187 (*_hlEC0)->SetCanExtend(TH1::kXaxis);
191 (*_hlHR)->GetXaxis()->SetTitle(
"Orbit");
192 (*_hlHR)->GetYaxis()->SetTitle(
"Events");
193 (*_hlHR)->SetCanExtend(TH1::kXaxis);
197 (*_hdlec0lresync)->GetXaxis()->SetTitle(
"lastEC0-lastResync");
201 (*_hdlresynclHR)->GetXaxis()->SetTitle(
"lastEC0-lastResync");
212 (*_hsize)->Fill(l1ts->size());
216 if (!l1ts->empty()) {
218 (*_hlresync)->Fill((*l1ts)[0].lastResync());
220 (*_hlOC0)->Fill((*l1ts)[0].lastOrbitCounter0());
222 (*_hlTE)->Fill((*l1ts)[0].lastTestEnable());
224 (*_hlstart)->Fill((*l1ts)[0].lastStart());
226 (*_hlEC0)->Fill((*l1ts)[0].lastEventCounter0());
228 (*_hlHR)->Fill((*l1ts)[0].lastHardReset());
233 (*_hdlec0lresync)->Fill((*l1ts)[0].lastEventCounter0() - (*l1ts)[0].lastResync());
239 (*_hdlresynclHR)->Fill((*l1ts)[0].lastResync() - (*l1ts)[0].lastHardReset());
264 descriptions.
add(
"l1TSDebugger", desc);
void analyze(const edm::Event &, const edm::EventSetup &) override
~APVCyclePhaseDebuggerFromL1TS() override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
RunHistogramManager m_rhm
const unsigned int m_maxLS
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
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