CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes | Private Member Functions | Friends
L1GtCondition Class Reference

#include <L1GtCondition.h>

Inheritance diagram for L1GtCondition:
L1GtBptxTemplate L1GtCaloTemplate L1GtCastorTemplate L1GtCorrelationTemplate L1GtEnergySumTemplate L1GtExternalTemplate L1GtHfBitCountsTemplate L1GtHfRingEtSumsTemplate L1GtJetCountsTemplate L1GtMuonTemplate

Public Member Functions

const L1GtConditionCategorycondCategory () const
 get / set the category of the condition More...
 
const int & condChipNr () const
 get / set the condition-chip number the condition is located on More...
 
const bool condGEq () const
 get / set condition GEq flag More...
 
const std::string & condName () const
 get / set condition name More...
 
const L1GtConditionTypecondType () const
 get / set the type of the condition (1s, etc) More...
 
const bool corr () const
 
 L1GtCondition ()
 
 L1GtCondition (const std::string &)
 constructor from condition name More...
 
 L1GtCondition (const std::string &, const L1GtConditionCategory &, const L1GtConditionType &)
 constructor from condition name, category and type More...
 
const int nrObjects () const
 get number of trigger objects More...
 
const std::vector< L1GtObject > & objectType () const
 get / set the trigger object type(s) in the condition More...
 
virtual void print (std::ostream &myCout) const
 print condition More...
 
void setCondCategory (const L1GtConditionCategory &cCategory)
 
void setCondChipNr (const int &cChipNr)
 
void setCondGEq (const bool &cGEq)
 
void setCondName (const std::string &cName)
 
void setCondType (const L1GtConditionType &cType)
 
void setObjectType (const std::vector< L1GtObject > &objType)
 
const bool wsc () const
 
virtual ~L1GtCondition ()
 destructor More...
 

Protected Attributes

L1GtConditionCategory m_condCategory
 the category of the condition More...
 
int m_condChipNr
 condition is located on condition chip m_condChipNr More...
 
bool m_condGEq
 the operator used for the condition (>=, =): true for >= More...
 
std::string m_condName
 the name of the condition More...
 
L1GtConditionType m_condType
 the type of the condition (1s, etc) More...
 
std::vector< L1GtObjectm_objectType
 the trigger object type(s) More...
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 
std::ostream & operator<< (std::ostream &, const L1GtCondition &)
 output stream operator More...
 

Detailed Description

Description: base class for L1 Global Trigger object templates (condition).

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 35 of file L1GtCondition.h.

Constructor & Destructor Documentation

L1GtCondition::L1GtCondition ( )

constructor(s)

Definition at line 28 of file L1GtCondition.cc.

L1GtCondition::L1GtCondition ( const std::string &  cName)

constructor from condition name

Definition at line 40 of file L1GtCondition.cc.

L1GtCondition::L1GtCondition ( const std::string &  cName,
const L1GtConditionCategory cCategory,
const L1GtConditionType cType 
)

constructor from condition name, category and type

Definition at line 50 of file L1GtCondition.cc.

L1GtCondition::~L1GtCondition ( )
virtual

destructor

Definition at line 65 of file L1GtCondition.cc.

Member Function Documentation

const L1GtConditionCategory& L1GtCondition::condCategory ( ) const
inline
const int& L1GtCondition::condChipNr ( ) const
inline

get / set the condition-chip number the condition is located on

Definition at line 112 of file L1GtCondition.h.

References m_condChipNr.

Referenced by L1GtCastorTemplate::copy(), L1GtBptxTemplate::copy(), L1GtExternalTemplate::copy(), L1GtHfRingEtSumsTemplate::copy(), L1GtHfBitCountsTemplate::copy(), L1GtJetCountsTemplate::copy(), L1GtEnergySumTemplate::copy(), L1GtCaloTemplate::copy(), L1GtMuonTemplate::copy(), and L1GtCorrelationTemplate::copy().

113  {
114  return m_condChipNr;
115  }
int m_condChipNr
condition is located on condition chip m_condChipNr
const bool L1GtCondition::condGEq ( ) const
inline
const std::string& L1GtCondition::condName ( ) const
inline
const L1GtConditionType& L1GtCondition::condType ( ) const
inline
const bool L1GtCondition::corr ( ) const

get logic flag for conditions, different type of trigger objects, and with spatial correlations

Definition at line 140 of file L1GtCondition.cc.

const int L1GtCondition::nrObjects ( ) const
const std::vector<L1GtObject>& L1GtCondition::objectType ( ) const
inline
void L1GtCondition::print ( std::ostream &  myCout) const
virtual
template<class Archive >
void L1GtCondition::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void L1GtCondition::setCondCategory ( const L1GtConditionCategory cCategory)
inline

Definition at line 73 of file L1GtCondition.h.

References m_condCategory.

74  {
75  m_condCategory = cCategory;
76  }
L1GtConditionCategory m_condCategory
the category of the condition
void L1GtCondition::setCondChipNr ( const int &  cChipNr)
inline

Definition at line 117 of file L1GtCondition.h.

References m_condChipNr.

118  {
119  m_condChipNr = cChipNr;
120  }
int m_condChipNr
condition is located on condition chip m_condChipNr
void L1GtCondition::setCondGEq ( const bool &  cGEq)
inline

Definition at line 106 of file L1GtCondition.h.

References m_condGEq.

107  {
108  m_condGEq = cGEq;
109  }
bool m_condGEq
the operator used for the condition (&gt;=, =): true for &gt;=
void L1GtCondition::setCondName ( const std::string &  cName)
inline

Definition at line 62 of file L1GtCondition.h.

References m_condName.

63  {
64  m_condName = cName;
65  }
std::string m_condName
the name of the condition
void L1GtCondition::setCondType ( const L1GtConditionType cType)
inline

Definition at line 84 of file L1GtCondition.h.

References m_condType.

85  {
86  m_condType = cType;
87  }
L1GtConditionType m_condType
the type of the condition (1s, etc)
void L1GtCondition::setObjectType ( const std::vector< L1GtObject > &  objType)
inline

Definition at line 95 of file L1GtCondition.h.

References m_objectType.

96  {
97  m_objectType = objType;
98  }
std::vector< L1GtObject > m_objectType
the trigger object type(s)
const bool L1GtCondition::wsc ( ) const

get logic flag for conditions, same type of trigger objects, and with spatial correlations

Definition at line 128 of file L1GtCondition.cc.

Referenced by L1GtCaloTemplate::print(), and L1GtMuonTemplate::print().

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 163 of file L1GtCondition.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 163 of file L1GtCondition.h.

std::ostream& operator<< ( std::ostream &  os,
const L1GtCondition result 
)
friend

output stream operator

Definition at line 423 of file L1GtCondition.cc.

Member Data Documentation

L1GtConditionCategory L1GtCondition::m_condCategory
protected
int L1GtCondition::m_condChipNr
protected
bool L1GtCondition::m_condGEq
protected
std::string L1GtCondition::m_condName
protected
L1GtConditionType L1GtCondition::m_condType
protected
std::vector<L1GtObject> L1GtCondition::m_objectType
protected