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 
36 
37 #include "FWCore/Framework/interface/ESHandle.h" // why doesn't mkedanlzr
38 #include "FWCore/Framework/interface/EventSetup.h" // add these??
51 class L1RCTLookupTables;
52 class L1RCTParameters;
53 // class L1RCTChannelMask;
54 
55 //
56 // class declaration
57 //
58 
60 public:
61  explicit L1RCTLutWriter(const edm::ParameterSet &);
62  ~L1RCTLutWriter() override;
63 
64 private:
65  void analyze(const edm::Event &, const edm::EventSetup &) override;
66  void endJob() override;
67  void writeRcLutFile(unsigned short card);
68  void writeEicLutFile(unsigned short card);
69  void writeJscLutFile();
70  void writeThresholdsFile(unsigned int eicThreshold, unsigned int jscThresholdBarrel, unsigned int jscThresholdEndcap);
71 
72  // ----------member data ---------------------------
73 
76  // const L1RCTChannelMask* channelMask_;
77  std::ofstream lutFile_;
86 };
87 #endif
edm::ESGetToken< L1RCTParameters, L1RCTParametersRcd > rctParametersToken_
const L1RCTParameters * rctParameters_
L1RCTLutWriter(const edm::ParameterSet &)
void writeRcLutFile(unsigned short card)
edm::ESGetToken< L1CaloEcalScale, L1CaloEcalScaleRcd > ecalScaleToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
L1RCTLookupTables * lookupTable_
edm::ESGetToken< L1CaloEtScale, L1EmEtScaleRcd > emScaleToken_
std::string keyName_
void endJob() override
edm::ESGetToken< CaloTPGTranscoder, CaloTPGRecord > transcoderToken_
void writeThresholdsFile(unsigned int eicThreshold, unsigned int jscThresholdBarrel, unsigned int jscThresholdEndcap)
EcalTPGScale::Tokens tokens_
edm::ESGetToken< L1CaloHcalScale, L1CaloHcalScaleRcd > hcalScaleToken_
std::ofstream lutFile_
void writeEicLutFile(unsigned short card)
~L1RCTLutWriter() override