CMS 3D CMS Logo

L1RCTLutWriter.h
Go to the documentation of this file.
1 #ifndef L1RCTLutWriter_h
2 #define L1RCTLutWriter_h
3 
4 // -*- C++ -*-
5 //
6 // Package: L1RCTLutWriter
7 // Class: L1RCTLutWriter
8 //
17 //
18 // Original Author: jleonard
19 // Created: Fri Apr 11 16:27:07 CEST 2008
20 //
21 //
22 
23 // system include files
24 #include <memory>
25 
26 #include <fstream>
27 #include <iostream>
28 
29 // user include files
32 
35 
36 #include "FWCore/Framework/interface/ESHandle.h" // why doesn't mkedanlzr
37 #include "FWCore/Framework/interface/EventSetup.h" // add these??
39 
40 class L1RCTLookupTables;
41 class L1RCTParameters;
42 // class L1RCTChannelMask;
43 
44 //
45 // class declaration
46 //
47 
49 public:
50  explicit L1RCTLutWriter(const edm::ParameterSet &);
51  ~L1RCTLutWriter() override;
52 
53 private:
54  void analyze(const edm::Event &, const edm::EventSetup &) override;
55  void endJob() override;
56  void writeRcLutFile(unsigned short card);
57  void writeEicLutFile(unsigned short card);
58  void writeJscLutFile();
59  void writeThresholdsFile(unsigned int eicThreshold, unsigned int jscThresholdBarrel, unsigned int jscThresholdEndcap);
60 
61  // ----------member data ---------------------------
62 
65  // const L1RCTChannelMask* channelMask_;
66  std::ofstream lutFile_;
69 };
70 #endif
const L1RCTParameters * rctParameters_
L1RCTLutWriter(const edm::ParameterSet &)
void writeRcLutFile(unsigned short card)
void analyze(const edm::Event &, const edm::EventSetup &) override
L1RCTLookupTables * lookupTable_
std::string keyName_
void endJob() override
void writeThresholdsFile(unsigned int eicThreshold, unsigned int jscThresholdBarrel, unsigned int jscThresholdEndcap)
std::ofstream lutFile_
void writeEicLutFile(unsigned short card)
~L1RCTLutWriter() override