CMS 3D CMS Logo

L1RCTProducer.h
Go to the documentation of this file.
1 #ifndef L1RCTProducer_h
2 #define L1RCTProducer_h
3 
5 
11 
15 
16 // default scales
21 
28 
31 
34 
37 
39 #include <string>
40 
41 class L1RCT;
42 class L1RCTLookupTables;
43 
45 public:
46  explicit L1RCTProducer(const edm::ParameterSet &ps);
47  ~L1RCTProducer() override;
48  void beginRun(edm::Run const &r, const edm::EventSetup &c) final;
49  void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg,
50  const edm::EventSetup &context) final;
51  void produce(edm::Event &e, const edm::EventSetup &c) final;
52 
54 
55  void updateFedVector(const edm::EventSetup &, bool getFromOmds, int);
56  const std::vector<int> getFedVectorFromRunInfo(const edm::EventSetup &);
57  const std::vector<int> getFedVectorFromOmds(const edm::EventSetup &);
58 
59  void printFedVector(const std::vector<int> &);
60  void printUpdatedFedMask();
62 
63 private:
66  bool useEcal;
67  bool useHcal;
68  std::vector<edm::InputTag> ecalDigis;
69  std::vector<edm::InputTag> hcalDigis;
70  std::vector<int> bunchCrossings;
72  unsigned int queryDelayInLS;
73  unsigned int queryIntervalInLS;
75 
76  // Create a channel mask object to be updated at every Run....
78 
79  enum crateSection {
88  };
89 
90  static const int crateFED[18][6];
91 
92  static const int minBarrel = 1;
93  static const int maxBarrel = 17;
94  static const int minEndcap = 17;
95  static const int maxEndcap = 28;
96  static const int minHF = 29;
97  static const int maxHF = 32;
98 };
99 
100 #endif
static const int minHF
Definition: L1RCTProducer.h:96
std::string conditionsLabel
Definition: L1RCTProducer.h:74
void produce(edm::Event &e, const edm::EventSetup &c) final
const std::vector< int > getFedVectorFromRunInfo(const edm::EventSetup &)
void updateConfiguration(const edm::EventSetup &)
L1RCTLookupTables * rctLookupTables
Definition: L1RCTProducer.h:64
void printFedVector(const std::vector< int > &)
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, const edm::EventSetup &context) final
void printUpdatedFedMaskVerbose()
L1RCTProducer(const edm::ParameterSet &ps)
unsigned int queryDelayInLS
Definition: L1RCTProducer.h:72
bool getFedsFromOmds
Definition: L1RCTProducer.h:71
std::vector< edm::InputTag > hcalDigis
Definition: L1RCTProducer.h:69
~L1RCTProducer() override
static const int maxHF
Definition: L1RCTProducer.h:97
const std::vector< int > getFedVectorFromOmds(const edm::EventSetup &)
std::vector< edm::InputTag > ecalDigis
Definition: L1RCTProducer.h:68
std::vector< int > bunchCrossings
Definition: L1RCTProducer.h:70
void printUpdatedFedMask()
void updateFedVector(const edm::EventSetup &, bool getFromOmds, int)
static const int minBarrel
Definition: L1RCTProducer.h:92
static const int minEndcap
Definition: L1RCTProducer.h:94
void beginRun(edm::Run const &r, const edm::EventSetup &c) final
L1RCTChannelMask * fedUpdatedMask
Definition: L1RCTProducer.h:77
static const int maxBarrel
Definition: L1RCTProducer.h:93
unsigned int queryIntervalInLS
Definition: L1RCTProducer.h:73
static const int maxEndcap
Definition: L1RCTProducer.h:95
static const int crateFED[18][6]
Definition: L1RCTProducer.h:90
Definition: L1RCT.h:20
Definition: Run.h:45