Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:13

0001 #ifndef L1GCTANALYZER_FIBREANALYZER_H
0002 #define L1GCTANALYZER_FIBREANALYZER_H
0003 
0004 // -*- C++ -*-
0005 //
0006 // Package:    GctFibreAnalyzer
0007 // Class:      GctFibreAnalyzer
0008 //
0009 /**\class GctFibreAnalyzer GctFibreAnalyzer.cc L1Trigger/L1GctAnalzyer/interface/GctFibreAnalyzer.h
0010 
0011 Description: Analyzer individual fibre channels from the source card.
0012 
0013 */
0014 //
0015 // Original Author:  Alex Tapper
0016 //         Created:  Thu Jul 12 14:21:06 CEST 2007
0017 //
0018 //
0019 
0020 // user include files
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 // Gct fibre data format
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