88 m_maxLS(iConfig.getUntrackedParameter<unsigned
int>(
"maxLSBeforeRebin",250)),
89 m_LSfrac(iConfig.getUntrackedParameter<unsigned
int>(
"startingLSFraction",16)),
94 m_hoffsets =
m_rhm.
makeTH2F(
"offsets",
"Orbit vs BX offsets between SCAL and Event",2*3564+1,-3564.5,3564.5,201,-100.5,100.5);
124 for(L1AcceptBunchCrossingCollection::const_iterator l1abc=pIn->begin();l1abc!=pIn->end();++l1abc) {
125 if(l1abc->l1AcceptOffset()==0) {
127 (*m_hoffsets)->Fill((
int)l1abc->bunchCrossing()-(
int)iEvent.
bunchCrossing(),
128 (
long long)l1abc->orbitNumber()-(
long long)iEvent.
orbitNumber());
130 (*m_horboffvsorb)->Fill(iEvent.
orbitNumber(),(
long long)l1abc->orbitNumber()-(
long long)iEvent.
orbitNumber());
139 edm::LogInfo(
"L1ABCDebug") <<
"Dump of L1AcceptBunchCrossing Collection for event in orbit " 142 for(L1AcceptBunchCrossingCollection::const_iterator l1abc=pIn->begin();l1abc!=pIn->end();++l1abc) {
154 (*m_hoffsets)->GetXaxis()->SetTitle(
"#Delta BX (SCAL-Event)"); (*m_hoffsets)->GetYaxis()->SetTitle(
"#Delta orbit (SCAL-Event)");
157 (*m_horboffvsorb)->GetXaxis()->SetTitle(
"Orbit"); (*m_horboffvsorb)->GetYaxis()->SetTitle(
"#Delta orbit (SCAL-Event)");
158 (*m_horboffvsorb)->SetCanExtend(TH1::kXaxis);
161 (*m_hbxoffvsorb)->GetXaxis()->SetTitle(
"Orbit"); (*m_hbxoffvsorb)->GetYaxis()->SetTitle(
"#Delta BX (SCAL-Event)");
162 (*m_hbxoffvsorb)->SetCanExtend(TH1::kXaxis);
const unsigned int m_maxLS
~L1ABCDebugger() override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
RunHistogramManager m_rhm
int bunchCrossing() const
edm::EDGetTokenT< L1AcceptBunchCrossingCollection > m_l1abccollectionToken
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void analyze(const edm::Event &, const edm::EventSetup &) override
const unsigned int m_LSfrac
#define DEFINE_FWK_MODULE(type)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
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 &)
std::vector< L1AcceptBunchCrossing > L1AcceptBunchCrossingCollection
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