21 #include "boost/lexical_cast.hpp"
30 m_partitionNumber(parSet.getParameter<int> (
"PartitionNumber")) {
46 const std::string& objectKey) {
49 boost::shared_ptr<L1GtTriggerMask> pL1GtTriggerMask = boost::shared_ptr<L1GtTriggerMask>(
54 const std::string gtSchema =
"CMS_GT";
61 gtSchema,
"GT_PARTITION_VETO_TT");
64 for (std::vector<std::string>::const_iterator iter = columns.begin(); iter != columns.end(); iter++) {
65 LogTrace(
"L1GtTriggerMaskVetoTechTrigConfigOnlineProd") << ( *iter ) << std::endl;
71 columns, gtSchema,
"GT_PARTITION_VETO_TT",
"GT_PARTITION_VETO_TT.ID",
76 edm::LogError(
"L1-O2O") <<
"Problem with L1GtTriggerMaskVetoTechTrigRcd key:" << objectKey;
77 return pL1GtTriggerMask;
81 int maskSize = columns.size() - 1;
82 std::vector<bool> trigMaskBool(maskSize,
false);
83 std::vector<unsigned int> trigMask(maskSize, 0);
85 for (
int i = 0;
i < maskSize;
i++) {
86 bool tMask = trigMaskBool[
i];
92 pL1GtTriggerMask->setGtTriggerMask(trigMask);
95 std::ostringstream myCoutStream;
96 pL1GtTriggerMask->print(myCoutStream);
97 LogTrace(
"L1GtTriggerMaskVetoTechTrigConfigOnlineProd")
98 <<
"\nThe following L1GtTriggerMaskVetoTechTrigRcd record was read from OMDS: \n"
99 << myCoutStream.str() <<
"\n" << std::endl;
102 return pL1GtTriggerMask;
bool fillVariable(const std::string &columnName, T &outputVariable) const
const QueryResults singleAttribute(const T &data) const
~L1GtTriggerMaskVetoTechTrigConfigOnlineProd()
destructor
virtual boost::shared_ptr< L1GtTriggerMask > newObject(const std::string &objectKey)
public methods
int m_partitionNumber
partition number
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
l1t::OMDSReader m_omdsReader
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
L1GtTriggerMaskVetoTechTrigConfigOnlineProd(const edm::ParameterSet &)
constructor
std::vector< std::string > columnNames(const std::string &schemaName, const std::string &tableName) const