22 #include "boost/lexical_cast.hpp"
31 m_partitionNumber(parSet.getParameter<int> (
"PartitionNumber")) {
47 const std::string& objectKey) {
50 boost::shared_ptr<L1GtTriggerMask> pL1GtTriggerMask = boost::shared_ptr<L1GtTriggerMask>(
55 const std::string gtSchema =
"CMS_GT";
62 gtSchema,
"GT_PARTITION_FINOR_TT");
65 for (std::vector<std::string>::const_iterator iter = columns.begin(); iter != columns.end(); iter++) {
66 LogTrace(
"L1GtTriggerMaskTechTrigConfigOnlineProd") << ( *iter ) << std::endl;
72 columns, gtSchema,
"GT_PARTITION_FINOR_TT",
"GT_PARTITION_FINOR_TT.ID",
77 edm::LogError(
"L1-O2O") <<
"Problem with L1GtTriggerMaskTechTrigRcd key:" << objectKey;
78 return pL1GtTriggerMask;
82 int maskSize = columns.size() - 1;
83 std::vector<bool> trigMaskBool(maskSize,
false);
84 std::vector<unsigned int> trigMask(maskSize, 0);
86 for (
int i = 0;
i < maskSize;
i++) {
87 bool tMask = trigMaskBool[
i];
93 pL1GtTriggerMask->setGtTriggerMask(trigMask);
96 std::ostringstream myCoutStream;
97 pL1GtTriggerMask->print(myCoutStream);
98 LogTrace(
"L1GtTriggerMaskTechTrigConfigOnlineProd")
99 <<
"\nThe following L1GtTriggerMaskTechTrigRcd record was read from OMDS: \n"
100 << myCoutStream.str() <<
"\n" << std::endl;
103 return pL1GtTriggerMask;
bool fillVariable(const std::string &columnName, T &outputVariable) const
const QueryResults singleAttribute(const T &data) const
virtual boost::shared_ptr< L1GtTriggerMask > newObject(const std::string &objectKey)
public methods
L1GtTriggerMaskTechTrigConfigOnlineProd(const edm::ParameterSet &)
constructor
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="") const
~L1GtTriggerMaskTechTrigConfigOnlineProd()
destructor
l1t::OMDSReader m_omdsReader
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
int m_partitionNumber
partition number
std::vector< std::string > columnNames(const std::string &schemaName, const std::string &tableName) const