File indexing completed on 2024-04-06 12:21:41
0001 #ifndef GTPSBTEXTTODIGI_H
0002 #define GTPSBTEXTTODIGI_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 #include "FWCore/Framework/interface/one/EDProducer.h"
0027 #include "FWCore/Framework/interface/Event.h"
0028 #include "FWCore/Framework/interface/Frameworkfwd.h"
0029 #include "FWCore/Framework/interface/MakerMacros.h"
0030 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0031 #include <fstream>
0032 #include <memory>
0033
0034 class GtPsbTextToDigi : public edm::one::EDProducer<> {
0035 public:
0036 explicit GtPsbTextToDigi(const edm::ParameterSet &);
0037 ~GtPsbTextToDigi() override;
0038
0039 private:
0040 void produce(edm::Event &, const edm::EventSetup &) override;
0041 void endJob() override;
0042
0043 private:
0044
0045 void putEmptyDigi(edm::Event &);
0046
0047
0048 int m_fileEventOffset;
0049
0050
0051 std::string m_textFileName;
0052
0053
0054 int m_nevt;
0055
0056
0057 std::ifstream m_file[4];
0058
0059
0060 int m_bc0[4];
0061 };
0062
0063 #endif