Go to the documentation of this file.00001 #ifndef RCTINPUTTEXTTODIGI_H
00002 #define RCTINPUTTEXTTODIGI_H
00003
00004
00005
00006
00007
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <memory>
00026 #include <string>
00027 #include <fstream>
00028 #include <iostream>
00029
00030
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
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
00061
00062 edm::FileInPath inputFile_;
00063 std::ifstream inputStream_;
00064 int nEvent_;
00065 bool oldVersion_;
00066 L1RCTLookupTables* lookupTables_;
00067 };
00068
00069 #endif