CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/L1Trigger/TextToDigi/plugins/GctDigiToPsbText.h

Go to the documentation of this file.
00001 #ifndef GCTDIGITOPSBTEXT_H
00002 #define GCTDIGITOPSBTEXT_H
00003 
00004 /*\class GctDigiToPsbText
00005  *\description produces from GCT digis expected GT PSB files
00006  *\author Nuno Leonardo (CERN)
00007  *\date 08.08
00008  */
00009 
00010 // system include files
00011 #include <memory>
00012 #include <iostream>
00013 #include <fstream>
00014 // user include files
00015 #include "FWCore/Framework/interface/Frameworkfwd.h"
00016 #include "FWCore/Framework/interface/EDAnalyzer.h"
00017 #include "FWCore/Framework/interface/Event.h"
00018 #include "FWCore/Framework/interface/MakerMacros.h"
00019 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00020 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00021 // gct
00022 #include "DataFormats/L1GlobalCaloTrigger/interface/L1GctCollections.h"
00023 
00024 class GctDigiToPsbText : public edm::EDAnalyzer {
00025 
00026  public:
00027   explicit GctDigiToPsbText(const edm::ParameterSet&);
00028   ~GctDigiToPsbText();
00029   
00030   
00031  private:
00032   virtual void analyze(const edm::Event&, const edm::EventSetup&);
00033   
00035   edm::InputTag m_gctInputLabel;
00036 
00038   std::string m_textFileName;
00039 
00041   bool m_hexUpperCase;
00042 
00044   std::ofstream m_file[4];
00045 
00047   std::ofstream fdebug;
00048 
00049 };
00050 
00051 #endif