CMS 3D CMS Logo

L1GtCorrelationTemplate Class Reference

Description: L1 Global Trigger correlation template. More...

#include <CondFormats/L1TObjects/interface/L1GtCorrelationTemplate.h>

Inheritance diagram for L1GtCorrelationTemplate:

L1GtCondition

List of all members.

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 CorrelationParametercorrelationParameter () const
 get / set correlation parameters
 L1GtCorrelationTemplate (const L1GtCorrelationTemplate &)
 copy constructor
 L1GtCorrelationTemplate (const std::string &, const L1GtConditionCategory &, const L1GtConditionCategory &, const int, const int)
 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
 L1GtCorrelationTemplate (const std::string &)
 from condition name
 L1GtCorrelationTemplate ()
 constructor(s) default
L1GtCorrelationTemplateoperator= (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

Classes

struct  CorrelationParameter
 typedef for correlation parameters More...


Detailed Description

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$

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 37 of file L1GtCorrelationTemplate.h.


Constructor & Destructor Documentation

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.

00037         : L1GtCondition()
00038 {
00039 
00040     m_condCategory = CondCorrelation;
00041     m_condType = Type2cor;
00042     m_condChipNr = -1;
00043 
00044     // there are in fact two objects
00045     int nObjects = nrObjects();
00046 
00047     if (nObjects > 0) {
00048         m_objectType.reserve(nObjects);
00049     }
00050 
00051     m_cond0Category = CondNull;
00052     m_cond1Category = CondNull;
00053     m_cond0Index = -1;
00054     m_cond1Index = -1;
00055 
00056 }

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.

00060         : L1GtCondition(cName)
00061 {
00062 
00063     m_condCategory = CondCorrelation;
00064     m_condType = Type2cor;
00065     m_condChipNr = -1;
00066 
00067     // there are in fact two objects
00068     int nObjects = nrObjects();
00069 
00070     if (nObjects > 0) {
00071         m_objectType.reserve(nObjects);
00072     }
00073 
00074     m_cond0Category = CondNull;
00075     m_cond1Category = CondNull;
00076     m_cond0Index = -1;
00077     m_cond1Index = -1;
00078 
00079 }

L1GtCorrelationTemplate::L1GtCorrelationTemplate ( const std::string &  cName,
const L1GtConditionCategory cond0Cat,
const L1GtConditionCategory cond1Cat,
const   int,
const   int 
)

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.

00088                               :
00089     L1GtCondition(cName), 
00090             m_cond0Category(cond0Cat),
00091             m_cond1Category(cond1Cat),
00092             m_cond0Index(cond0Index),
00093             m_cond1Index(cond1index)
00094 
00095 {
00096 
00097     m_condCategory = CondCorrelation;
00098     m_condType = Type2cor; 
00099     m_condChipNr = -1; 
00100 
00101     // there are in fact two objects
00102     int nObjects = nrObjects();
00103 
00104     if (nObjects> 0) {
00105         m_objectType.resize(nObjects);
00106     }
00107 }

L1GtCorrelationTemplate::L1GtCorrelationTemplate ( const L1GtCorrelationTemplate cp  ) 

copy constructor

Definition at line 110 of file L1GtCorrelationTemplate.cc.

References copy().

00111         : L1GtCondition(cp.m_condName)
00112 {
00113     copy(cp);
00114 }

L1GtCorrelationTemplate::~L1GtCorrelationTemplate (  )  [virtual]

destructor

Definition at line 117 of file L1GtCorrelationTemplate.cc.

00118 {
00119     // empty now
00120 }


Member Function Documentation

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

00080                                                              {
00081         return m_cond0Category;
00082     }

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

00092                                         {
00093         return m_cond0Index;
00094     }

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

00084                                                              {
00085         return m_cond1Category;
00086     }

const int L1GtCorrelationTemplate::cond1Index (  )  const [inline]

Definition at line 96 of file L1GtCorrelationTemplate.h.

References m_cond1Index.

Referenced by copy(), and L1GlobalTriggerGTL::run().

00096                                         {
00097         return m_cond1Index;
00098     }

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

copy function for copy constructor and operator=

Definition at line 190 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=().

00191 {
00192 
00193     m_condName     = cp.condName();
00194     m_condCategory = cp.condCategory();
00195     m_condType     = cp.condType();
00196     m_objectType   = cp.objectType();
00197     m_condGEq      = cp.condGEq();
00198     m_condChipNr   = cp.condChipNr();
00199 
00200     m_cond0Category = cp.cond0Category();
00201     m_cond1Category = cp.cond1Category();
00202     m_cond0Index = cp.cond0Index();
00203     m_cond1Index = cp.cond1Index();
00204 
00205     m_correlationParameter = *(cp.correlationParameter());
00206 
00207 }

const CorrelationParameter* L1GtCorrelationTemplate::correlationParameter (  )  const [inline]

get / set correlation parameters

Definition at line 105 of file L1GtCorrelationTemplate.h.

References m_correlationParameter.

Referenced by copy().

00106     {
00107         return &m_correlationParameter;
00108     }

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

assign operator

Definition at line 123 of file L1GtCorrelationTemplate.cc.

References copy().

00124 {
00125 
00126     copy(cp);
00127     return *this;
00128 }

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, lat::endl(), m_cond0Category, m_cond0Index, m_cond1Category, m_cond1Index, m_correlationParameter, and L1GtCondition::print().

Referenced by L1GtCorrelationCondition::print().

00163 {
00164 
00165     myCout << "\n  L1GtCorrelationTemplate print..." << std::endl;
00166 
00167     L1GtCondition::print(myCout);
00168 
00169     myCout << "\n  First sub-condition category:  " << m_cond0Category <<  std::endl;
00170     myCout <<   "  Second sub-condition category: " << m_cond1Category <<  std::endl;
00171 
00172     myCout << "\n  First sub-condition index:  " << m_cond0Index <<  std::endl;
00173     myCout <<   "  Second sub-condition index: " << m_cond1Index <<  std::endl;
00174 
00175     myCout << "\n  Correlation parameters " << "[ hex ]" <<  std::endl;
00176 
00177 
00178     myCout << "    deltaEtaRange      = "
00179     << std::hex << m_correlationParameter.deltaEtaRange << std::endl;
00180     myCout << "    deltaPhiRange      = "
00181     << std::hex << m_correlationParameter.deltaPhiRange << std::endl;
00182     myCout << "    deltaPhiMaxbits    = "
00183     << std::hex << m_correlationParameter.deltaPhiMaxbits << std::endl;
00184 
00185     // reset to decimal output
00186     myCout << std::dec << std::endl;
00187     myCout << "\n  ...end L1GtCorrelationTemplate print." << std::endl;
00188 }

void L1GtCorrelationTemplate::setCond0Category ( const L1GtConditionCategory condCateg  ) 

Definition at line 131 of file L1GtCorrelationTemplate.cc.

References m_cond0Category.

00132                                                 {
00133     
00134     m_cond0Category = condCateg;
00135 }

void L1GtCorrelationTemplate::setCond0Index ( const int condIndex  ) 

Definition at line 145 of file L1GtCorrelationTemplate.cc.

References m_cond0Index.

00145                                                                 {
00146     m_cond0Index = condIndex;
00147 }

void L1GtCorrelationTemplate::setCond1Category ( const L1GtConditionCategory condCateg  ) 

Definition at line 137 of file L1GtCorrelationTemplate.cc.

References m_cond1Category.

00138                                                 {
00139     
00140     m_cond1Category = condCateg;
00141 }

void L1GtCorrelationTemplate::setCond1Index ( const int condIndex  ) 

Definition at line 149 of file L1GtCorrelationTemplate.cc.

References m_cond1Index.

00149                                                                 {
00150     m_cond1Index = condIndex;
00151 }

void L1GtCorrelationTemplate::setCorrelationParameter ( const CorrelationParameter corrParameter  ) 

Definition at line 155 of file L1GtCorrelationTemplate.cc.

References m_correlationParameter.

00156                                                    {
00157 
00158     m_correlationParameter = corrParameter;
00159 
00160 }


Member Data Documentation

L1GtConditionCategory L1GtCorrelationTemplate::m_cond0Category [private]

Definition at line 124 of file L1GtCorrelationTemplate.h.

Referenced by cond0Category(), copy(), L1GtCorrelationTemplate(), print(), and setCond0Category().

int L1GtCorrelationTemplate::m_cond0Index [private]

Definition at line 126 of file L1GtCorrelationTemplate.h.

Referenced by cond0Index(), copy(), L1GtCorrelationTemplate(), print(), and setCond0Index().

L1GtConditionCategory L1GtCorrelationTemplate::m_cond1Category [private]

Definition at line 125 of file L1GtCorrelationTemplate.h.

Referenced by cond1Category(), copy(), L1GtCorrelationTemplate(), print(), and setCond1Category().

int L1GtCorrelationTemplate::m_cond1Index [private]

Definition at line 127 of file L1GtCorrelationTemplate.h.

Referenced by cond1Index(), copy(), L1GtCorrelationTemplate(), print(), and setCond1Index().

CorrelationParameter L1GtCorrelationTemplate::m_correlationParameter [private]

Definition at line 128 of file L1GtCorrelationTemplate.h.

Referenced by copy(), correlationParameter(), print(), and setCorrelationParameter().


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