CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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;
78 
79  //Create a channel mask object to be updated at every Run....
81 
82 
91  };
92 
93 
94 
95  static const int crateFED[18][5];
96  static const int minBarrel = 1;
97  static const int maxBarrel = 17;
98  static const int minEndcap = 17;
99  static const int maxEndcap = 28;
100  static const int minHF = 29;
101  static const int maxHF =32;
102 
103 
104 };
105 
106 
107 #endif
static const int minHF
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)
static const int crateFED[18][5]
Definition: L1RCTProducer.h:95
unsigned int queryDelayInLS
Definition: L1RCTProducer.h:76
virtual void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, const edm::EventSetup &context) overridefinal
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
virtual void produce(edm::Event &e, const edm::EventSetup &c) overridefinal
void printUpdatedFedMask()
void updateFedVector(const edm::EventSetup &, bool getFromOmds, int)
static const int minBarrel
Definition: L1RCTProducer.h:96
static const int minEndcap
Definition: L1RCTProducer.h:98
L1RCTChannelMask * fedUpdatedMask
Definition: L1RCTProducer.h:80
static const int maxBarrel
Definition: L1RCTProducer.h:97
unsigned int queryIntervalInLS
Definition: L1RCTProducer.h:77
virtual void beginRun(edm::Run const &r, const edm::EventSetup &c) overridefinal
static const int maxEndcap
Definition: L1RCTProducer.h:99
Definition: L1RCT.h:20
Definition: Run.h:36