File indexing completed on 2024-04-06 12:21:41
0001 #ifndef RCTDIGITORCTTEXT_H
0002 #define RCTDIGITORCTTEXT_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include <fstream>
0013 #include <iostream>
0014 #include <memory>
0015
0016
0017 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0018 #include "FWCore/Framework/interface/Frameworkfwd.h"
0019
0020 #include "FWCore/Framework/interface/Event.h"
0021 #include "FWCore/Framework/interface/MakerMacros.h"
0022
0023 #include "FWCore/MessageLogger/interface/MessageLogger.h" // Logger
0024 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0025
0026 #include "DataFormats/L1CaloTrigger/interface/L1CaloCollections.h"
0027
0028 const static unsigned NUM_RCT_CRATES = 18;
0029
0030 class RctDigiToRctText : public edm::one::EDAnalyzer<> {
0031 public:
0032 explicit RctDigiToRctText(const edm::ParameterSet &);
0033 ~RctDigiToRctText() override;
0034
0035 private:
0036 void analyze(const edm::Event &, const edm::EventSetup &) override;
0037
0038
0039 edm::InputTag m_rctInputLabel;
0040
0041
0042 std::string m_textFileName;
0043
0044
0045 bool m_hexUpperCase;
0046
0047
0048 std::ofstream m_file[NUM_RCT_CRATES];
0049
0050
0051 std::ofstream fdebug;
0052
0053 int nevt = -1;
0054 };
0055
0056 #endif