CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

L1GtBptxCondition Class Reference

#include <L1GtBptxCondition.h>

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

Private Member Functions

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

Private Attributes

bool m_conditionResult
 condition result
const L1GtBptxTemplatem_gtBptxTemplate
 pointer to a L1GtBptxTemplate

Detailed Description

Description: evaluation of a CondBptx 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 L1GtBptxCondition.h.


Constructor & Destructor Documentation

L1GtBptxCondition::L1GtBptxCondition ( )

constructors default

Definition at line 31 of file L1GtBptxCondition.cc.

References m_conditionResult.

L1GtBptxCondition::L1GtBptxCondition ( const L1GtCondition bptxTemplate,
const bool  result 
)

from base template condition (from event setup usually)

Definition at line 39 of file L1GtBptxCondition.cc.

References L1GtConditionEvaluation::m_condMaxNumberObjects.

                           :
            L1GtConditionEvaluation(),
            m_gtBptxTemplate(static_cast<const L1GtBptxTemplate*>(bptxTemplate)),
            m_conditionResult(result) {

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

}
L1GtBptxCondition::L1GtBptxCondition ( const L1GtBptxCondition cp)

Definition at line 65 of file L1GtBptxCondition.cc.

References copy().

L1GtBptxCondition::~L1GtBptxCondition ( ) [virtual]

Definition at line 73 of file L1GtBptxCondition.cc.

                                      {

    // empty

}

Member Function Documentation

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

get / set the result

Definition at line 73 of file L1GtBptxCondition.h.

References m_conditionResult.

Referenced by copy().

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

the core function to check if the condition matches

Implements L1GtConditionEvaluation.

Definition at line 94 of file L1GtBptxCondition.cc.

References m_conditionResult.

                                                      {

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

    //
    return m_conditionResult;

}
const L1GtBptxTemplate* L1GtBptxCondition::gtBptxTemplate ( ) const [inline]

get / set the pointer to a L1GtCondition

Definition at line 66 of file L1GtBptxCondition.h.

References m_gtBptxTemplate.

Referenced by copy().

                                                          {
        return m_gtBptxTemplate;
    }
L1GtBptxCondition & L1GtBptxCondition::operator= ( const L1GtBptxCondition cp)

Definition at line 80 of file L1GtBptxCondition.cc.

References copy().

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

print condition

Reimplemented from L1GtConditionEvaluation.

Definition at line 104 of file L1GtBptxCondition.cc.

References m_gtBptxTemplate, and L1GtBptxTemplate::print().

Referenced by L1GlobalTriggerGTL::run().

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

Definition at line 77 of file L1GtBptxCondition.h.

References m_conditionResult, and query::result.

void L1GtBptxCondition::setGtBptxTemplate ( const L1GtBptxTemplate bptxTemplate)

Definition at line 87 of file L1GtBptxCondition.cc.

References m_gtBptxTemplate.

                                              {

    m_gtBptxTemplate = bptxTemplate;

}

Member Data Documentation

condition result

Definition at line 92 of file L1GtBptxCondition.h.

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

pointer to a L1GtBptxTemplate

Definition at line 89 of file L1GtBptxCondition.h.

Referenced by copy(), gtBptxTemplate(), print(), and setGtBptxTemplate().