CMS 3D CMS Logo

Public Member Functions | Private Attributes

l1t::OMDSReader::QueryResults Class Reference

#include <OMDSReader.h>

List of all members.

Public Member Functions

const std::vector
< coral::AttributeList > & 
attributeLists () const
const std::vector< std::string > & columnNames () const
template<class T >
bool fillVariable (const std::string &columnName, T &outputVariable) const
template<class T >
bool fillVariable (T &outputVariable) const
template<class T >
bool fillVariableFromRow (const std::string &columnName, int rowNumber, T &outputVariable) const
template<class T >
bool fillVariableFromRow (int rowNumber, T &outputVariable) const
int numberRows () const
bool queryFailed () const
 QueryResults (const std::vector< std::string > &columnNames, const std::vector< coral::AttributeList > &attLists)
 QueryResults ()
virtual ~QueryResults ()

Private Attributes

std::vector< coral::AttributeList > m_attributeLists
std::vector< std::string > m_columnNames

Detailed Description

Definition at line 53 of file OMDSReader.h.


Constructor & Destructor Documentation

l1t::OMDSReader::QueryResults::QueryResults ( ) [inline]

Definition at line 56 of file OMDSReader.h.

{}
l1t::OMDSReader::QueryResults::QueryResults ( const std::vector< std::string > &  columnNames,
const std::vector< coral::AttributeList > &  attLists 
) [inline]

Definition at line 57 of file OMDSReader.h.

virtual l1t::OMDSReader::QueryResults::~QueryResults ( ) [inline, virtual]

Definition at line 61 of file OMDSReader.h.

{}

Member Function Documentation

const std::vector< coral::AttributeList >& l1t::OMDSReader::QueryResults::attributeLists ( ) const [inline]
const std::vector< std::string >& l1t::OMDSReader::QueryResults::columnNames ( ) const [inline]
template<class T >
bool l1t::OMDSReader::QueryResults::fillVariable ( const std::string &  columnName,
T outputVariable 
) const

Definition at line 311 of file OMDSReader.h.

References fillVariableFromRow().

Referenced by l1t::OMDSReader::basicQuery(), l1t::OMDSReader::basicQueryGenericKey(), l1t::OMDSReader::basicQueryView(), RCTObjectKeysOnlineProd::fillObjectKeys(), DTTFRSKeysOnlineProd::fillObjectKeys(), L1GctRSObjectKeysOnlineProd::fillObjectKeys(), DTTFTSCObjectKeysOnlineProd::fillObjectKeys(), L1RCT_RSKeysOnlineProd::fillObjectKeys(), L1MuGMTRSKeysOnlineProd::fillObjectKeys(), L1MuGMTParametersKeysOnlineProd::fillObjectKeys(), L1GctTSCObjectKeysOnlineProd::fillObjectKeys(), CSCTFObjectKeysOnlineProd::fillObjectKeys(), L1MuTriggerScaleKeysOnlineProd::fillObjectKeys(), L1GtPsbSetupConfigOnlineProd::getRequiredValue(), L1GtTscObjectKeysOnlineProd::keyL1GtParameters(), L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskVetoTechTrig(), L1GtTscObjectKeysOnlineProd::keyL1GtTriggerMenu(), PhiScaleHelper::makeBinnedScale(), L1GtPsbSetupConfigOnlineProd::newObject(), L1GctChannelMaskOnlineProd::newObject(), L1GtParametersConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GctJetFinderParamsOnlineProd::newObject(), L1MuCSCPtLutConfigOnlineProd::newObject(), L1CaloEcalScaleConfigOnlineProd::newObject(), DTTFParametersOnlineProd::newObject(), CSCTFConfigOnlineProd::newObject(), L1RCTChannelMaskOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), CSCTFAlignmentOnlineProd::newObject(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1MuGMTChannelMaskOnlineProducer::newObject(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1SubsystemKeysOnlineProd::produce(), and L1GtTriggerMenuConfigOnlineProd::tableMenuGeneralFromDB().

    {
      return fillVariableFromRow( columnName, 0, outputVariable ) ;
    }
template<class T >
bool l1t::OMDSReader::QueryResults::fillVariable ( T outputVariable) const

Definition at line 333 of file OMDSReader.h.

    {
      return fillVariableFromRow( 0, outputVariable ) ;
    }
template<class T >
bool l1t::OMDSReader::QueryResults::fillVariableFromRow ( const std::string &  columnName,
int  rowNumber,
T outputVariable 
) const
template<class T >
bool l1t::OMDSReader::QueryResults::fillVariableFromRow ( int  rowNumber,
T outputVariable 
) const

Definition at line 339 of file OMDSReader.h.

References funct::true.

    {
      // Check index in bounds and only one column
      if( rowNumber < 0 || rowNumber >= numberRows() ||
          m_columnNames.size() != 1 ) return false ;
      const coral::AttributeList& row = m_attributeLists[ rowNumber ] ;
      if( row[ m_columnNames.front() ].isNull() ) return false ;
      outputVariable = row[ m_columnNames.front() ].template data< T >() ;
      return true ;
    }
int l1t::OMDSReader::QueryResults::numberRows ( ) const [inline]

Definition at line 68 of file OMDSReader.h.

References m_attributeLists.

Referenced by l1t::OMDSReader::basicQuery(), l1t::OMDSReader::basicQueryGenericKey(), l1t::OMDSReader::basicQueryView(), L1GtPsbSetupConfigOnlineProd::checkOneLineResult(), RCTObjectKeysOnlineProd::fillObjectKeys(), DTTFRSKeysOnlineProd::fillObjectKeys(), DTTFTSCObjectKeysOnlineProd::fillObjectKeys(), L1GctRSObjectKeysOnlineProd::fillObjectKeys(), L1RCT_RSKeysOnlineProd::fillObjectKeys(), L1MuGMTParametersKeysOnlineProd::fillObjectKeys(), L1MuGMTRSKeysOnlineProd::fillObjectKeys(), CSCTFObjectKeysOnlineProd::fillObjectKeys(), L1GctTSCObjectKeysOnlineProd::fillObjectKeys(), L1MuTriggerScaleKeysOnlineProd::fillObjectKeys(), L1RCTParametersOnlineProd::fillScaleFactors(), L1TOMDSHelper::getBeamConfiguration(), L1TOMDSHelper::getBunchStructure(), L1TOMDSHelper::getInitBunchLumi(), L1TOMDSHelper::getNumberCollidingBunches(), L1TOMDSHelper::getRelativeBunchLumi(), L1TOMDSHelper::getWbMTriggerXsecFits(), L1GtTscObjectKeysOnlineProd::keyL1GtParameters(), L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskVetoTechTrig(), L1GtTscObjectKeysOnlineProd::keyL1GtTriggerMenu(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1CaloHcalScaleConfigOnlineProd::newObject(), DTTFParametersOnlineProd::newObject(), L1CaloEcalScaleConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1SubsystemKeysOnlineProd::produce(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuObjectParametersFromDB(), and L1GtTriggerMenuConfigOnlineProd::tableMenuTechTrigFromDB().

{ return m_attributeLists.size() ; }
bool l1t::OMDSReader::QueryResults::queryFailed ( ) const [inline]

Definition at line 67 of file OMDSReader.h.

References m_attributeLists.

Referenced by L1GtPsbSetupConfigOnlineProd::checkOneLineResult(), RCTObjectKeysOnlineProd::fillObjectKeys(), DTTFRSKeysOnlineProd::fillObjectKeys(), DTTFTSCObjectKeysOnlineProd::fillObjectKeys(), L1GctRSObjectKeysOnlineProd::fillObjectKeys(), L1RCT_RSKeysOnlineProd::fillObjectKeys(), L1MuGMTParametersKeysOnlineProd::fillObjectKeys(), L1MuGMTRSKeysOnlineProd::fillObjectKeys(), CSCTFObjectKeysOnlineProd::fillObjectKeys(), L1GctTSCObjectKeysOnlineProd::fillObjectKeys(), L1TOMDSHelper::getBeamConfiguration(), L1TOMDSHelper::getBunchStructure(), L1TOMDSHelper::getInitBunchLumi(), L1TOMDSHelper::getNumberCollidingBunches(), L1TOMDSHelper::getRelativeBunchLumi(), L1TOMDSHelper::getWbMTriggerXsecFits(), L1GtTscObjectKeysOnlineProd::keyL1GtParameters(), L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskVetoTechTrig(), L1GtTscObjectKeysOnlineProd::keyL1GtTriggerMenu(), L1GctChannelMaskOnlineProd::newObject(), L1GtParametersConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1CaloHcalScaleConfigOnlineProd::newObject(), L1MuCSCPtLutConfigOnlineProd::newObject(), L1GctJetFinderParamsOnlineProd::newObject(), L1RCTParametersOnlineProd::newObject(), CSCTFConfigOnlineProd::newObject(), DTTFParametersOnlineProd::newObject(), CSCTFAlignmentOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1MuGMTChannelMaskOnlineProducer::newObject(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1SubsystemKeysOnlineProd::produce(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuGeneralFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuObjectParametersFromDB(), and L1GtTriggerMenuConfigOnlineProd::tableMenuTechTrigFromDB().

{ return m_attributeLists.size() == 0 ; }

Member Data Documentation

std::vector< coral::AttributeList > l1t::OMDSReader::QueryResults::m_attributeLists [private]

Definition at line 90 of file OMDSReader.h.

Referenced by attributeLists(), numberRows(), and queryFailed().

std::vector< std::string > l1t::OMDSReader::QueryResults::m_columnNames [private]

Definition at line 89 of file OMDSReader.h.

Referenced by columnNames().