|
static void | prevalidate (ConfigurationDescriptions &) |
|
using | EventSetupRecordKey = eventsetup::EventSetupRecordKey |
|
using | KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >> |
|
bool | getObjectKey (const L1GctChannelMaskRcd &record, std::string &objectKey) |
|
ESConsumesInfo * | consumesInfoPushBackNew () |
|
unsigned int | consumesInfoSize () const |
|
template<typename CallbackT , typename TList , typename TRecord > |
void | registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel) |
|
template<typename CallbackT , typename TRecord > |
void | registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &) |
|
template<typename T > |
auto | setWhatProduced (T *iThis, const es::Label &iLabel={}) |
|
template<typename T > |
auto | setWhatProduced (T *iThis, const char *iLabel) |
|
template<typename T > |
auto | setWhatProduced (T *iThis, const std::string &iLabel) |
|
template<typename T , typename TDecorator > |
auto | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={}) |
|
template<typename T , typename TReturn , typename TRecord > |
auto | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel={}) |
|
template<typename T , typename TReturn , typename TRecord , typename TDecorator > |
auto | setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &iDec, const es::Label &iLabel={}) |
|
template<typename TFunc > |
auto | setWhatProduced (TFunc &&func, const es::Label &iLabel={}) |
|
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator > |
ESConsumesCollectorT< TRecord > | setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={}) |
|
void | usesResources (std::vector< std::string > const &) |
|
template<class TFactory > |
void | registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
|
virtual void | registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ESProductResolverFactoryBase > iFactory, const std::string &iLabel=std::string()) |
|
KeyedResolversVector | registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override |
|
template<class T > |
void | usingRecord () |
|
void | usingRecordWithKey (const EventSetupRecordKey &key) |
|
std::optional< edm::ESConsumesCollectorT< L1GctChannelMaskRcd > > | m_consumesCollector |
|
bool | m_copyFromCondDB |
|
cond::persistency::Session | m_dbSession |
|
bool | m_forceGeneration |
|
l1t::OMDSReader | m_omdsReader |
|
std::unique_ptr< L1GctChannelMask > L1GctChannelMaskOnlineProd::newObject |
( |
const std::string & |
objectKey | ) |
|
|
overridevirtual |
Implements L1ConfigOnlineProdBase< L1GctChannelMaskRcd, L1GctChannelMask >.
Definition at line 16 of file L1GctChannelMaskOnlineProd.cc.
References l1t::OMDSReader::basicQuery(), TauDecayModes::dec, l1t::OMDSReader::QueryResults::fillVariable(), mps_fire::i, hcalRecHitTable_cff::ieta, L1ConfigOnlineProdBase< L1GctChannelMaskRcd, L1GctChannelMask >::m_omdsReader, gpuClustering::pixelStatus::mask, l1t::OMDSReader::QueryResults::queryFailed(), l1t::OMDSReader::singleAttribute(), and AlCaHLTBitMon_QueryRunRegistry::string.
22 edm::LogError(
"L1-O2O") <<
"Problem with L1GctChannelMask EM mask for key " << objectKey;
23 return std::unique_ptr<L1GctChannelMask>();
34 edm::LogError(
"L1-O2O") <<
"Problem with L1GctChannelMask region mask for key " << objectKey;
35 return std::unique_ptr<L1GctChannelMask>();
41 std::vector<std::string> rgnMaskCols;
42 rgnMaskCols.push_back(
"RCT_CRATE_0_RGN_MASK");
43 rgnMaskCols.push_back(
"RCT_CRATE_1_RGN_MASK");
44 rgnMaskCols.push_back(
"RCT_CRATE_2_RGN_MASK");
45 rgnMaskCols.push_back(
"RCT_CRATE_3_RGN_MASK");
46 rgnMaskCols.push_back(
"RCT_CRATE_4_RGN_MASK");
47 rgnMaskCols.push_back(
"RCT_CRATE_5_RGN_MASK");
48 rgnMaskCols.push_back(
"RCT_CRATE_6_RGN_MASK");
49 rgnMaskCols.push_back(
"RCT_CRATE_7_RGN_MASK");
50 rgnMaskCols.push_back(
"RCT_CRATE_8_RGN_MASK");
51 rgnMaskCols.push_back(
"RCT_CRATE_9_RGN_MASK");
52 rgnMaskCols.push_back(
"RCT_CRATE_10_RGN_MASK");
53 rgnMaskCols.push_back(
"RCT_CRATE_11_RGN_MASK");
54 rgnMaskCols.push_back(
"RCT_CRATE_12_RGN_MASK");
55 rgnMaskCols.push_back(
"RCT_CRATE_13_RGN_MASK");
56 rgnMaskCols.push_back(
"RCT_CRATE_14_RGN_MASK");
57 rgnMaskCols.push_back(
"RCT_CRATE_15_RGN_MASK");
58 rgnMaskCols.push_back(
"RCT_CRATE_16_RGN_MASK");
59 rgnMaskCols.push_back(
"RCT_CRATE_17_RGN_MASK");
69 edm::LogError(
"L1-O2O") <<
"Problem with L1GctChannelMask energy sum mask for key " << objectKey;
70 return std::unique_ptr<L1GctChannelMask>();
76 std::vector<std::string> esumMaskCols;
77 esumMaskCols.push_back(
"GCT_TET_MASK");
78 esumMaskCols.push_back(
"GCT_MET_MASK");
79 esumMaskCols.push_back(
"GCT_HT_MASK");
80 esumMaskCols.push_back(
"GCT_MHT_MASK");
86 auto masks = std::make_unique<L1GctChannelMask>();
89 for (
int i = 0;
i < 18;
i++) {
90 if ((emMask & (1 <<
i)) != 0)
91 masks->maskEmCrate(
i);
95 for (
unsigned irct = 0; irct < 18; irct++) {
96 std::stringstream rgnCol;
97 rgnCol <<
"RCT_CRATE_" <<
std::dec << irct <<
"_RGN_MASK";
101 for (
unsigned irgn = 0; irgn < 22; ++irgn) {
102 if ((
mask & (1 << irgn)) != 0) {
103 edm::LogError(
"L1-O2O") <<
"Masked region, but no O2O code!";
110 int tetMask, metMask, htMask, mhtMask;
117 if ((tetMask & (1 <<
ieta)) != 0)
118 masks->maskTotalEt(
ieta);
119 if ((metMask & (1 <<
ieta)) != 0)
120 masks->maskMissingEt(
ieta);
121 if ((htMask & (1 <<
ieta)) != 0)
122 masks->maskTotalHt(
ieta);
123 if ((mhtMask & (1 <<
ieta)) != 0)
124 masks->maskMissingHt(
ieta);
const QueryResults singleAttribute(const T &data) const
Log< level::Error, false > LogError
const QueryResults basicQuery(const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="")
bool fillVariable(const std::string &columnName, T &outputVariable) const
l1t::OMDSReader m_omdsReader