#include <L1GtCorrelationTemplate.h>
Classes | |
struct | CorrelationParameter |
typedef for correlation parameters More... | |
Public Member Functions | |
const L1GtConditionCategory | cond0Category () const |
get / set the category of the two sub-conditions | |
const int | cond0Index () const |
get / set the index of the two sub-conditions in the cor* vector from menu | |
const L1GtConditionCategory | cond1Category () const |
const int | cond1Index () const |
const CorrelationParameter * | correlationParameter () const |
get / set correlation parameters | |
L1GtCorrelationTemplate (const std::string &) | |
from condition name | |
L1GtCorrelationTemplate (const L1GtCorrelationTemplate &) | |
copy constructor | |
L1GtCorrelationTemplate () | |
L1GtCorrelationTemplate (const std::string &, const L1GtConditionCategory &, const L1GtConditionCategory &, const int, const int) | |
L1GtCorrelationTemplate & | operator= (const L1GtCorrelationTemplate &) |
assign operator | |
virtual void | print (std::ostream &myCout) const |
print the condition | |
void | setCond0Category (const L1GtConditionCategory &) |
void | setCond0Index (const int &) |
void | setCond1Category (const L1GtConditionCategory &) |
void | setCond1Index (const int &) |
void | setCorrelationParameter (const CorrelationParameter &corrParameter) |
virtual | ~L1GtCorrelationTemplate () |
destructor | |
Private Member Functions | |
void | copy (const L1GtCorrelationTemplate &cp) |
copy function for copy constructor and operator= | |
Private Attributes | |
L1GtConditionCategory | m_cond0Category |
int | m_cond0Index |
L1GtConditionCategory | m_cond1Category |
int | m_cond1Index |
CorrelationParameter | m_correlationParameter |
Friends | |
std::ostream & | operator<< (std::ostream &, const L1GtCorrelationTemplate &) |
output stream operator |
Description: L1 Global Trigger correlation template. Includes spatial correlation for two objects of different type.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Definition at line 37 of file L1GtCorrelationTemplate.h.
L1GtCorrelationTemplate::L1GtCorrelationTemplate | ( | ) |
constructor(s) default
Definition at line 36 of file L1GtCorrelationTemplate.cc.
References CondCorrelation, CondNull, m_cond0Category, m_cond0Index, m_cond1Category, m_cond1Index, L1GtCondition::m_condCategory, L1GtCondition::m_condChipNr, L1GtCondition::m_condType, L1GtCondition::m_objectType, L1GtCondition::nrObjects(), and Type2cor.
: L1GtCondition() { m_condCategory = CondCorrelation; m_condType = Type2cor; m_condChipNr = -1; // there are in fact two objects int nObjects = nrObjects(); if (nObjects > 0) { m_objectType.reserve(nObjects); } m_cond0Category = CondNull; m_cond1Category = CondNull; m_cond0Index = -1; m_cond1Index = -1; }
L1GtCorrelationTemplate::L1GtCorrelationTemplate | ( | const std::string & | cName | ) |
from condition name
Definition at line 59 of file L1GtCorrelationTemplate.cc.
References CondCorrelation, CondNull, m_cond0Category, m_cond0Index, m_cond1Category, m_cond1Index, L1GtCondition::m_condCategory, L1GtCondition::m_condChipNr, L1GtCondition::m_condType, L1GtCondition::m_objectType, L1GtCondition::nrObjects(), and Type2cor.
: L1GtCondition(cName) { m_condCategory = CondCorrelation; m_condType = Type2cor; m_condChipNr = -1; // there are in fact two objects int nObjects = nrObjects(); if (nObjects > 0) { m_objectType.reserve(nObjects); } m_cond0Category = CondNull; m_cond1Category = CondNull; m_cond0Index = -1; m_cond1Index = -1; }
L1GtCorrelationTemplate::L1GtCorrelationTemplate | ( | const std::string & | cName, |
const L1GtConditionCategory & | cond0Cat, | ||
const L1GtConditionCategory & | cond1Cat, | ||
const int | cond0Index, | ||
const int | cond1index | ||
) |
from condition name, the category of first sub-condition, the category of the second sub-condition, the index of first sub-condition in the cor* vector, the index of second sub-condition in the cor* vector
Definition at line 84 of file L1GtCorrelationTemplate.cc.
References CondCorrelation, L1GtCondition::m_condCategory, L1GtCondition::m_condChipNr, L1GtCondition::m_condType, L1GtCondition::m_objectType, L1GtCondition::nrObjects(), and Type2cor.
: L1GtCondition(cName), m_cond0Category(cond0Cat), m_cond1Category(cond1Cat), m_cond0Index(cond0Index), m_cond1Index(cond1index) { m_condCategory = CondCorrelation; m_condType = Type2cor; m_condChipNr = -1; // there are in fact two objects int nObjects = nrObjects(); if (nObjects> 0) { m_objectType.resize(nObjects); } }
L1GtCorrelationTemplate::L1GtCorrelationTemplate | ( | const L1GtCorrelationTemplate & | cp | ) |
copy constructor
Definition at line 110 of file L1GtCorrelationTemplate.cc.
References copy().
: L1GtCondition(cp.m_condName) { copy(cp); }
L1GtCorrelationTemplate::~L1GtCorrelationTemplate | ( | ) | [virtual] |
const L1GtConditionCategory L1GtCorrelationTemplate::cond0Category | ( | ) | const [inline] |
get / set the category of the two sub-conditions
Definition at line 80 of file L1GtCorrelationTemplate.h.
References m_cond0Category.
Referenced by copy(), L1GtCorrelationCondition::evaluateCondition(), and L1GlobalTriggerGTL::run().
{ return m_cond0Category; }
const int L1GtCorrelationTemplate::cond0Index | ( | ) | const [inline] |
get / set the index of the two sub-conditions in the cor* vector from menu
Definition at line 92 of file L1GtCorrelationTemplate.h.
References m_cond0Index.
Referenced by copy(), and L1GlobalTriggerGTL::run().
{ return m_cond0Index; }
const L1GtConditionCategory L1GtCorrelationTemplate::cond1Category | ( | ) | const [inline] |
Definition at line 84 of file L1GtCorrelationTemplate.h.
References m_cond1Category.
Referenced by copy(), L1GtCorrelationCondition::evaluateCondition(), and L1GlobalTriggerGTL::run().
{ return m_cond1Category; }
const int L1GtCorrelationTemplate::cond1Index | ( | ) | const [inline] |
Definition at line 96 of file L1GtCorrelationTemplate.h.
References m_cond1Index.
Referenced by copy(), and L1GlobalTriggerGTL::run().
{ return m_cond1Index; }
void L1GtCorrelationTemplate::copy | ( | const L1GtCorrelationTemplate & | cp | ) | [private] |
copy function for copy constructor and operator=
Definition at line 189 of file L1GtCorrelationTemplate.cc.
References cond0Category(), cond0Index(), cond1Category(), cond1Index(), L1GtCondition::condCategory(), L1GtCondition::condChipNr(), L1GtCondition::condGEq(), L1GtCondition::condName(), L1GtCondition::condType(), correlationParameter(), m_cond0Category, m_cond0Index, m_cond1Category, m_cond1Index, L1GtCondition::m_condCategory, L1GtCondition::m_condChipNr, L1GtCondition::m_condGEq, L1GtCondition::m_condName, L1GtCondition::m_condType, m_correlationParameter, L1GtCondition::m_objectType, and L1GtCondition::objectType().
Referenced by L1GtCorrelationTemplate(), and operator=().
{ m_condName = cp.condName(); m_condCategory = cp.condCategory(); m_condType = cp.condType(); m_objectType = cp.objectType(); m_condGEq = cp.condGEq(); m_condChipNr = cp.condChipNr(); m_cond0Category = cp.cond0Category(); m_cond1Category = cp.cond1Category(); m_cond0Index = cp.cond0Index(); m_cond1Index = cp.cond1Index(); m_correlationParameter = *(cp.correlationParameter()); }
const CorrelationParameter* L1GtCorrelationTemplate::correlationParameter | ( | ) | const [inline] |
get / set correlation parameters
Definition at line 105 of file L1GtCorrelationTemplate.h.
References m_correlationParameter.
Referenced by copy().
{ return &m_correlationParameter; }
L1GtCorrelationTemplate & L1GtCorrelationTemplate::operator= | ( | const L1GtCorrelationTemplate & | cp | ) |
assign operator
Definition at line 123 of file L1GtCorrelationTemplate.cc.
References copy().
{ copy(cp); return *this; }
void L1GtCorrelationTemplate::print | ( | std::ostream & | myCout | ) | const [virtual] |
print the condition
Reimplemented from L1GtCondition.
Definition at line 162 of file L1GtCorrelationTemplate.cc.
References L1GtCorrelationTemplate::CorrelationParameter::deltaEtaRange, L1GtCorrelationTemplate::CorrelationParameter::deltaPhiMaxbits, L1GtCorrelationTemplate::CorrelationParameter::deltaPhiRange, m_cond0Category, m_cond0Index, m_cond1Category, m_cond1Index, and m_correlationParameter.
Referenced by operator<<(), and L1GtCorrelationCondition::print().
{ myCout << "\n L1GtCorrelationTemplate print..." << std::endl; L1GtCondition::print(myCout); myCout << "\n First sub-condition category: " << m_cond0Category << std::endl; myCout << " Second sub-condition category: " << m_cond1Category << std::endl; myCout << "\n First sub-condition index: " << m_cond0Index << std::endl; myCout << " Second sub-condition index: " << m_cond1Index << std::endl; myCout << "\n Correlation parameters " << "[ hex ]" << std::endl; myCout << " deltaEtaRange = " << std::hex << m_correlationParameter.deltaEtaRange << std::endl; myCout << " deltaPhiRange = " << std::hex << m_correlationParameter.deltaPhiRange << std::endl; myCout << " deltaPhiMaxbits = " << std::hex << m_correlationParameter.deltaPhiMaxbits << std::endl; // reset to decimal output myCout << std::dec << std::endl; }
void L1GtCorrelationTemplate::setCond0Category | ( | const L1GtConditionCategory & | condCateg | ) |
Definition at line 131 of file L1GtCorrelationTemplate.cc.
References m_cond0Category.
Referenced by L1GtTriggerMenuConfigOnlineProd::addCorrelationCondition().
{ m_cond0Category = condCateg; }
void L1GtCorrelationTemplate::setCond0Index | ( | const int & | condIndex | ) |
Definition at line 145 of file L1GtCorrelationTemplate.cc.
References m_cond0Index.
Referenced by L1GtTriggerMenuConfigOnlineProd::addCorrelationCondition().
{ m_cond0Index = condIndex; }
void L1GtCorrelationTemplate::setCond1Category | ( | const L1GtConditionCategory & | condCateg | ) |
Definition at line 137 of file L1GtCorrelationTemplate.cc.
References m_cond1Category.
Referenced by L1GtTriggerMenuConfigOnlineProd::addCorrelationCondition().
{ m_cond1Category = condCateg; }
void L1GtCorrelationTemplate::setCond1Index | ( | const int & | condIndex | ) |
Definition at line 149 of file L1GtCorrelationTemplate.cc.
References m_cond1Index.
Referenced by L1GtTriggerMenuConfigOnlineProd::addCorrelationCondition().
{ m_cond1Index = condIndex; }
void L1GtCorrelationTemplate::setCorrelationParameter | ( | const CorrelationParameter & | corrParameter | ) |
Definition at line 155 of file L1GtCorrelationTemplate.cc.
References m_correlationParameter.
Referenced by L1GtTriggerMenuConfigOnlineProd::addCorrelationCondition().
{ m_correlationParameter = corrParameter; }
std::ostream& operator<< | ( | std::ostream & | os, |
const L1GtCorrelationTemplate & | result | ||
) | [friend] |
output stream operator
Definition at line 209 of file L1GtCorrelationTemplate.cc.
{ result.print(os); return os; }
Definition at line 128 of file L1GtCorrelationTemplate.h.
Referenced by cond0Category(), copy(), L1GtCorrelationTemplate(), print(), and setCond0Category().
int L1GtCorrelationTemplate::m_cond0Index [private] |
Definition at line 130 of file L1GtCorrelationTemplate.h.
Referenced by cond0Index(), copy(), L1GtCorrelationTemplate(), print(), and setCond0Index().
Definition at line 129 of file L1GtCorrelationTemplate.h.
Referenced by cond1Category(), copy(), L1GtCorrelationTemplate(), print(), and setCond1Category().
int L1GtCorrelationTemplate::m_cond1Index [private] |
Definition at line 131 of file L1GtCorrelationTemplate.h.
Referenced by cond1Index(), copy(), L1GtCorrelationTemplate(), print(), and setCond1Index().
Definition at line 132 of file L1GtCorrelationTemplate.h.
Referenced by copy(), correlationParameter(), print(), and setCorrelationParameter().