CMS 3D CMS Logo

L1GtCastorCondition Class Reference

Description: evaluation of a CondCastor condition. More...

#include <L1Trigger/GlobalTrigger/interface/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 L1GtCastorCondition &)
 L1GtCastorCondition (const L1GtCondition *, const bool result)
 from base template condition (from event setup usually)
 L1GtCastorCondition ()
 constructors default
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.

00031                                          :
00032     L1GtConditionEvaluation() {
00033 
00034     m_conditionResult = false;
00035 
00036 }

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.

00040                            :
00041             L1GtConditionEvaluation(),
00042             m_gtCastorTemplate(static_cast<const L1GtCastorTemplate*>(castorTemplate)),
00043             m_conditionResult(result) {
00044 
00045     // maximum number of objects received for the evaluation of the condition
00046     // no object 
00047     m_condMaxNumberObjects = 0;
00048 
00049 }

L1GtCastorCondition::L1GtCastorCondition ( const L1GtCastorCondition cp  ) 

Definition at line 63 of file L1GtCastorCondition.cc.

References copy().

00063                                                                       :
00064     L1GtConditionEvaluation() {
00065 
00066     copy(cp);
00067 
00068 }

L1GtCastorCondition::~L1GtCastorCondition (  )  [virtual]

Definition at line 71 of file L1GtCastorCondition.cc.

00071                                           {
00072 
00073     // empty
00074 
00075 }


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().

00073                                               {
00074         return m_conditionResult;
00075     }

void L1GtCastorCondition::copy ( const L1GtCastorCondition cp  )  [private]

copy function for copy constructor and operator=

Definition at line 52 of file L1GtCastorCondition.cc.

References conditionResult(), L1GtConditionEvaluation::condLastResult(), L1GtConditionEvaluation::condMaxNumberObjects(), L1GtConditionEvaluation::getCombinationsInCond(), gtCastorTemplate(), L1GtConditionEvaluation::m_combinationsInCond, m_conditionResult, L1GtConditionEvaluation::m_condLastResult, L1GtConditionEvaluation::m_condMaxNumberObjects, and m_gtCastorTemplate.

Referenced by L1GtCastorCondition(), and operator=().

const bool L1GtCastorCondition::evaluateCondition (  )  const [virtual]

the core function to check if the condition matches

Implements L1GtConditionEvaluation.

Definition at line 92 of file L1GtCastorCondition.cc.

References m_conditionResult.

00092                                                         {
00093 
00094     // clear the m_combinationsInCond vector
00095     (*m_combinationsInCond).clear();
00096 
00097     // 
00098     return m_conditionResult;
00099 
00100 }

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().

00066                                                               {
00067         return m_gtCastorTemplate;
00068     }

L1GtCastorCondition & L1GtCastorCondition::operator= ( const L1GtCastorCondition cp  ) 

Definition at line 78 of file L1GtCastorCondition.cc.

References copy().

00079 {
00080     copy(cp);
00081     return *this;
00082 }

void L1GtCastorCondition::print ( std::ostream &  myCout  )  const [virtual]

print condition

Reimplemented from L1GtConditionEvaluation.

Definition at line 102 of file L1GtCastorCondition.cc.

References m_gtCastorTemplate, L1GtCastorTemplate::print(), and L1GtConditionEvaluation::print().

Referenced by L1GlobalTriggerGTL::run().

00102                                                         {
00103 
00104     m_gtCastorTemplate->print(myCout);
00105     L1GtConditionEvaluation::print(myCout);
00106 
00107 }

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

Definition at line 77 of file L1GtCastorCondition.h.

References m_conditionResult.

00077                                                       {
00078         m_conditionResult = result;
00079     }

void L1GtCastorCondition::setGtCastorTemplate ( const L1GtCastorTemplate castorTemplate  ) 

Definition at line 85 of file L1GtCastorCondition.cc.

References m_gtCastorTemplate.

00086                                                   {
00087 
00088     m_gtCastorTemplate = castorTemplate;
00089 
00090 }


Member Data Documentation

bool L1GtCastorCondition::m_conditionResult [private]

condition result

Definition at line 92 of file L1GtCastorCondition.h.

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

const L1GtCastorTemplate* L1GtCastorCondition::m_gtCastorTemplate [private]

pointer to a L1GtCastorTemplate

Definition at line 89 of file L1GtCastorCondition.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:42 2009 for CMSSW by  doxygen 1.5.4