Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:41

0001 #ifndef GCTDIGITOPSBTEXT_H
0002 #define GCTDIGITOPSBTEXT_H
0003 
0004 /*\class GctDigiToPsbText
0005  *\description produces from GCT digis expected GT PSB files
0006  *\author Nuno Leonardo (CERN)
0007  *\date 08.08
0008  */
0009 
0010 // system include files
0011 #include <fstream>
0012 #include <iostream>
0013 #include <memory>
0014 // user include files
0015 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0016 #include "FWCore/Framework/interface/Event.h"
0017 #include "FWCore/Framework/interface/Frameworkfwd.h"
0018 #include "FWCore/Framework/interface/MakerMacros.h"
0019 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0020 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0021 // gct
0022 #include "DataFormats/L1GlobalCaloTrigger/interface/L1GctCollections.h"
0023 
0024 class GctDigiToPsbText : public edm::one::EDAnalyzer<> {
0025 public:
0026   explicit GctDigiToPsbText(const edm::ParameterSet &);
0027   ~GctDigiToPsbText() override;
0028 
0029 private:
0030   void analyze(const edm::Event &, const edm::EventSetup &) override;
0031 
0032   /// label for input digis
0033   edm::InputTag m_gctInputLabel;
0034 
0035   /// basename for output files
0036   std::string m_textFileName;
0037 
0038   /// write upper case hex words
0039   bool m_hexUpperCase;
0040 
0041   /// handles for output files
0042   std::ofstream m_file[4];
0043 
0044   /// handle for debug file
0045   std::ofstream fdebug;
0046 };
0047 
0048 #endif