CMS 3D CMS Logo

Public Member Functions | Private Attributes

L1GlobalTriggerObjectMapRecord Class Reference

#include <L1GlobalTriggerObjectMapRecord.h>

List of all members.

Public Member Functions

const CombinationsInCondgetCombinationsInCond (const std::string &algoNameVal, const std::string &condNameVal) const
const CombinationsInCondgetCombinationsInCond (const int algoBitNumberVal, const std::string &condNameVal) const
bool getConditionResult (const std::string &algoNameVal, const std::string &condNameVal) const
bool getConditionResult (const int algoBitNumberVal, const std::string &condNameVal) const
const L1GlobalTriggerObjectMapgetObjectMap (const int algoBitNumberVal) const
 return the object map for the algorithm with bit number const int algoBitNumberVal
const L1GlobalTriggerObjectMapgetObjectMap (const std::string &algoNameVal) const
 return the object map for the algorithm algoNameVal
const std::vector
< L1GlobalTriggerObjectMap > & 
gtObjectMap () const
 get / set the vector of object maps
 L1GlobalTriggerObjectMapRecord ()
 constructor(s)
void setGtObjectMap (const std::vector< L1GlobalTriggerObjectMap > &gtObjectMapValue)
void swap (L1GlobalTriggerObjectMapRecord &rh)
void swapGtObjectMap (std::vector< L1GlobalTriggerObjectMap > &gtObjectMapValue)
 ~L1GlobalTriggerObjectMapRecord ()
 destructor

Private Attributes

std::vector
< L1GlobalTriggerObjectMap
m_gtObjectMap

Detailed Description

Description: map trigger objects to algorithms and conditions.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Description: see header file.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Description: see header file.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna
: W. David Dagenhart
Date:
2012/03/02 21:46:28
Revision:
1.1

Definition at line 31 of file L1GlobalTriggerObjectMapRecord.h.


Constructor & Destructor Documentation

L1GlobalTriggerObjectMapRecord::L1GlobalTriggerObjectMapRecord ( ) [inline]

constructor(s)

Definition at line 37 of file L1GlobalTriggerObjectMapRecord.h.

{}
L1GlobalTriggerObjectMapRecord::~L1GlobalTriggerObjectMapRecord ( ) [inline]

destructor

Definition at line 40 of file L1GlobalTriggerObjectMapRecord.h.

{}

Member Function Documentation

const CombinationsInCond * L1GlobalTriggerObjectMapRecord::getCombinationsInCond ( const std::string &  algoNameVal,
const std::string &  condNameVal 
) const

return all the combinations passing the requirements imposed in condition condNameVal from algorithm with name algoNameVal

Definition at line 86 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

{

    for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
            itObj != m_gtObjectMap.end(); ++itObj) {

        if ( itObj->algoName() == algoNameVal ) {

            return itObj->getCombinationsInCond(condNameVal);
            
        }
    }

    // no (algoName, condName) found, return zero pointer!
    edm::LogError("L1GlobalTriggerObjectMapRecord")
    << "\n\n  ERROR: The requested \n    (algorithm name, condition name) = ("
    << algoNameVal << ", " << condNameVal
    << ") \n  does not exists in the trigger menu."
    << "\n  Returning zero pointer for getCombinationsInCond\n\n"
    << std::endl;

    return 0;

}
const CombinationsInCond * L1GlobalTriggerObjectMapRecord::getCombinationsInCond ( const int  algoBitNumberVal,
const std::string &  condNameVal 
) const

return all the combinations passing the requirements imposed in condition condNameVal from algorithm with bit number algoBitNumberVal

Definition at line 114 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

{

    for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
            itObj != m_gtObjectMap.end(); ++itObj) {

        if ( itObj->algoBitNumber() == algoBitNumberVal ) {
            return itObj->getCombinationsInCond(condNameVal);
        }
    }

    // no (algoBitNumber, condName) found, return zero pointer!
    edm::LogError("L1GlobalTriggerObjectMapRecord")
    << "\n\n  ERROR: The requested \n    (algorithm bit number, condition name) = ("
    << algoBitNumberVal << ", " << condNameVal
    << ") \n  does not exists in the trigger menu."
    << "\n  Returning zero pointer for getCombinationsInCond\n\n"
    << std::endl;

    return 0;

}
bool L1GlobalTriggerObjectMapRecord::getConditionResult ( const std::string &  algoNameVal,
const std::string &  condNameVal 
) const

return the result for the condition condNameVal from algorithm with name algoNameVal

Definition at line 140 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

{

    for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
            itObj != m_gtObjectMap.end(); ++itObj) {

        if ( itObj->algoName() == algoNameVal ) {
            return itObj->getConditionResult(condNameVal);
        }
    }

    // no (algoName, condName) found, return false!
    edm::LogError("L1GlobalTriggerObjectMapRecord")
    << "\n\n  ERROR: The requested \n    (algorithm name, condition name) = ("
    << algoNameVal << ", " << condNameVal
    << ") \n  does not exists in the trigger menu."
    << "\n  Returning false for condition result! Unknown result, in fact!\n\n"
    << std::endl;

    return false;

}
bool L1GlobalTriggerObjectMapRecord::getConditionResult ( const int  algoBitNumberVal,
const std::string &  condNameVal 
) const

return the result for the condition condNameVal from algorithm with bit number algoBitNumberVal

Definition at line 166 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

{

    for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itObj = m_gtObjectMap.begin();
            itObj != m_gtObjectMap.end(); ++itObj) {

        if ( itObj->algoBitNumber() == algoBitNumberVal ) {
            return itObj->getConditionResult(condNameVal);
        }
    }

    // no (algoBitNumber, condName) found, return false!
    edm::LogError("L1GlobalTriggerObjectMapRecord")
    << "\n\n  ERROR: The requested \n    (algorithm bit number, condition name) = ("
    << algoBitNumberVal << ", " << condNameVal
    << ") \n  does not exists in the trigger menu."
    << "\n  Returning false for condition result! Unknown result, in fact!\n\n"
    << std::endl;

    return false;

}
const L1GlobalTriggerObjectMap * L1GlobalTriggerObjectMapRecord::getObjectMap ( const std::string &  algoNameVal) const

return the object map for the algorithm algoNameVal

Definition at line 37 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

                                        {

    for (std::vector<L1GlobalTriggerObjectMap>::const_iterator 
        itObj = m_gtObjectMap.begin(); itObj != m_gtObjectMap.end(); ++itObj) {

        if (itObj->algoName() == algoNameVal) {

            return &((*itObj));
        }

    }

    // no algoName found, return zero pointer!
    edm::LogError("L1GlobalTriggerObjectMapRecord")
        << "\n\n  ERROR: The requested algorithm name = " << algoNameVal
        << "\n  does not exists in the trigger menu."
        << "\n  Returning zero pointer for getObjectMap\n\n" << std::endl;

    return 0;

}
const L1GlobalTriggerObjectMap * L1GlobalTriggerObjectMapRecord::getObjectMap ( const int  algoBitNumberVal) const

return the object map for the algorithm with bit number const int algoBitNumberVal

Definition at line 61 of file L1GlobalTriggerObjectMapRecord.cc.

References m_gtObjectMap.

                                      {
 
    for (std::vector<L1GlobalTriggerObjectMap>::const_iterator 
        itObj = m_gtObjectMap.begin(); itObj != m_gtObjectMap.end(); ++itObj) {

        if (itObj->algoBitNumber() == algoBitNumberVal) {

            return &((*itObj));
        }

    }

    // no algoBitNumberVal found, return zero pointer!
    edm::LogError("L1GlobalTriggerObjectMapRecord")
        << "\n\n  ERROR: The requested algorithm with bit number = " << algoBitNumberVal
        << "\n  does not exists in the trigger menu."
        << "\n  Returning zero pointer for getObjectMap\n\n" << std::endl;

    return 0;
    
}
const std::vector<L1GlobalTriggerObjectMap>& L1GlobalTriggerObjectMapRecord::gtObjectMap ( ) const [inline]

get / set the vector of object maps

Definition at line 75 of file L1GlobalTriggerObjectMapRecord.h.

References m_gtObjectMap.

Referenced by L1TauAnalyzer::evalL1Decisions().

    {
        return m_gtObjectMap;
    }
void L1GlobalTriggerObjectMapRecord::setGtObjectMap ( const std::vector< L1GlobalTriggerObjectMap > &  gtObjectMapValue) [inline]

Definition at line 80 of file L1GlobalTriggerObjectMapRecord.h.

References m_gtObjectMap.

    {
        m_gtObjectMap = gtObjectMapValue;
    }
void L1GlobalTriggerObjectMapRecord::swap ( L1GlobalTriggerObjectMapRecord rh) [inline]

Definition at line 42 of file L1GlobalTriggerObjectMapRecord.h.

References m_gtObjectMap.

Referenced by swap().

void L1GlobalTriggerObjectMapRecord::swapGtObjectMap ( std::vector< L1GlobalTriggerObjectMap > &  gtObjectMapValue) [inline]

Definition at line 85 of file L1GlobalTriggerObjectMapRecord.h.

References m_gtObjectMap.

    {
      m_gtObjectMap.swap(gtObjectMapValue);
    }

Member Data Documentation