27 m_partitionNumber(parSet.getParameter<
int>(
"PartitionNumber")) {
39 auto pL1GtTriggerMask = std::make_unique<L1GtTriggerMask>();
51 for (std::vector<std::string>::const_iterator iter =
columns.begin(); iter !=
columns.end(); iter++) {
52 LogTrace(
"L1GtTriggerMaskAlgoTrigConfigOnlineProd") << (*iter) << std::endl;
58 "GT_PARTITION_FINOR_ALGO",
59 "GT_PARTITION_FINOR_ALGO.ID",
64 edm::LogError(
"L1-O2O") <<
"Problem with L1GtTriggerMaskAlgoTrigRcd key:" << objectKey;
65 return pL1GtTriggerMask;
69 int maskSize =
columns.size() - 1;
70 std::vector<bool> trigMaskBool(maskSize,
false);
71 std::vector<unsigned int> trigMask(maskSize, 0);
73 for (
int i = 0;
i < maskSize;
i++) {
74 bool tMask = trigMaskBool[
i];
80 pL1GtTriggerMask->setGtTriggerMask(trigMask);
83 std::ostringstream myCoutStream;
84 pL1GtTriggerMask->print(myCoutStream);
85 LogTrace(
"L1GtTriggerMaskAlgoTrigConfigOnlineProd")
86 <<
"\nThe following L1GtTriggerMaskAlgoTrigRcd record was read from OMDS: \n" 87 << myCoutStream.str() <<
"\n" 91 return pL1GtTriggerMask;
const QueryResults singleAttribute(const T &data) const
~L1GtTriggerMaskAlgoTrigConfigOnlineProd() override
destructor
L1GtTriggerMaskAlgoTrigConfigOnlineProd(const edm::ParameterSet &)
constructor
Log< level::Error, false > LogError
std::vector< std::string > columnNames(const std::string &schemaName, const std::string &tableName)
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="")
int m_partitionNumber
partition number
l1t::OMDSReader m_omdsReader
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
std::unique_ptr< L1GtTriggerMask > newObject(const std::string &objectKey) override
public methods