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 | Friends
GlobalCondition Class Reference

#include <GlobalCondition.h>

Inheritance diagram for GlobalCondition:
CaloTemplate CorrelationTemplate EnergySumTemplate ExternalTemplate MuonTemplate

Public Member Functions

const l1t::GtConditionCategorycondCategory () 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 int & condRelativeBx () const
 get / set the condition relative bx More...
 
const l1t::GtConditionTypecondType () const
 get / set the type of the condition (1s, etc) More...
 
const bool corr () const
 
 GlobalCondition ()
 
 GlobalCondition (const std::string &)
 constructor from condition name More...
 
 GlobalCondition (const std::string &, const l1t::GtConditionCategory &, const l1t::GtConditionType &)
 constructor from condition name, category and type More...
 
const int nrObjects () const
 get number of trigger objects More...
 
const std::vector< GlobalObject > & 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 l1t::GtConditionCategory &cCategory)
 
void setCondChipNr (const int &cChipNr)
 
void setCondGEq (const bool &cGEq)
 
void setCondName (const std::string &cName)
 
void setCondRelativeBx (const int &cRelativeBx)
 
void setCondType (const l1t::GtConditionType &cType)
 
void setObjectType (const std::vector< GlobalObject > &objType)
 
const bool wsc () const
 
virtual ~GlobalCondition ()
 destructor More...
 

Protected Attributes

l1t::GtConditionCategory 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...
 
int m_condRelativeBx
 
l1t::GtConditionType m_condType
 the type of the condition (1s, etc) More...
 
std::vector< GlobalObjectm_objectType
 the trigger object type(s) More...
 

Friends

std::ostream & operator<< (std::ostream &, const GlobalCondition &)
 output stream operator More...
 

Detailed Description

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

Implementation: <TODO: enter implementation details>

Author
: Brian Winer, OSU Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 35 of file GlobalCondition.h.

Constructor & Destructor Documentation

GlobalCondition::GlobalCondition ( )

constructor(s)

Definition at line 29 of file GlobalCondition.cc.

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

constructor from condition name

Definition at line 41 of file GlobalCondition.cc.

GlobalCondition::GlobalCondition ( const std::string &  cName,
const l1t::GtConditionCategory cCategory,
const l1t::GtConditionType cType 
)

constructor from condition name, category and type

Definition at line 53 of file GlobalCondition.cc.

GlobalCondition::~GlobalCondition ( )
virtual

destructor

Definition at line 69 of file GlobalCondition.cc.

Member Function Documentation

const l1t::GtConditionCategory& GlobalCondition::condCategory ( ) const
inline

get / set the category of the condition

Definition at line 68 of file GlobalCondition.h.

Referenced by ExternalTemplate::copy(), EnergySumTemplate::copy(), and CaloTemplate::copy().

69  {
70  return m_condCategory;
71  }
l1t::GtConditionCategory m_condCategory
the category of the condition
const int& GlobalCondition::condChipNr ( ) const
inline

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

Definition at line 112 of file GlobalCondition.h.

Referenced by ExternalTemplate::copy(), EnergySumTemplate::copy(), and CaloTemplate::copy().

113  {
114  return m_condChipNr;
115  }
int m_condChipNr
condition is located on condition chip m_condChipNr
const bool GlobalCondition::condGEq ( ) const
inline

get / set condition GEq flag

Definition at line 101 of file GlobalCondition.h.

Referenced by ExternalTemplate::copy(), EnergySumTemplate::copy(), and CaloTemplate::copy().

102  {
103  return m_condGEq;
104  }
bool m_condGEq
the operator used for the condition (&gt;=, =): true for &gt;=
const std::string& GlobalCondition::condName ( ) const
inline

get / set condition name

Definition at line 57 of file GlobalCondition.h.

Referenced by ExternalTemplate::copy(), EnergySumTemplate::copy(), and CaloTemplate::copy().

58  {
59  return m_condName;
60  }
std::string m_condName
the name of the condition
const int& GlobalCondition::condRelativeBx ( ) const
inline

get / set the condition relative bx

Definition at line 123 of file GlobalCondition.h.

Referenced by ExternalTemplate::copy(), EnergySumTemplate::copy(), and CaloTemplate::copy().

124  {
125  return m_condRelativeBx;
126  }
const l1t::GtConditionType& GlobalCondition::condType ( ) const
inline

get / set the type of the condition (1s, etc)

Definition at line 79 of file GlobalCondition.h.

Referenced by ExternalTemplate::copy(), EnergySumTemplate::copy(), and CaloTemplate::copy().

80  {
81  return m_condType;
82  }
l1t::GtConditionType m_condType
the type of the condition (1s, etc)
const bool GlobalCondition::corr ( ) const

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

Definition at line 145 of file GlobalCondition.cc.

const int GlobalCondition::nrObjects ( ) const
const std::vector<GlobalObject>& GlobalCondition::objectType ( ) const
inline

get / set the trigger object type(s) in the condition

Definition at line 90 of file GlobalCondition.h.

Referenced by ExternalTemplate::copy(), EnergySumTemplate::copy(), and CaloTemplate::copy().

91  {
92  return m_objectType;
93  }
std::vector< GlobalObject > m_objectType
the trigger object type(s)
void GlobalCondition::print ( std::ostream &  myCout) const
virtual
void GlobalCondition::setCondCategory ( const l1t::GtConditionCategory cCategory)
inline

Definition at line 73 of file GlobalCondition.h.

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

Definition at line 117 of file GlobalCondition.h.

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

Definition at line 106 of file GlobalCondition.h.

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

Definition at line 62 of file GlobalCondition.h.

63  {
64  m_condName = cName;
65  }
std::string m_condName
the name of the condition
void GlobalCondition::setCondRelativeBx ( const int &  cRelativeBx)
inline

Definition at line 128 of file GlobalCondition.h.

129  {
130  m_condRelativeBx = cRelativeBx;
131  }
void GlobalCondition::setCondType ( const l1t::GtConditionType cType)
inline

Definition at line 84 of file GlobalCondition.h.

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

Definition at line 95 of file GlobalCondition.h.

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

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

Definition at line 133 of file GlobalCondition.cc.

Referenced by CaloTemplate::print().

Friends And Related Function Documentation

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

output stream operator

Definition at line 423 of file GlobalCondition.cc.

Member Data Documentation

l1t::GtConditionCategory GlobalCondition::m_condCategory
protected
int GlobalCondition::m_condChipNr
protected

condition is located on condition chip m_condChipNr

Definition at line 171 of file GlobalCondition.h.

Referenced by ExternalTemplate::copy(), EnergySumTemplate::copy(), and CaloTemplate::copy().

bool GlobalCondition::m_condGEq
protected

the operator used for the condition (>=, =): true for >=

Definition at line 168 of file GlobalCondition.h.

Referenced by ExternalTemplate::copy(), EnergySumTemplate::copy(), and CaloTemplate::copy().

std::string GlobalCondition::m_condName
protected

the name of the condition

Definition at line 156 of file GlobalCondition.h.

Referenced by ExternalTemplate::copy(), EnergySumTemplate::copy(), and CaloTemplate::copy().

int GlobalCondition::m_condRelativeBx
protected
l1t::GtConditionType GlobalCondition::m_condType
protected

the type of the condition (1s, etc)

Definition at line 162 of file GlobalCondition.h.

Referenced by ExternalTemplate::copy(), EnergySumTemplate::copy(), CaloTemplate::copy(), and EnergySumTemplate::print().

std::vector<GlobalObject> GlobalCondition::m_objectType
protected