27 m_partitionNumber(parSet.getParameter<int>(
"PartitionNumber")) {
39 auto pL1GtTriggerMask = std::make_unique<L1GtTriggerMask>();
52 for (std::vector<std::string>::const_iterator iter = columns.begin(); iter != columns.end(); iter++) {
53 LogTrace(
"L1GtTriggerMaskTechTrigConfigOnlineProd") << (*iter) << std::endl;
62 edm::LogError(
"L1-O2O") <<
"Problem with L1GtTriggerMaskTechTrigRcd key:" << objectKey;
63 return pL1GtTriggerMask;
67 int maskSize = columns.size() - 1;
68 std::vector<bool> trigMaskBool(maskSize,
false);
69 std::vector<unsigned int> trigMask(maskSize, 0);
71 for (
int i = 0;
i < maskSize;
i++) {
72 bool tMask = trigMaskBool[
i];
78 pL1GtTriggerMask->setGtTriggerMask(trigMask);
81 std::ostringstream myCoutStream;
82 pL1GtTriggerMask->print(myCoutStream);
83 LogTrace(
"L1GtTriggerMaskTechTrigConfigOnlineProd")
84 <<
"\nThe following L1GtTriggerMaskTechTrigRcd record was read from OMDS: \n"
85 << myCoutStream.str() <<
"\n"
89 return pL1GtTriggerMask;
bool fillVariable(const std::string &columnName, T &outputVariable) const
const QueryResults singleAttribute(const T &data) const
Log< level::Error, false > LogError
L1GtTriggerMaskTechTrigConfigOnlineProd(const edm::ParameterSet &)
constructor
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="")
~L1GtTriggerMaskTechTrigConfigOnlineProd() override
destructor
l1t::OMDSReader m_omdsReader
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
int m_partitionNumber
partition number
std::unique_ptr< L1GtTriggerMask > newObject(const std::string &objectKey) override
public methods