21 #include "boost/lexical_cast.hpp"
30 m_partitionNumber(parSet.getParameter<int> (
"PartitionNumber")) {
49 boost::shared_ptr<L1GtTriggerMask> pL1GtTriggerMask = boost::shared_ptr<L1GtTriggerMask>(
60 gtSchema,
"GT_PARTITION_FINOR_ALGO");
63 for (std::vector<std::string>::const_iterator iter = columns.begin(); iter != columns.end(); iter++) {
64 LogTrace(
"L1GtTriggerMaskAlgoTrigConfigOnlineProd") << ( *iter ) << std::endl;
70 columns, gtSchema,
"GT_PARTITION_FINOR_ALGO",
"GT_PARTITION_FINOR_ALGO.ID",
75 edm::LogError(
"L1-O2O") <<
"Problem with L1GtTriggerMaskAlgoTrigRcd key:" << objectKey;
76 return pL1GtTriggerMask;
80 int maskSize = columns.size() - 1;
81 std::vector<bool> trigMaskBool(maskSize,
false);
82 std::vector<unsigned int> trigMask(maskSize, 0);
84 for (
int i = 0;
i < maskSize;
i++) {
85 bool tMask = trigMaskBool[
i];
91 pL1GtTriggerMask->setGtTriggerMask(trigMask);
94 std::ostringstream myCoutStream;
95 pL1GtTriggerMask->print(myCoutStream);
96 LogTrace(
"L1GtTriggerMaskAlgoTrigConfigOnlineProd")
97 <<
"\nThe following L1GtTriggerMaskAlgoTrigRcd record was read from OMDS: \n"
98 << myCoutStream.str() <<
"\n" << std::endl;
101 return pL1GtTriggerMask;
bool fillVariable(const std::string &columnName, T &outputVariable) const
const QueryResults singleAttribute(const T &data) const
L1GtTriggerMaskAlgoTrigConfigOnlineProd(const edm::ParameterSet &)
constructor
std::vector< std::string > columnNames(const std::string &schemaName, const std::string &tableName)
~L1GtTriggerMaskAlgoTrigConfigOnlineProd()
destructor
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
virtual boost::shared_ptr< L1GtTriggerMask > newObject(const std::string &objectKey)
public methods
#define DEFINE_FWK_EVENTSETUP_MODULE(type)