File indexing completed on 2024-04-06 12:20:13
0001 #ifndef L1GCTANALYZER_FIBREANALYZER_H
0002 #define L1GCTANALYZER_FIBREANALYZER_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 #include "FWCore/Framework/interface/Frameworkfwd.h"
0022 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0023
0024 #include "FWCore/Framework/interface/Event.h"
0025 #include "FWCore/Framework/interface/MakerMacros.h"
0026
0027 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0028
0029
0030 #include "DataFormats/L1GlobalCaloTrigger/interface/L1GctFibreWord.h"
0031
0032 class GctFibreAnalyzer : public edm::one::EDAnalyzer<> {
0033 public:
0034 explicit GctFibreAnalyzer(const edm::ParameterSet&);
0035 ~GctFibreAnalyzer() override;
0036
0037 private:
0038 void analyze(const edm::Event&, const edm::EventSetup&) override;
0039
0040 bool CheckFibreWord(const L1GctFibreWord fibre);
0041 bool CheckForBC0(const L1GctFibreWord fibre);
0042 void CheckLogicalID(const L1GctFibreWord fibre);
0043 void CheckCounter(const L1GctFibreWord fibre);
0044
0045 edm::InputTag m_fibreSource;
0046 bool m_doLogicalID;
0047 bool m_doCounter;
0048 unsigned int m_numZeroEvents;
0049 unsigned int m_numInconsistentPayloadEvents;
0050 unsigned int m_numConsistentEvents;
0051 };
0052
0053 #endif