CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

L1GtExternalCondition Class Reference

#include <L1GtExternalCondition.h>

Inheritance diagram for L1GtExternalCondition:
L1GtConditionEvaluation

List of all members.

Public Member Functions

const bool conditionResult () const
 get / set the result
const bool evaluateCondition () const
 the core function to check if the condition matches
const L1GtExternalTemplategtExternalTemplate () const
 get / set the pointer to a L1GtCondition
 L1GtExternalCondition (const L1GtCondition *, const bool result)
 from base template condition (from event setup usually)
 L1GtExternalCondition ()
 L1GtExternalCondition (const L1GtExternalCondition &)
L1GtExternalConditionoperator= (const L1GtExternalCondition &)
void print (std::ostream &myCout) const
 print condition
void setConditionResult (const bool result)
void setGtExternalTemplate (const L1GtExternalTemplate *)
virtual ~L1GtExternalCondition ()

Private Member Functions

void copy (const L1GtExternalCondition &cp)
 copy function for copy constructor and operator=

Private Attributes

bool m_conditionResult
 condition result
const L1GtExternalTemplatem_gtExternalTemplate
 pointer to a L1GtExternalTemplate

Detailed Description

Description: evaluation of a CondExternal condition.

Implementation: Simply put the result read in the L1GtConditionEvaluation base class, to be similar with other conditions.

Author:
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 34 of file L1GtExternalCondition.h.


Constructor & Destructor Documentation

L1GtExternalCondition::L1GtExternalCondition ( )

constructors default

Definition at line 31 of file L1GtExternalCondition.cc.

References m_conditionResult.

L1GtExternalCondition::L1GtExternalCondition ( const L1GtCondition externalTemplate,
const bool  result 
)

from base template condition (from event setup usually)

Definition at line 39 of file L1GtExternalCondition.cc.

References L1GtConditionEvaluation::m_condMaxNumberObjects.

                           :
            L1GtConditionEvaluation(),
            m_gtExternalTemplate(static_cast<const L1GtExternalTemplate*>(externalTemplate)),
            m_conditionResult(result) {

    // maximum number of objects received for the evaluation of the condition
    // no object
    m_condMaxNumberObjects = 0;

}
L1GtExternalCondition::L1GtExternalCondition ( const L1GtExternalCondition cp)

Definition at line 65 of file L1GtExternalCondition.cc.

References copy().

L1GtExternalCondition::~L1GtExternalCondition ( ) [virtual]

Definition at line 73 of file L1GtExternalCondition.cc.

                                              {

    // empty

}

Member Function Documentation

const bool L1GtExternalCondition::conditionResult ( ) const [inline]

get / set the result

Definition at line 73 of file L1GtExternalCondition.h.

References m_conditionResult.

Referenced by copy().

                                              {
        return m_conditionResult;
    }
void L1GtExternalCondition::copy ( const L1GtExternalCondition cp) [private]
const bool L1GtExternalCondition::evaluateCondition ( ) const [virtual]

the core function to check if the condition matches

Implements L1GtConditionEvaluation.

Definition at line 94 of file L1GtExternalCondition.cc.

References m_conditionResult.

                                                          {

    // clear the m_combinationsInCond vector
    (*m_combinationsInCond).clear();

    //
    return m_conditionResult;

}
const L1GtExternalTemplate* L1GtExternalCondition::gtExternalTemplate ( ) const [inline]

get / set the pointer to a L1GtCondition

Definition at line 66 of file L1GtExternalCondition.h.

References m_gtExternalTemplate.

Referenced by copy().

                                                                  {
        return m_gtExternalTemplate;
    }
L1GtExternalCondition & L1GtExternalCondition::operator= ( const L1GtExternalCondition cp)

Definition at line 80 of file L1GtExternalCondition.cc.

References copy().

{
    copy(cp);
    return *this;
}
void L1GtExternalCondition::print ( std::ostream &  myCout) const [virtual]

print condition

Reimplemented from L1GtConditionEvaluation.

Definition at line 104 of file L1GtExternalCondition.cc.

References m_gtExternalTemplate, and L1GtExternalTemplate::print().

Referenced by L1GlobalTriggerGTL::run().

void L1GtExternalCondition::setConditionResult ( const bool  result) [inline]

Definition at line 77 of file L1GtExternalCondition.h.

References m_conditionResult, and query::result.

void L1GtExternalCondition::setGtExternalTemplate ( const L1GtExternalTemplate externalTemplate)

Definition at line 87 of file L1GtExternalCondition.cc.

References m_gtExternalTemplate.

                                                      {

    m_gtExternalTemplate = externalTemplate;

}

Member Data Documentation

condition result

Definition at line 92 of file L1GtExternalCondition.h.

Referenced by conditionResult(), copy(), evaluateCondition(), L1GtExternalCondition(), and setConditionResult().

pointer to a L1GtExternalTemplate

Definition at line 89 of file L1GtExternalCondition.h.

Referenced by copy(), gtExternalTemplate(), print(), and setGtExternalTemplate().