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 
53 private:
55 
56  void updateFedVector(const L1RCTChannelMask &, const L1RCTNoisyChannelMask &, const std::vector<int> &Feds);
58  const edm::EventSetup &) const;
59  const std::vector<int> getFedVectorFromOmds(const edm::EventSetup &) const;
60 
61  void printFedVector(const std::vector<int> &);
62  void printUpdatedFedMask();
64 
65  std::unique_ptr<L1RCTLookupTables> rctLookupTables;
66  std::unique_ptr<L1RCT> rct;
67  bool useEcal;
68  bool useHcal;
69  std::vector<edm::InputTag> ecalDigis;
70  std::vector<edm::InputTag> hcalDigis;
71  std::vector<int> bunchCrossings;
73  unsigned int queryDelayInLS;
74  unsigned int queryIntervalInLS;
76 
77  // Create a channel mask object to be updated at every Run....
78  std::unique_ptr<L1RCTChannelMask> fedUpdatedMask;
79 
80  //configuration
85 
86  //fedVectors
90 
91  //beginRun
94 
95  //lumi
98 
100 
101  static constexpr int minBarrel = 1;
102  static constexpr int maxBarrel = 17;
103  static constexpr int minEndcap = 17;
104  static constexpr int maxEndcap = 28;
105  static constexpr int minHF = 29;
106  static constexpr int maxHF = 32;
107 };
108 
109 #endif
L1EmEtScaleRcd.h
L1RCTProducer::ebOddFed
Definition: L1RCTProducer.h:99
Handle.h
L1RCTNoisyChannelMask.h
L1RCTChannelMaskRcd.h
L1RCTProducer::useHcal
bool useHcal
Definition: L1RCTProducer.h:68
MessageLogger.h
RunSummaryRcd.h
L1RCTParameters.h
ESHandle.h
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:78
L1RCTProducer::printUpdatedFedMask
void printUpdatedFedMask()
Definition: L1RCTProducer.cc:378
L1RCTProducer::minBarrel
static constexpr int minBarrel
Definition: L1RCTProducer.h:101
L1RCTProducer::maxHF
static constexpr int maxHF
Definition: L1RCTProducer.h:106
EDProducer.h
L1RCTChannelMask
Definition: L1RCTChannelMask.h:7
L1RCTProducer::queryIntervalInLS
unsigned int queryIntervalInLS
Definition: L1RCTProducer.h:74
L1RCTProducer::c_min
Definition: L1RCTProducer.h:99
L1RCTProducer::hfFed
Definition: L1RCTProducer.h:99
L1RCTProducer::rctParamsToken_
const edm::ESGetToken< L1RCTParameters, L1RCTParametersRcd > rctParamsToken_
Definition: L1RCTProducer.h:81
L1RCTChannelMask.h
L1CaloHcalScale.h
L1RCTProducer::omdsRunInfoToken_
edm::ESGetToken< RunInfo, RunInfoRcd > omdsRunInfoToken_
Definition: L1RCTProducer.h:89
L1RCTProducer::hfFedUp
Definition: L1RCTProducer.h:99
L1RCTNoisyChannelMaskRcd.h
visDQMUpload.context
context
Definition: visDQMUpload.py:37
L1RCTNoisyChannelMask
Definition: L1RCTNoisyChannelMask.h:7
L1RCTProducer::useEcal
bool useEcal
Definition: L1RCTProducer.h:67
L1RCT.h
L1RCTProducer::beginLumiRunInfoToken_
edm::ESGetToken< RunInfo, RunInfoRcd > beginLumiRunInfoToken_
Definition: L1RCTProducer.h:88
L1RCTProducer::emScaleToken_
const edm::ESGetToken< L1CaloEtScale, L1EmEtScaleRcd > emScaleToken_
Definition: L1RCTProducer.h:82
L1RCTProducer::beginRunRunInfoToken_
const edm::ESGetToken< RunInfo, RunInfoRcd > beginRunRunInfoToken_
Definition: L1RCTProducer.h:87
L1RCTProducer::beginRunHotChannelMaskToken_
const edm::ESGetToken< L1RCTNoisyChannelMask, L1RCTNoisyChannelMaskRcd > beginRunHotChannelMaskToken_
Definition: L1RCTProducer.h:93
L1RCTProducer::beginLumiChannelMaskToken_
edm::ESGetToken< L1RCTChannelMask, L1RCTChannelMaskRcd > beginLumiChannelMaskToken_
Definition: L1RCTProducer.h:96
L1RCT
Definition: L1RCT.h:20
HcalDigiCollections.h
EcalDigiCollections.h
L1RCTProducer::ebEvenFed
Definition: L1RCTProducer.h:99
L1RCTProducer::minHF
static constexpr int minHF
Definition: L1RCTProducer.h:105
L1RCTProducer::crateSection
crateSection
Definition: L1RCTProducer.h:99
L1RCTProducer::maxEndcap
static constexpr int maxEndcap
Definition: L1RCTProducer.h:104
L1RCTProducer::getFedVectorFromOmds
const std::vector< int > getFedVectorFromOmds(const edm::EventSetup &) const
Definition: L1RCTProducer.cc:301
L1RCTProducer::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, const edm::EventSetup &context) final
Definition: L1RCTProducer.cc:92
L1RCTLookupTables
Definition: L1RCTLookupTables.h:11
L1RCTProducer::L1RCTProducer
L1RCTProducer(const edm::ParameterSet &ps)
Definition: L1RCTProducer.cc:34
L1RCTProducer::rct
std::unique_ptr< L1RCT > rct
Definition: L1RCTProducer.h:66
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
L1RCTProducer::produce
void produce(edm::Event &e, const edm::EventSetup &c) final
Definition: L1RCTProducer.cc:315
L1RCTProducer::ecalScaleToken_
const edm::ESGetToken< L1CaloEcalScale, L1CaloEcalScaleRcd > ecalScaleToken_
Definition: L1RCTProducer.h:83
L1RCTProducer::hcalScaleToken_
const edm::ESGetToken< L1CaloHcalScale, L1CaloHcalScaleRcd > hcalScaleToken_
Definition: L1RCTProducer.h:84
L1CaloCollections.h
L1RCTProducer::beginRunChannelMaskToken_
const edm::ESGetToken< L1RCTChannelMask, L1RCTChannelMaskRcd > beginRunChannelMaskToken_
Definition: L1RCTProducer.h:92
L1RCTProducer::updateFedVector
void updateFedVector(const L1RCTChannelMask &, const L1RCTNoisyChannelMask &, const std::vector< int > &Feds)
Definition: L1RCTProducer.cc:150
L1RCTProducer
Definition: L1RCTProducer.h:45
L1RCTProducer::getFedsFromOmds
bool getFedsFromOmds
Definition: L1RCTProducer.h:72
L1RCTProducer::hcalDigis
std::vector< edm::InputTag > hcalDigis
Definition: L1RCTProducer.h:70
edm::stream::EDProducer
Definition: EDProducer.h:36
L1RCTProducer::getFedVectorFromRunInfo
const std::vector< int > getFedVectorFromRunInfo(const edm::ESGetToken< RunInfo, RunInfoRcd > &, const edm::EventSetup &) const
Definition: L1RCTProducer.cc:293
L1RCTLookupTables.h
edm::EventSetup
Definition: EventSetup.h:58
L1RCTProducer::printFedVector
void printFedVector(const std::vector< int > &)
Definition: L1RCTProducer.cc:371
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ESGetToken< RunInfo, RunInfoRcd >
L1RCTProducer::beginLumiHotChannelMaskToken_
edm::ESGetToken< L1RCTNoisyChannelMask, L1RCTNoisyChannelMaskRcd > beginLumiHotChannelMaskToken_
Definition: L1RCTProducer.h:97
alignCSCRings.r
r
Definition: alignCSCRings.py:93
L1CaloEtScale.h
L1CaloEcalScaleRcd.h
L1CaloHcalScaleRcd.h
L1RCTProducer::bunchCrossings
std::vector< int > bunchCrossings
Definition: L1RCTProducer.h:71
RunInfo.h
L1RCTProducer::queryDelayInLS
unsigned int queryDelayInLS
Definition: L1RCTProducer.h:73
L1CaloEcalScale.h
L1RCTProducer::minEndcap
static constexpr int minEndcap
Definition: L1RCTProducer.h:103
L1RCTProducer::fedUpdatedMask
std::unique_ptr< L1RCTChannelMask > fedUpdatedMask
Definition: L1RCTProducer.h:78
L1RCTProducer::conditionsLabel
std::string conditionsLabel
Definition: L1RCTProducer.h:75
L1RCTProducer::eeFed
Definition: L1RCTProducer.h:99
EventSetup.h
L1RCTProducer::hbheFed
Definition: L1RCTProducer.h:99
L1RCTProducer::updateConfiguration
void updateConfiguration(const edm::EventSetup &)
Definition: L1RCTProducer.cc:123
L1RCTParametersRcd.h
L1RCTProducer::c_max
Definition: L1RCTProducer.h:99
ParameterSet.h
L1RCTProducer::maxBarrel
static constexpr int maxBarrel
Definition: L1RCTProducer.h:102
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
L1RCTProducer::printUpdatedFedMaskVerbose
void printUpdatedFedMaskVerbose()
Definition: L1RCTProducer.cc:387
L1RCTProducer::ecalDigis
std::vector< edm::InputTag > ecalDigis
Definition: L1RCTProducer.h:69
edm::Event
Definition: Event.h:73
L1RCTProducer::rctLookupTables
std::unique_ptr< L1RCTLookupTables > rctLookupTables
Definition: L1RCTProducer.h:65
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37