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