CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

L1GtCastorCondition Class Reference

#include <L1GtCastorCondition.h>

Inheritance diagram for L1GtCastorCondition:
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 L1GtCastorTemplategtCastorTemplate () const
 get / set the pointer to a L1GtCondition
 L1GtCastorCondition (const L1GtCondition *, const bool result)
 from base template condition (from event setup usually)
 L1GtCastorCondition ()
 L1GtCastorCondition (const L1GtCastorCondition &)
L1GtCastorConditionoperator= (const L1GtCastorCondition &)
void print (std::ostream &myCout) const
 print condition
void setConditionResult (const bool result)
void setGtCastorTemplate (const L1GtCastorTemplate *)
virtual ~L1GtCastorCondition ()

Private Member Functions

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

Private Attributes

bool m_conditionResult
 condition result
const L1GtCastorTemplatem_gtCastorTemplate
 pointer to a L1GtCastorTemplate

Detailed Description

Description: evaluation of a CondCastor condition.

Implementation: Simply put the result read from CASTOR L1 record 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 L1GtCastorCondition.h.


Constructor & Destructor Documentation

L1GtCastorCondition::L1GtCastorCondition ( )

constructors default

Definition at line 31 of file L1GtCastorCondition.cc.

References m_conditionResult.

L1GtCastorCondition::L1GtCastorCondition ( const L1GtCondition castorTemplate,
const bool  result 
)

from base template condition (from event setup usually)

Definition at line 39 of file L1GtCastorCondition.cc.

References L1GtConditionEvaluation::m_condMaxNumberObjects.

                           :
            L1GtConditionEvaluation(),
            m_gtCastorTemplate(static_cast<const L1GtCastorTemplate*>(castorTemplate)),
            m_conditionResult(result) {

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

}
L1GtCastorCondition::L1GtCastorCondition ( const L1GtCastorCondition cp)

Definition at line 65 of file L1GtCastorCondition.cc.

References copy().

L1GtCastorCondition::~L1GtCastorCondition ( ) [virtual]

Definition at line 73 of file L1GtCastorCondition.cc.

                                          {

    // empty

}

Member Function Documentation

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

get / set the result

Definition at line 73 of file L1GtCastorCondition.h.

References m_conditionResult.

Referenced by copy().

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

the core function to check if the condition matches

Implements L1GtConditionEvaluation.

Definition at line 94 of file L1GtCastorCondition.cc.

References m_conditionResult.

                                                        {

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

    //
    return m_conditionResult;

}
const L1GtCastorTemplate* L1GtCastorCondition::gtCastorTemplate ( ) const [inline]

get / set the pointer to a L1GtCondition

Definition at line 66 of file L1GtCastorCondition.h.

References m_gtCastorTemplate.

Referenced by copy().

                                                              {
        return m_gtCastorTemplate;
    }
L1GtCastorCondition & L1GtCastorCondition::operator= ( const L1GtCastorCondition cp)

Definition at line 80 of file L1GtCastorCondition.cc.

References copy().

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

print condition

Reimplemented from L1GtConditionEvaluation.

Definition at line 104 of file L1GtCastorCondition.cc.

References m_gtCastorTemplate, and L1GtCastorTemplate::print().

Referenced by L1GlobalTriggerGTL::run().

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

Definition at line 77 of file L1GtCastorCondition.h.

References m_conditionResult, and query::result.

void L1GtCastorCondition::setGtCastorTemplate ( const L1GtCastorTemplate castorTemplate)

Definition at line 87 of file L1GtCastorCondition.cc.

References m_gtCastorTemplate.

                                                  {

    m_gtCastorTemplate = castorTemplate;

}

Member Data Documentation

condition result

Definition at line 92 of file L1GtCastorCondition.h.

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

pointer to a L1GtCastorTemplate

Definition at line 89 of file L1GtCastorCondition.h.

Referenced by copy(), gtCastorTemplate(), print(), and setGtCastorTemplate().