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 #include <memory>
41 
42 class L1RCT;
43 class L1RCTLookupTables;
44 
46 public:
47  explicit L1RCTProducer(const edm::ParameterSet &ps);
48 
49  void beginRun(edm::Run const &r, const edm::EventSetup &c) final;
50  void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, 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:
64  std::unique_ptr<L1RCTLookupTables> rctLookupTables;
65  std::unique_ptr<L1RCT> rct;
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....
77  std::unique_ptr<L1RCTChannelMask> fedUpdatedMask;
78 
80 
81  static const int crateFED[18][6];
82 
83  static const int minBarrel = 1;
84  static const int maxBarrel = 17;
85  static const int minEndcap = 17;
86  static const int maxEndcap = 28;
87  static const int minHF = 29;
88  static const int maxHF = 32;
89 };
90 
91 #endif
L1EmEtScaleRcd.h
L1RCTProducer::ebOddFed
Definition: L1RCTProducer.h:79
Handle.h
L1RCTProducer::updateFedVector
void updateFedVector(const edm::EventSetup &, bool getFromOmds, int)
Definition: L1RCTProducer.cc:130
L1RCTNoisyChannelMask.h
L1RCTChannelMaskRcd.h
L1RCTProducer::useHcal
bool useHcal
Definition: L1RCTProducer.h:67
MessageLogger.h
RunSummaryRcd.h
L1RCTParameters.h
ESHandle.h
L1RCTProducer::maxHF
static const int maxHF
Definition: L1RCTProducer.h:88
L1RCTProducer::getFedVectorFromOmds
const std::vector< int > getFedVectorFromOmds(const edm::EventSetup &)
Definition: L1RCTProducer.cc:297
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
L1RCTProducer::beginRun
void beginRun(edm::Run const &r, const edm::EventSetup &c) final
Definition: L1RCTProducer.cc:60
L1RCTProducer::printUpdatedFedMask
void printUpdatedFedMask()
Definition: L1RCTProducer.cc:379
EDProducer.h
L1RCTProducer::queryIntervalInLS
unsigned int queryIntervalInLS
Definition: L1RCTProducer.h:73
L1RCTProducer::c_min
Definition: L1RCTProducer.h:79
L1RCTProducer::hfFed
Definition: L1RCTProducer.h:79
L1RCTChannelMask.h
L1CaloHcalScale.h
L1RCTProducer::hfFedUp
Definition: L1RCTProducer.h:79
L1RCTProducer::maxEndcap
static const int maxEndcap
Definition: L1RCTProducer.h:86
L1RCTNoisyChannelMaskRcd.h
L1RCTProducer::useEcal
bool useEcal
Definition: L1RCTProducer.h:66
L1RCT.h
L1RCT
Definition: L1RCT.h:20
HcalDigiCollections.h
L1RCTProducer::maxBarrel
static const int maxBarrel
Definition: L1RCTProducer.h:84
EcalDigiCollections.h
L1RCTProducer::ebEvenFed
Definition: L1RCTProducer.h:79
L1RCTProducer::crateSection
crateSection
Definition: L1RCTProducer.h:79
L1RCTProducer::getFedVectorFromRunInfo
const std::vector< int > getFedVectorFromRunInfo(const edm::EventSetup &)
Definition: L1RCTProducer.cc:285
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1RCTProducer::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, const edm::EventSetup &context) final
Definition: L1RCTProducer.cc:70
L1RCTLookupTables
Definition: L1RCTLookupTables.h:11
L1RCTProducer::L1RCTProducer
L1RCTProducer(const edm::ParameterSet &ps)
Definition: L1RCTProducer.cc:33
L1RCTProducer::rct
std::unique_ptr< L1RCT > rct
Definition: L1RCTProducer.h:65
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
L1RCTProducer::crateFED
static const int crateFED[18][6]
Definition: L1RCTProducer.h:81
L1RCTProducer::produce
void produce(edm::Event &e, const edm::EventSetup &c) final
Definition: L1RCTProducer.cc:316
L1CaloCollections.h
L1RCTProducer
Definition: L1RCTProducer.h:45
L1RCTProducer::getFedsFromOmds
bool getFedsFromOmds
Definition: L1RCTProducer.h:71
L1RCTProducer::hcalDigis
std::vector< edm::InputTag > hcalDigis
Definition: L1RCTProducer.h:69
edm::stream::EDProducer
Definition: EDProducer.h:38
L1RCTLookupTables.h
edm::EventSetup
Definition: EventSetup.h:58
L1RCTProducer::printFedVector
void printFedVector(const std::vector< int > &)
Definition: L1RCTProducer.cc:372
alignCSCRings.r
r
Definition: alignCSCRings.py:93
L1CaloEtScale.h
L1CaloEcalScaleRcd.h
L1CaloHcalScaleRcd.h
L1RCTProducer::minHF
static const int minHF
Definition: L1RCTProducer.h:87
L1RCTProducer::bunchCrossings
std::vector< int > bunchCrossings
Definition: L1RCTProducer.h:70
RunInfo.h
L1RCTProducer::queryDelayInLS
unsigned int queryDelayInLS
Definition: L1RCTProducer.h:72
L1CaloEcalScale.h
L1RCTProducer::fedUpdatedMask
std::unique_ptr< L1RCTChannelMask > fedUpdatedMask
Definition: L1RCTProducer.h:77
L1RCTProducer::conditionsLabel
std::string conditionsLabel
Definition: L1RCTProducer.h:74
L1RCTProducer::eeFed
Definition: L1RCTProducer.h:79
EventSetup.h
L1RCTProducer::hbheFed
Definition: L1RCTProducer.h:79
L1RCTProducer::updateConfiguration
void updateConfiguration(const edm::EventSetup &)
Definition: L1RCTProducer.cc:95
L1RCTParametersRcd.h
L1RCTProducer::c_max
Definition: L1RCTProducer.h:79
ParameterSet.h
L1RCTProducer::minBarrel
static const int minBarrel
Definition: L1RCTProducer.h:83
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
L1RCTProducer::printUpdatedFedMaskVerbose
void printUpdatedFedMaskVerbose()
Definition: L1RCTProducer.cc:388
L1RCTProducer::ecalDigis
std::vector< edm::InputTag > ecalDigis
Definition: L1RCTProducer.h:68
edm::Event
Definition: Event.h:73
L1RCTProducer::rctLookupTables
std::unique_ptr< L1RCTLookupTables > rctLookupTables
Definition: L1RCTProducer.h:64
L1RCTProducer::minEndcap
static const int minEndcap
Definition: L1RCTProducer.h:85
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37