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 
22 
29 
32 
33 
36 
39 
40 
42 #include <string>
43 
44 class L1RCT;
45 class L1RCTLookupTables;
46 
48 {
49  public:
50  explicit L1RCTProducer(const edm::ParameterSet& ps);
51  virtual ~L1RCTProducer();
52  virtual void beginRun(edm::Run const& r, const edm::EventSetup& c) override final;
53  virtual void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, const edm::EventSetup& context) override final;
54  virtual void produce(edm::Event& e, const edm::EventSetup& c) override final;
55 
56 
58 
59  void updateFedVector(const edm::EventSetup&, bool getFromOmds, int);
60  const std::vector<int> getFedVectorFromRunInfo(const edm::EventSetup&);
61  const std::vector<int> getFedVectorFromOmds(const edm::EventSetup&);
62 
63  void printFedVector(const std::vector<int>&);
64  void printUpdatedFedMask();
66 
67  private:
70  bool useEcal;
71  bool useHcal;
72  std::vector<edm::InputTag> ecalDigis;
73  std::vector<edm::InputTag> hcalDigis;
74  std::vector<int> bunchCrossings;
76  unsigned int queryDelayInLS;
77  unsigned int queryIntervalInLS;
79 
80  //Create a channel mask object to be updated at every Run....
82 
83 
93  };
94 
95  static const int crateFED[18][6];
96 
97  static const int minBarrel = 1;
98  static const int maxBarrel = 17;
99  static const int minEndcap = 17;
100  static const int maxEndcap = 28;
101  static const int minHF = 29;
102  static const int maxHF =32;
103 
104 
105 };
106 
107 
108 #endif
static const int minHF
std::string conditionsLabel
Definition: L1RCTProducer.h:78
const std::vector< int > getFedVectorFromRunInfo(const edm::EventSetup &)
void updateConfiguration(const edm::EventSetup &)
L1RCTLookupTables * rctLookupTables
Definition: L1RCTProducer.h:68
void printFedVector(const std::vector< int > &)
virtual ~L1RCTProducer()
void printUpdatedFedMaskVerbose()
L1RCTProducer(const edm::ParameterSet &ps)
unsigned int queryDelayInLS
Definition: L1RCTProducer.h:76
bool getFedsFromOmds
Definition: L1RCTProducer.h:75
std::vector< edm::InputTag > hcalDigis
Definition: L1RCTProducer.h:73
static const int maxHF
const std::vector< int > getFedVectorFromOmds(const edm::EventSetup &)
std::vector< edm::InputTag > ecalDigis
Definition: L1RCTProducer.h:72
std::vector< int > bunchCrossings
Definition: L1RCTProducer.h:74
void printUpdatedFedMask()
void updateFedVector(const edm::EventSetup &, bool getFromOmds, int)
virtual void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, const edm::EventSetup &context) override final
static const int minBarrel
Definition: L1RCTProducer.h:97
virtual void produce(edm::Event &e, const edm::EventSetup &c) override final
virtual void beginRun(edm::Run const &r, const edm::EventSetup &c) override final
static const int minEndcap
Definition: L1RCTProducer.h:99
L1RCTChannelMask * fedUpdatedMask
Definition: L1RCTProducer.h:81
static const int maxBarrel
Definition: L1RCTProducer.h:98
unsigned int queryIntervalInLS
Definition: L1RCTProducer.h:77
static const int maxEndcap
static const int crateFED[18][6]
Definition: L1RCTProducer.h:95
Definition: L1RCT.h:20
Definition: Run.h:43