CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/L1Trigger/TextToDigi/plugins/RctInputTextToDigi.h

Go to the documentation of this file.
00001 #ifndef RCTINPUTTEXTTODIGI_H
00002 #define RCTINPUTTEXTTODIGI_H
00003 
00004 // -*- C++ -*-
00005 //
00006 // Class:      RctInputTextToDigi
00007 // 
00017 //
00018 // Original Author:  jleonard
00019 //         Created:  Fri Sep 21 16:16:27 CEST 2007
00020 //
00021 //
00022 
00023 
00024 // system include files
00025 #include <memory>
00026 #include <string>
00027 #include <fstream>
00028 #include <iostream>
00029 
00030 // user include files
00031 #include "FWCore/Framework/interface/Frameworkfwd.h"
00032 #include "FWCore/Framework/interface/EDProducer.h"
00033 #include "FWCore/Framework/interface/EventSetup.h"
00034 #include "FWCore/Framework/interface/ESHandle.h"
00035 #include "FWCore/Framework/interface/Event.h"
00036 #include "FWCore/Framework/interface/MakerMacros.h"
00037 
00038 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00039 
00040 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
00041 #include "DataFormats/HcalDigi/interface/HcalDigiCollections.h"
00042 #include "L1Trigger/RegionalCaloTrigger/interface/L1RCTLookupTables.h"
00043 #include "CondFormats/L1TObjects/interface/L1RCTParameters.h"
00044 #include "CondFormats/DataRecord/interface/L1RCTParametersRcd.h"
00045 
00046 //
00047 // class declaration
00048 //
00049 
00050 class RctInputTextToDigi : public edm::EDProducer {
00051 public:
00052   explicit RctInputTextToDigi(const edm::ParameterSet&);
00053   ~RctInputTextToDigi();
00054 
00055 private:
00056   virtual void beginJob();
00057   virtual void produce(edm::Event&, const edm::EventSetup&);
00058   virtual void endJob() ;
00059       
00060   // ----------member data ---------------------------
00061   
00062   edm::FileInPath inputFile_;
00063   std::ifstream inputStream_;
00064   int nEvent_;
00065   bool oldVersion_;
00066   L1RCTLookupTables* lookupTables_;
00067 };
00068 
00069 #endif