Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:54:34

0001 #ifndef GlobalTriggerAnalyzer_L1GtPackUnpackAnalyzer_h
0002 #define GlobalTriggerAnalyzer_L1GtPackUnpackAnalyzer_h
0003 
0004 /**
0005  * \class L1GtPackUnpackAnalyzer
0006  * 
0007  * 
0008  * Description: pack - unpack validation for L1 GT DAQ record.  
0009  *
0010  * Implementation:
0011  *    Pack (DigiToRaw) and unpack (RawToDigi) a L1 GT DAQ record.
0012  *    Compare the initial DAQ record with the final one and print them if 
0013  *    they are different.
0014  *   
0015  * \author: Vasile Mihai Ghete - HEPHY Vienna
0016  * 
0017  *
0018  */
0019 
0020 // system include files
0021 #include <memory>
0022 #include <string>
0023 
0024 // user include files
0025 #include "FWCore/Framework/interface/Frameworkfwd.h"
0026 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0027 
0028 #include "FWCore/Framework/interface/Event.h"
0029 #include "FWCore/Framework/interface/MakerMacros.h"
0030 
0031 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0032 #include "FWCore/Utilities/interface/InputTag.h"
0033 
0034 // class declaration
0035 
0036 class L1GtPackUnpackAnalyzer : public edm::one::EDAnalyzer<> {
0037 public:
0038   explicit L1GtPackUnpackAnalyzer(const edm::ParameterSet&);
0039   ~L1GtPackUnpackAnalyzer() override;
0040 
0041 private:
0042   void beginJob() override;
0043 
0044   /// GT comparison
0045   virtual void analyzeGT(const edm::Event&, const edm::EventSetup&);
0046 
0047   /// GMT comparison
0048   virtual void analyzeGMT(const edm::Event&, const edm::EventSetup&);
0049 
0050   /// analyze each event
0051   void analyze(const edm::Event&, const edm::EventSetup&) override;
0052 
0053   /// end of job
0054   void endJob() override;
0055 
0056 private:
0057   /// input tag for the initial GT DAQ record:
0058   edm::InputTag m_initialDaqGtInputTag;
0059 
0060   /// input tag for the initial GMT readout collection:
0061   edm::InputTag m_initialMuGmtInputTag;
0062 
0063   /// input tag for the final GT DAQ and GMT records:
0064   edm::InputTag m_finalGtGmtInputTag;
0065 };
0066 
0067 #endif /*GlobalTriggerAnalyzer_L1GtPackUnpackAnalyzer_h*/