84 : m_l1abccollectionToken(
86 m_maxLS(iConfig.getUntrackedParameter<unsigned
int>(
"maxLSBeforeRebin", 250)),
87 m_LSfrac(iConfig.getUntrackedParameter<unsigned
int>(
"startingLSFraction", 16)),
88 m_rhm(consumesCollector()) {
92 "offsets",
"Orbit vs BX offsets between SCAL and Event", 2 * 3564 + 1, -3564.5, 3564.5, 201, -100.5, 100.5);
116 for (L1AcceptBunchCrossingCollection::const_iterator l1abc = pIn->begin(); l1abc != pIn->end(); ++l1abc) {
117 if (l1abc->l1AcceptOffset() == 0) {
120 ->Fill((
int)l1abc->bunchCrossing() - (
int)
iEvent.bunchCrossing(),
121 (
long long)l1abc->orbitNumber() - (
long long)
iEvent.orbitNumber());
123 (*m_horboffvsorb)->Fill(
iEvent.orbitNumber(), (
long long)l1abc->orbitNumber() - (
long long)
iEvent.orbitNumber());
125 (*m_hbxoffvsorb)->Fill(
iEvent.orbitNumber(), (
int)l1abc->bunchCrossing() - (
int)
iEvent.bunchCrossing());
131 edm::LogInfo(
"L1ABCDebug") <<
"Dump of L1AcceptBunchCrossing Collection for event in orbit " <<
iEvent.orbitNumber()
132 <<
" and BX " <<
iEvent.bunchCrossing();
134 for (L1AcceptBunchCrossingCollection::const_iterator l1abc = pIn->begin(); l1abc != pIn->end(); ++l1abc) {
143 (*m_hoffsets)->GetXaxis()->SetTitle(
"#Delta BX (SCAL-Event)");
144 (*m_hoffsets)->GetYaxis()->SetTitle(
"#Delta orbit (SCAL-Event)");
147 (*m_horboffvsorb)->GetXaxis()->SetTitle(
"Orbit");
148 (*m_horboffvsorb)->GetYaxis()->SetTitle(
"#Delta orbit (SCAL-Event)");
149 (*m_horboffvsorb)->SetCanExtend(TH1::kXaxis);
152 (*m_hbxoffvsorb)->GetXaxis()->SetTitle(
"Orbit");
153 (*m_hbxoffvsorb)->GetYaxis()->SetTitle(
"#Delta BX (SCAL-Event)");
154 (*m_hbxoffvsorb)->SetCanExtend(TH1::kXaxis);
Log< level::Info, true > LogVerbatim
const unsigned int m_maxLS
~L1ABCDebugger() override
RunHistogramManager m_rhm
edm::EDGetTokenT< L1AcceptBunchCrossingCollection > m_l1abccollectionToken
void analyze(const edm::Event &, const edm::EventSetup &) override
const unsigned int m_LSfrac
void endRun(const edm::Run &, const edm::EventSetup &) override
TProfile ** m_hbxoffvsorb
TProfile ** makeTProfile(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
L1ABCDebugger(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
std::vector< L1AcceptBunchCrossing > L1AcceptBunchCrossingCollection
Log< level::Info, false > LogInfo
void beginRun(const edm::Run &iRun)
TProfile ** m_horboffvsorb
TH2F ** makeTH2F(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax, const unsigned int nbiny, const double ymin, const double ymax)
void beginRun(const edm::Run &, const edm::EventSetup &) override