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, const edm::EventSetup &context) final;
50  void produce(edm::Event &e, const edm::EventSetup &c) final;
51 
53 
54  void updateFedVector(const edm::EventSetup &, bool getFromOmds, int);
55  const std::vector<int> getFedVectorFromRunInfo(const edm::EventSetup &);
56  const std::vector<int> getFedVectorFromOmds(const edm::EventSetup &);
57 
58  void printFedVector(const std::vector<int> &);
59  void printUpdatedFedMask();
61 
62 private:
65  bool useEcal;
66  bool useHcal;
67  std::vector<edm::InputTag> ecalDigis;
68  std::vector<edm::InputTag> hcalDigis;
69  std::vector<int> bunchCrossings;
71  unsigned int queryDelayInLS;
72  unsigned int queryIntervalInLS;
74 
75  // Create a channel mask object to be updated at every Run....
77 
79 
80  static const int crateFED[18][6];
81 
82  static const int minBarrel = 1;
83  static const int maxBarrel = 17;
84  static const int minEndcap = 17;
85  static const int maxEndcap = 28;
86  static const int minHF = 29;
87  static const int maxHF = 32;
88 };
89 
90 #endif
static const int minHF
Definition: L1RCTProducer.h:86
std::string conditionsLabel
Definition: L1RCTProducer.h:73
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:63
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:71
bool getFedsFromOmds
Definition: L1RCTProducer.h:70
std::vector< edm::InputTag > hcalDigis
Definition: L1RCTProducer.h:68
~L1RCTProducer() override
static const int maxHF
Definition: L1RCTProducer.h:87
const std::vector< int > getFedVectorFromOmds(const edm::EventSetup &)
std::vector< edm::InputTag > ecalDigis
Definition: L1RCTProducer.h:67
std::vector< int > bunchCrossings
Definition: L1RCTProducer.h:69
void printUpdatedFedMask()
void updateFedVector(const edm::EventSetup &, bool getFromOmds, int)
static const int minBarrel
Definition: L1RCTProducer.h:82
static const int minEndcap
Definition: L1RCTProducer.h:84
void beginRun(edm::Run const &r, const edm::EventSetup &c) final
L1RCTChannelMask * fedUpdatedMask
Definition: L1RCTProducer.h:76
static const int maxBarrel
Definition: L1RCTProducer.h:83
unsigned int queryIntervalInLS
Definition: L1RCTProducer.h:72
static const int maxEndcap
Definition: L1RCTProducer.h:85
static const int crateFED[18][6]
Definition: L1RCTProducer.h:80
Definition: L1RCT.h:20
Definition: Run.h:45