CMS 3D CMS Logo

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

Go to the documentation of this file.
00001 #ifndef RCTDIGITORCTTEXT_H
00002 #define RCTDIGITORCTTEXT_H
00003 
00004 /*\class RctDigiToRctText
00005  *\description produces from RCT digis RCT data files
00006  *  format specified by Pam Klabbers
00007  *\author Nuno Leonardo (CERN)
00008  *\created Thu Mar 29 23:22:57 CEST 2007
00009  */
00010 
00011 
00012 // system include files
00013 #include <memory>
00014 #include <iostream>
00015 #include <fstream>
00016 
00017 // user include files
00018 #include "FWCore/Framework/interface/Frameworkfwd.h"
00019 #include "FWCore/Framework/interface/EDAnalyzer.h"
00020 
00021 #include "FWCore/Framework/interface/Event.h"
00022 #include "FWCore/Framework/interface/MakerMacros.h"
00023 
00024 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00025 #include "FWCore/MessageLogger/interface/MessageLogger.h" // Logger
00026 
00027 #include "DataFormats/L1CaloTrigger/interface/L1CaloCollections.h"
00028 
00029 const static unsigned NUM_RCT_CRATES = 18;
00030 
00031 
00032 class RctDigiToRctText : public edm::EDAnalyzer {
00033 
00034  public:
00035   explicit RctDigiToRctText(const edm::ParameterSet&);
00036   ~RctDigiToRctText();
00037   
00038   
00039  private:
00040   virtual void analyze(const edm::Event&, const edm::EventSetup&);
00041   
00043   edm::InputTag m_rctInputLabel;
00044 
00046   std::string m_textFileName;
00047 
00049   bool m_hexUpperCase;
00050 
00052   std::ofstream m_file[NUM_RCT_CRATES];
00053 
00055   std::ofstream fdebug;
00056 
00057 };
00058 
00059 #endif