CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/L1Trigger/TextToDigi/plugins/SourceCardTextToRctDigi.h

Go to the documentation of this file.
00001 #ifndef SOURCECARDTEXTTORCTDIGI_H
00002 #define SOURCECARDTEXTTORCTDIGI_H
00003 
00004 // -*- C++ -*-
00005 //
00006 // Package:    SourceCardTextToRctDigi
00007 // Class:      SourceCardTextToRctDigi
00008 // 
00016 //
00017 // Original Author:  Alex Tapper
00018 //         Created:  Fri Mar  9 19:11:51 CET 2007
00019 // $Id: SourceCardTextToRctDigi.h,v 1.2 2007/05/09 11:21:18 tapper Exp $
00020 //
00021 //
00022 
00023 
00024 // system include files
00025 #include <memory>
00026 
00027 // user include files
00028 #include "FWCore/Framework/interface/Frameworkfwd.h"
00029 #include "FWCore/Framework/interface/EDProducer.h"
00030 
00031 #include "FWCore/Framework/interface/Event.h"
00032 #include "FWCore/Framework/interface/MakerMacros.h"
00033 
00034 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00035 
00036 // RCT data includes
00037 #include "DataFormats/L1CaloTrigger/interface/L1CaloCollections.h"
00038 
00039 #include "L1Trigger/TextToDigi/src/SourceCardRouting.h"
00040 
00041 #include <iostream>
00042 #include <fstream>
00043 
00044 class SourceCardTextToRctDigi : public edm::EDProducer {
00045  public:
00046   explicit SourceCardTextToRctDigi(const edm::ParameterSet&);
00047   ~SourceCardTextToRctDigi();
00048   
00049  private:
00050   virtual void produce(edm::Event&, const edm::EventSetup&);
00051 
00053   void putEmptyDigi(edm::Event&);
00054 
00056   std::string m_textFileName;
00057 
00059   int m_fileEventOffset;
00060 
00062   int m_nevt;
00063 
00065   std::ifstream m_file;
00066   
00068   SourceCardRouting m_scRouting;
00069   
00070 };
00071 
00072 #endif