CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends
CorrelationWithOverlapRemovalTemplate Class Reference

#include <CorrelationWithOverlapRemovalTemplate.h>

Inheritance diagram for CorrelationWithOverlapRemovalTemplate:
GlobalCondition

Classes

struct  CorrelationWithOverlapRemovalParameter
 typedef for correlation parameters More...
 

Public Member Functions

const l1t::GtConditionCategory cond0Category () const
 get / set the category of the thre sub-conditions More...
 
const int cond0Index () const
 get / set the index of the two sub-conditions in the cor* vector from menu More...
 
const l1t::GtConditionCategory cond1Category () const
 
const int cond1Index () const
 
const l1t::GtConditionCategory cond2Category () const
 
const int cond2Index () const
 
const CorrelationWithOverlapRemovalParametercorrelationParameter () const
 get / set correlation parameters More...
 
 CorrelationWithOverlapRemovalTemplate ()
 
 CorrelationWithOverlapRemovalTemplate (const std::string &)
 from condition name More...
 
 CorrelationWithOverlapRemovalTemplate (const std::string &, const l1t::GtConditionCategory &, const l1t::GtConditionCategory &, const l1t::GtConditionCategory &, const int, const int, const int)
 
 CorrelationWithOverlapRemovalTemplate (const CorrelationWithOverlapRemovalTemplate &)
 copy constructor More...
 
CorrelationWithOverlapRemovalTemplateoperator= (const CorrelationWithOverlapRemovalTemplate &)
 assign operator More...
 
virtual void print (std::ostream &myCout) const
 print the condition More...
 
void setCond0Category (const l1t::GtConditionCategory &)
 
void setCond0Index (const int &)
 
void setCond1Category (const l1t::GtConditionCategory &)
 
void setCond1Index (const int &)
 
void setCond2Category (const l1t::GtConditionCategory &)
 
void setCond2Index (const int &)
 
void setCorrelationWithOverlapRemovalParameter (const CorrelationWithOverlapRemovalParameter &corrParameter)
 
virtual ~CorrelationWithOverlapRemovalTemplate ()
 destructor More...
 
- Public Member Functions inherited from GlobalCondition
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< l1t::GlobalObject > & objectType () const
 get / set the trigger object type(s) in the 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< l1t::GlobalObject > &objType)
 
const bool wsc () const
 
virtual ~GlobalCondition ()
 destructor More...
 

Private Member Functions

void copy (const CorrelationWithOverlapRemovalTemplate &cp)
 copy function for copy constructor and operator= More...
 

Private Attributes

l1t::GtConditionCategory m_cond0Category
 
int m_cond0Index
 
l1t::GtConditionCategory m_cond1Category
 
int m_cond1Index
 
l1t::GtConditionCategory m_cond2Category
 
int m_cond2Index
 
CorrelationWithOverlapRemovalParameter m_correlationParameter
 

Friends

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

Additional Inherited Members

- Protected Attributes inherited from GlobalCondition
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< l1t::GlobalObjectm_objectType
 the trigger object type(s) More...
 

Detailed Description

class CorrealtionTemplate

Description: L1 Global Trigger correlation with overlap removal template. Includes spatial correlation for two objects and removal of overlap with third object

Implementation: <TODO: enter implementation details>

Author
: Vladimir Rekovic

$Date$ $Revision$

Description: L1 Global Trigger correlation template. Includes spatial correlation for two objects of different type.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 36 of file CorrelationWithOverlapRemovalTemplate.h.

Constructor & Destructor Documentation

CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalTemplate ( )

constructor(s) default

Definition at line 34 of file CorrelationWithOverlapRemovalTemplate.cc.

References l1t::CondCorrelationWithOverlapRemoval, l1t::CondNull, m_cond0Category, m_cond0Index, m_cond1Category, m_cond1Index, m_cond2Category, m_cond2Index, GlobalCondition::m_condCategory, GlobalCondition::m_condChipNr, GlobalCondition::m_condType, GlobalCondition::m_objectType, GlobalCondition::nrObjects(), and l1t::Type2corWithOverlapRemoval.

35  : GlobalCondition()
36 {
37 
40  m_condChipNr = -1;
41 
42  // there are in fact three objects
43  int nObjects = nrObjects();
44 
45  if (nObjects > 0) {
46  m_objectType.reserve(nObjects);
47  }
48 
52  m_cond0Index = -1;
53  m_cond1Index = -1;
54  m_cond2Index = -1;
55 
56 }
const int nrObjects() const
get number of trigger objects
int m_condChipNr
condition is located on condition chip m_condChipNr
l1t::GtConditionCategory m_condCategory
the category of the condition
std::vector< l1t::GlobalObject > m_objectType
the trigger object type(s)
l1t::GtConditionType m_condType
the type of the condition (1s, etc)
CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalTemplate ( const std::string &  cName)

from condition name

Definition at line 59 of file CorrelationWithOverlapRemovalTemplate.cc.

References l1t::CondCorrelationWithOverlapRemoval, l1t::CondNull, m_cond0Category, m_cond0Index, m_cond1Category, m_cond1Index, m_cond2Category, m_cond2Index, GlobalCondition::m_condCategory, GlobalCondition::m_condChipNr, GlobalCondition::m_condType, GlobalCondition::m_objectType, GlobalCondition::nrObjects(), and l1t::Type2corWithOverlapRemoval.

60  : GlobalCondition(cName)
61 {
62 
65  m_condChipNr = -1;
66 
67  // there are in fact two objects
68  int nObjects = nrObjects();
69 
70  if (nObjects > 0) {
71  m_objectType.reserve(nObjects);
72  }
73 
77  m_cond0Index = -1;
78  m_cond1Index = -1;
79  m_cond2Index = -1;
80 
81 }
const int nrObjects() const
get number of trigger objects
int m_condChipNr
condition is located on condition chip m_condChipNr
l1t::GtConditionCategory m_condCategory
the category of the condition
std::vector< l1t::GlobalObject > m_objectType
the trigger object type(s)
l1t::GtConditionType m_condType
the type of the condition (1s, etc)
CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalTemplate ( const std::string &  cName,
const l1t::GtConditionCategory cond0Cat,
const l1t::GtConditionCategory cond1Cat,
const l1t::GtConditionCategory cond2Cat,
const int  cond0Index,
const int  cond1index,
const int  cond2index 
)

from condition name, the category of first sub-condition, the category of the second sub-condition, the category of third sub-condition, the index of first sub-condition in the cor* vector, the index of second sub-condition in the cor* vector, the index of second sub-condition in the cor* vector

Definition at line 86 of file CorrelationWithOverlapRemovalTemplate.cc.

References l1t::CondCorrelationWithOverlapRemoval, GlobalCondition::m_condCategory, GlobalCondition::m_condChipNr, GlobalCondition::m_condType, GlobalCondition::m_objectType, GlobalCondition::nrObjects(), and l1t::Type2corWithOverlapRemoval.

92  :
93  GlobalCondition(cName),
94  m_cond0Category(cond0Cat),
95  m_cond1Category(cond1Cat),
96  m_cond2Category(cond2Cat),
98  m_cond1Index(cond1index),
99  m_cond2Index(cond2index)
100 
101 {
102 
105  m_condChipNr = -1;
106 
107  // there are in fact two objects
108  int nObjects = nrObjects();
109 
110  if (nObjects> 0) {
111  m_objectType.resize(nObjects);
112  }
113 }
const int nrObjects() const
get number of trigger objects
int m_condChipNr
condition is located on condition chip m_condChipNr
l1t::GtConditionCategory m_condCategory
the category of the condition
const int cond0Index() const
get / set the index of the two sub-conditions in the cor* vector from menu
std::vector< l1t::GlobalObject > m_objectType
the trigger object type(s)
l1t::GtConditionType m_condType
the type of the condition (1s, etc)
CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalTemplate ( const CorrelationWithOverlapRemovalTemplate cp)

copy constructor

Definition at line 116 of file CorrelationWithOverlapRemovalTemplate.cc.

References copy().

118 {
119  copy(cp);
120 }
std::string m_condName
the name of the condition
void copy(const CorrelationWithOverlapRemovalTemplate &cp)
copy function for copy constructor and operator=
CorrelationWithOverlapRemovalTemplate::~CorrelationWithOverlapRemovalTemplate ( )
virtual

destructor

Definition at line 123 of file CorrelationWithOverlapRemovalTemplate.cc.

124 {
125  // empty now
126 }

Member Function Documentation

const l1t::GtConditionCategory CorrelationWithOverlapRemovalTemplate::cond0Category ( ) const
inline

get / set the category of the thre sub-conditions

Definition at line 115 of file CorrelationWithOverlapRemovalTemplate.h.

References m_cond0Category.

Referenced by copy(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), and l1t::GlobalBoard::runGTL().

115  {
116  return m_cond0Category;
117  }
const int CorrelationWithOverlapRemovalTemplate::cond0Index ( ) const
inline

get / set the index of the two sub-conditions in the cor* vector from menu

Definition at line 132 of file CorrelationWithOverlapRemovalTemplate.h.

References m_cond0Index.

Referenced by copy(), and l1t::GlobalBoard::runGTL().

const l1t::GtConditionCategory CorrelationWithOverlapRemovalTemplate::cond1Category ( ) const
inline
const int CorrelationWithOverlapRemovalTemplate::cond1Index ( ) const
inline
const l1t::GtConditionCategory CorrelationWithOverlapRemovalTemplate::cond2Category ( ) const
inline
const int CorrelationWithOverlapRemovalTemplate::cond2Index ( ) const
inline
void CorrelationWithOverlapRemovalTemplate::copy ( const CorrelationWithOverlapRemovalTemplate cp)
private

copy function for copy constructor and operator=

Definition at line 224 of file CorrelationWithOverlapRemovalTemplate.cc.

References cond0Category(), cond0Index(), cond1Category(), cond1Index(), cond2Category(), cond2Index(), GlobalCondition::condCategory(), GlobalCondition::condChipNr(), GlobalCondition::condGEq(), GlobalCondition::condName(), GlobalCondition::condType(), correlationParameter(), m_cond0Category, m_cond0Index, m_cond1Category, m_cond1Index, m_cond2Category, m_cond2Index, GlobalCondition::m_condCategory, GlobalCondition::m_condChipNr, GlobalCondition::m_condGEq, GlobalCondition::m_condName, GlobalCondition::m_condType, m_correlationParameter, GlobalCondition::m_objectType, and GlobalCondition::objectType().

Referenced by correlationParameter(), CorrelationWithOverlapRemovalTemplate(), and operator=().

225 {
226 
227  m_condName = cp.condName();
229  m_condType = cp.condType();
230  m_objectType = cp.objectType();
231  m_condGEq = cp.condGEq();
232  m_condChipNr = cp.condChipNr();
233 
237  m_cond0Index = cp.cond0Index();
238  m_cond1Index = cp.cond1Index();
239  m_cond2Index = cp.cond2Index();
240 
242 
243 }
const l1t::GtConditionCategory cond1Category() const
bool m_condGEq
the operator used for the condition (>=, =): true for >=
const bool condGEq() const
get / set condition GEq flag
const l1t::GtConditionCategory & condCategory() const
get / set the category of the condition
const l1t::GtConditionType & condType() const
get / set the type of the condition (1s, etc)
const std::vector< l1t::GlobalObject > & objectType() const
get / set the trigger object type(s) in the condition
CorrelationWithOverlapRemovalParameter m_correlationParameter
std::string m_condName
the name of the condition
const int & condChipNr() const
get / set the condition-chip number the condition is located on
const l1t::GtConditionCategory cond0Category() const
get / set the category of the thre sub-conditions
int m_condChipNr
condition is located on condition chip m_condChipNr
l1t::GtConditionCategory m_condCategory
the category of the condition
const std::string & condName() const
get / set condition name
const CorrelationWithOverlapRemovalParameter * correlationParameter() const
get / set correlation parameters
const l1t::GtConditionCategory cond2Category() const
const int cond0Index() const
get / set the index of the two sub-conditions in the cor* vector from menu
std::vector< l1t::GlobalObject > m_objectType
the trigger object type(s)
l1t::GtConditionType m_condType
the type of the condition (1s, etc)
const CorrelationWithOverlapRemovalParameter* CorrelationWithOverlapRemovalTemplate::correlationParameter ( ) const
inline
CorrelationWithOverlapRemovalTemplate & CorrelationWithOverlapRemovalTemplate::operator= ( const CorrelationWithOverlapRemovalTemplate cp)

assign operator

Definition at line 129 of file CorrelationWithOverlapRemovalTemplate.cc.

References copy().

130 {
131 
132  copy(cp);
133  return *this;
134 }
void copy(const CorrelationWithOverlapRemovalTemplate &cp)
copy function for copy constructor and operator=
void CorrelationWithOverlapRemovalTemplate::print ( std::ostream &  myCout) const
virtual

print the condition

Reimplemented from GlobalCondition.

Definition at line 178 of file CorrelationWithOverlapRemovalTemplate.cc.

References CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::chargeCorrelation, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::corrCutType, TauDecayModes::dec, m_cond0Category, m_cond0Index, m_cond1Category, m_cond1Index, m_cond2Category, m_cond2Index, m_correlationParameter, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::maxDRCutValue, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::maxEtaCutValue, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::maxMassCutValue, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::maxOverlapRemovalDRCutValue, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::maxOverlapRemovalEtaCutValue, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::maxOverlapRemovalPhiCutValue, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::maxPhiCutValue, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::minDRCutValue, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::minEtaCutValue, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::minMassCutValue, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::minOverlapRemovalDRCutValue, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::minOverlapRemovalEtaCutValue, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::minOverlapRemovalPhiCutValue, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::minPhiCutValue, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::precDRCut, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::precEtaCut, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::precMassCut, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::precOverlapRemovalDRCut, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::precOverlapRemovalEtaCut, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::precOverlapRemovalPhiCut, CorrelationWithOverlapRemovalTemplate::CorrelationWithOverlapRemovalParameter::precPhiCut, and GlobalCondition::print().

Referenced by correlationParameter(), operator<<(), l1t::TriggerMenuParser::parseCorrelationWithOverlapRemoval(), and l1t::CorrWithOverlapRemovalCondition::print().

179 {
180 
181  myCout << "\n CorrelationWithOverlapRemovalTemplate print..." << std::endl;
182 
183  GlobalCondition::print(myCout);
184 
185  myCout << "\n First sub-condition category: " << m_cond0Category << std::endl;
186  myCout << " Second sub-condition category: " << m_cond1Category << std::endl;
187  myCout << " Third sub-condition category: " << m_cond2Category << std::endl;
188 
189  myCout << "\n First sub-condition index: " << m_cond0Index << std::endl;
190  myCout << " Second sub-condition index: " << m_cond1Index << std::endl;
191  myCout << " Third sub-condition index: " << m_cond2Index << std::endl;
192 
193  myCout << "\n CorrelationWithOverlapRemoval parameters " << "[ hex ]" << std::endl;
194 
195  myCout << " Cut Type: " << m_correlationParameter.corrCutType << std::endl;
196  myCout << " minEtaCutValue = " << std::dec << m_correlationParameter.minEtaCutValue << std::endl;
197  myCout << " maxEtaCutValue = " << std::dec << m_correlationParameter.maxEtaCutValue << std::endl;
198  myCout << " precEtaCut = " << std::dec << m_correlationParameter.precEtaCut << std::endl;
199  myCout << " minPhiCutValue = " << std::dec << m_correlationParameter.minPhiCutValue << std::endl;
200  myCout << " maxPhiCutValue = " << std::dec << m_correlationParameter.maxPhiCutValue << std::endl;
201  myCout << " precPhiCut = " << std::dec << m_correlationParameter.precPhiCut << std::endl;
202  myCout << " minDRCutValue = " << std::dec << m_correlationParameter.minDRCutValue << std::endl;
203  myCout << " maxDRCutValue = " << std::dec << m_correlationParameter.maxDRCutValue << std::endl;
204  myCout << " precDRCut = " << std::dec << m_correlationParameter.precDRCut << std::endl;
205  myCout << " minMassCutValue = " << std::dec << m_correlationParameter.minMassCutValue<< std::endl;
206  myCout << " maxMassCutValue = " << std::dec << m_correlationParameter.maxMassCutValue<< std::endl;
207  myCout << " precMassCut = " << std::dec << m_correlationParameter.precMassCut << std::endl;
208  myCout << " minOverlapRemovalEtaCutValue = " << std::dec << m_correlationParameter.minOverlapRemovalEtaCutValue << std::endl;
209  myCout << " maxOverlapRemovalEtaCutValue = " << std::dec << m_correlationParameter.maxOverlapRemovalEtaCutValue << std::endl;
210  myCout << " precOverlapRemovalEtaCut = " << std::dec << m_correlationParameter.precOverlapRemovalEtaCut << std::endl;
211  myCout << " minOverlapRemovalPhiCutValue = " << std::dec << m_correlationParameter.minOverlapRemovalPhiCutValue << std::endl;
212  myCout << " maxOverlapRemovalPhiCutValue = " << std::dec << m_correlationParameter.maxOverlapRemovalPhiCutValue << std::endl;
213  myCout << " precOverlapRemovalPhiCut = " << std::dec << m_correlationParameter.precOverlapRemovalPhiCut << std::endl;
214  myCout << " minOverlapRemovalDRCutValue = " << std::dec << m_correlationParameter.minOverlapRemovalDRCutValue << std::endl;
215  myCout << " maxOverlapRemovalDRCutValue = " << std::dec << m_correlationParameter.maxOverlapRemovalDRCutValue << std::endl;
216  myCout << " precOverlapRemovalDRCut = " << std::dec << m_correlationParameter.precOverlapRemovalDRCut << std::endl;
217 
218  myCout << " chargeCorrelation = " << std::dec << m_correlationParameter.chargeCorrelation << std::endl;
219 
220  // reset to decimal output
221  myCout << std::dec << std::endl;
222 }
CorrelationWithOverlapRemovalParameter m_correlationParameter
virtual void print(std::ostream &myCout) const
print condition
void CorrelationWithOverlapRemovalTemplate::setCond0Category ( const l1t::GtConditionCategory condCateg)
void CorrelationWithOverlapRemovalTemplate::setCond0Index ( const int &  condIndex)
void CorrelationWithOverlapRemovalTemplate::setCond1Category ( const l1t::GtConditionCategory condCateg)
void CorrelationWithOverlapRemovalTemplate::setCond1Index ( const int &  condIndex)
void CorrelationWithOverlapRemovalTemplate::setCond2Category ( const l1t::GtConditionCategory condCateg)
void CorrelationWithOverlapRemovalTemplate::setCond2Index ( const int &  condIndex)
void CorrelationWithOverlapRemovalTemplate::setCorrelationWithOverlapRemovalParameter ( const CorrelationWithOverlapRemovalParameter corrParameter)

Definition at line 171 of file CorrelationWithOverlapRemovalTemplate.cc.

References m_correlationParameter.

Referenced by correlationParameter(), and l1t::TriggerMenuParser::parseCorrelationWithOverlapRemoval().

172  {
173 
174  m_correlationParameter = corrParameter;
175 
176 }
CorrelationWithOverlapRemovalParameter m_correlationParameter

Friends And Related Function Documentation

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

output stream operator

Definition at line 246 of file CorrelationWithOverlapRemovalTemplate.cc.

Referenced by correlationParameter().

247 {
248  result.print(os);
249  return os;
250 
251 }
virtual void print(std::ostream &myCout) const
print the condition

Member Data Documentation

l1t::GtConditionCategory CorrelationWithOverlapRemovalTemplate::m_cond0Category
private
int CorrelationWithOverlapRemovalTemplate::m_cond0Index
private
l1t::GtConditionCategory CorrelationWithOverlapRemovalTemplate::m_cond1Category
private
int CorrelationWithOverlapRemovalTemplate::m_cond1Index
private
l1t::GtConditionCategory CorrelationWithOverlapRemovalTemplate::m_cond2Category
private
int CorrelationWithOverlapRemovalTemplate::m_cond2Index
private
CorrelationWithOverlapRemovalParameter CorrelationWithOverlapRemovalTemplate::m_correlationParameter
private