CMS 3D CMS Logo

DTBtiTrigData Class Reference

DTBtiChip Trigger Data. More...

#include <L1Trigger/DTBti/interface/DTBtiTrigData.h>

Inheritance diagram for DTBtiTrigData:

DTTrigData

List of all members.

Public Member Functions

int btiNumber () const
 Return parent BTI number.
int btiSL () const
 Return parent BTI superlayer.
DTChamberId ChamberId () const
 Return chamber identifier.
void clear ()
 Clear.
int code () const
 Return trigger code.
 DTBtiTrigData ()
 Constructor.
int eq () const
 Return triggering equation.
int K () const
 Return trigger K parameter.
float Keq (int i) const
 Return triggering K equations.
DTBtiId parentId () const
 Return parent BTI identifier.
void print () const
 Print.
void setCode (int code)
 Set trigger code.
void setEq (int eq)
 Set triggering equation.
void setK (int k)
 Set trigger K parameter.
void setKeq (int num, float Keq)
 Set trigger _Keq.
void setParent (DTBtiId btiid)
 Set the parent BTI identifier.
void setStep (int step)
 Set trigger step.
void setStrobe (int str)
 Set trigger strobe.
void setX (int x)
 Set trigger X parameter.
DTSuperLayerId SLId () const
 Return superlayer identifier.
int step () const
 Return trigger step.
int Strobe () const
 Return trigger strobe.
int X () const
 Return trigger X parameter.
 ~DTBtiTrigData ()
 Destructor.

Private Attributes

DTBtiId _btiid
myint8 _code
myint8 _eq
float _Keq [6]
int _Kval
myint8 _step
int _str
myint8 _Xval


Detailed Description

DTBtiChip Trigger Data.

Date
2007/04/27 08:37:37
Revision
1.2

Author:
C. Grandi, S. Vanini
Modifications: SV 29/I/03 : insert trigger Strobe

Definition at line 41 of file DTBtiTrigData.h.


Constructor & Destructor Documentation

DTBtiTrigData::DTBtiTrigData (  )  [inline]

Constructor.

Definition at line 46 of file DTBtiTrigData.h.

00046 {}

DTBtiTrigData::~DTBtiTrigData (  )  [inline]

Destructor.

Definition at line 49 of file DTBtiTrigData.h.

00049 {}


Member Function Documentation

int DTBtiTrigData::btiNumber (  )  const [inline]

Return parent BTI number.

Definition at line 122 of file DTBtiTrigData.h.

References _btiid, and DTBtiId::bti().

Referenced by DTTSTheta::add_btiT(), DTBtiTrig::btiNumber(), DTTracoChip::DoAdjBtiLts(), DTTracoCand::print(), DTTracoChip::storeCorr(), and DTTracoChip::storeUncorr().

00122                                { 
00123     return _btiid.bti(); 
00124   }

int DTBtiTrigData::btiSL (  )  const [inline]

Return parent BTI superlayer.

Definition at line 127 of file DTBtiTrigData.h.

References _btiid, and DTBtiId::superlayer().

Referenced by DTBtiTrig::btiSL(), DTTracoCand::DTTracoCand(), DTBtiCard::localDirection(), DTBtiCard::localPosition(), DTTracoCand::print(), DTTracoChip::setPV(), and DTTracoChip::storeUncorr().

00127                            { 
00128     return _btiid.superlayer(); 
00129   }

DTChamberId DTBtiTrigData::ChamberId (  )  const [inline, virtual]

Return chamber identifier.

Implements DTTrigData.

Definition at line 104 of file DTBtiTrigData.h.

References _btiid, DTBtiId::sector(), DTBtiId::station(), and DTBtiId::wheel().

Referenced by DTBtiTrig::ChamberId().

00104                                 {
00105     return DTChamberId(_btiid.wheel(),_btiid.station(),_btiid.sector()); 
00106   }

void DTBtiTrigData::clear ( void   )  [inline]

Clear.

Definition at line 92 of file DTBtiTrigData.h.

References _code, _eq, _Keq, _Kval, _step, _str, _Xval, and j.

Referenced by DTBtiTrig::clear().

00092                {
00093     _step = 0;
00094     _eq = 0;
00095     _code = 0; 
00096     _Kval = 9999; 
00097     _Xval = 0;
00098     _str = -1;
00099     for(int j=0;j<6;j++)
00100         _Keq[j]=-1;
00101   }  

int DTBtiTrigData::code ( void   )  const [inline]

Return trigger code.

Definition at line 137 of file DTBtiTrigData.h.

References _code.

Referenced by DTTSTheta::add_btiT(), DTTracoChip::add_btiT(), DTTracoChip::AdjBtiLTSuppressed(), DTBtiTrig::code(), DTTracoChip::DoAdjBtiLts(), print(), DTTracoCand::print(), DTTracoChip::setPV(), DTTracoChip::storeCorr(), and DTTracoChip::storeUncorr().

00137                           { 
00138     return _code; 
00139   }

int DTBtiTrigData::eq (  )  const [inline]

Return triggering equation.

Definition at line 152 of file DTBtiTrigData.h.

References _eq.

Referenced by DTBtiTrig::eq(), print(), DTTracoChip::storeCorr(), and DTTracoChip::storeUncorr().

00152                         { 
00153     return _eq; 
00154   }

int DTBtiTrigData::K (  )  const [inline]

Return trigger K parameter.

Definition at line 142 of file DTBtiTrigData.h.

References _Kval.

Referenced by DTTracoChip::add_btiT(), DTTracoCand::DTTracoCand(), DTBtiTrig::K(), DTBtiCard::localDirection(), print(), DTTracoCand::print(), DTTracoChip::storeCorr(), and DTTracoChip::storeUncorr().

00142                        { 
00143     return _Kval; 
00144   }

float DTBtiTrigData::Keq ( int  i  )  const [inline]

Return triggering K equations.

Definition at line 162 of file DTBtiTrigData.h.

References _Keq.

00162                                 { 
00163     return _Keq[i]; 
00164   }

DTBtiId DTBtiTrigData::parentId (  )  const [inline]

Return parent BTI identifier.

Definition at line 112 of file DTBtiTrigData.h.

References _btiid.

Referenced by DTBtiCard::localDirection(), DTBtiCard::localPosition(), and DTBtiCard::storeTrigger().

00112                                   { 
00113     return _btiid; 
00114   }

void DTBtiTrigData::print ( void   )  const [virtual]

Print.

Implements DTTrigData.

Definition at line 38 of file DTBtiTrigData.cc.

References _btiid, DTBtiId::bti(), code(), GenMuonPlsPt100GeV_cfg::cout, lat::endl(), eq(), K(), DTBtiId::sector(), DTBtiId::station(), step(), DTBtiId::superlayer(), DTBtiId::wheel(), and X().

Referenced by DTTracoChip::add_btiT(), DTBtiCard::localDirection(), DTBtiCard::localPosition(), and DTBtiTrig::print().

00038                            {
00039   cout << "BTI Id=" << " ( " << _btiid.wheel()      ;
00040   cout              << " , " << _btiid.station()    ;
00041   cout              << " , " << _btiid.sector()     ;
00042   cout              << " , " << _btiid.superlayer() ;
00043   cout              << " # " << _btiid.bti()        ;
00044   cout              << " ) " ;
00045   cout << ", K=" << K() << ", X=" << X() << ", equation=" << eq();
00046   cout << ", code=" << code();
00047   cout << " step= " << step();
00048 /*  cout << " strobe= " << Strobe();
00049   cout << " Keq values: " << Keq(0) << " " << Keq(1) << " " << Keq(2) << " " 
00050     << Keq(3) << " " << Keq(4) << " " << Keq(5) << endl;
00051 */
00052   cout << endl;
00053 }

void DTBtiTrigData::setCode ( int  code  )  [inline]

Set trigger code.

Definition at line 62 of file DTBtiTrigData.h.

References _code.

Referenced by DTBtiTrig::DTBtiTrig(), and DTBtiTrig::setCode().

00062                                 {
00063     _code = code;
00064   }

void DTBtiTrigData::setEq ( int  eq  )  [inline]

Set triggering equation.

Definition at line 77 of file DTBtiTrigData.h.

References _eq.

Referenced by DTBtiTrig::DTBtiTrig(), and DTBtiTrig::setEq().

00077                             {
00078     _eq = eq;
00079   }

void DTBtiTrigData::setK ( int  k  )  [inline]

Set trigger K parameter.

Definition at line 67 of file DTBtiTrigData.h.

References _Kval.

Referenced by DTBtiTrig::DTBtiTrig(), and DTBtiTrig::setK().

00067                           {
00068     _Kval = k; 
00069   }

void DTBtiTrigData::setKeq ( int  num,
float  Keq 
) [inline]

Set trigger _Keq.

Definition at line 87 of file DTBtiTrigData.h.

References _Keq.

Referenced by DTBtiTrig::DTBtiTrig().

00087                                          {
00088     _Keq[num] = Keq;
00089   }

void DTBtiTrigData::setParent ( DTBtiId  btiid  )  [inline]

Set the parent BTI identifier.

Definition at line 52 of file DTBtiTrigData.h.

References _btiid.

Referenced by DTBtiTrig::DTBtiTrig().

00052                                        {
00053     _btiid = btiid; 
00054   }  

void DTBtiTrigData::setStep ( int  step  )  [inline]

Set trigger step.

Definition at line 57 of file DTBtiTrigData.h.

References _step.

Referenced by DTBtiTrig::DTBtiTrig(), and DTBtiTrig::setStep().

00057                                 {
00058     _step = step;
00059   }

void DTBtiTrigData::setStrobe ( int  str  )  [inline]

Set trigger strobe.

Definition at line 82 of file DTBtiTrigData.h.

References _str.

Referenced by DTBtiTrig::DTBtiTrig().

00082                                  {
00083     _str = str;
00084   }

void DTBtiTrigData::setX ( int  x  )  [inline]

Set trigger X parameter.

Definition at line 72 of file DTBtiTrigData.h.

References _Xval.

Referenced by DTBtiTrig::DTBtiTrig(), and DTBtiTrig::setX().

00072                           {
00073     _Xval = x;
00074   }

DTSuperLayerId DTBtiTrigData::SLId (  )  const [inline]

Return superlayer identifier.

Definition at line 117 of file DTBtiTrigData.h.

References _btiid, and DTBtiId::SLId().

00117                                      {
00118     return _btiid.SLId(); 
00119   }

int DTBtiTrigData::step (  )  const [inline]

Return trigger step.

Definition at line 132 of file DTBtiTrigData.h.

References _step.

Referenced by print(), DTBtiTrig::step(), and DTBtiCard::storeTrigger().

00132                           { 
00133     return _step; 
00134   }

int DTBtiTrigData::Strobe (  )  const [inline]

Return trigger strobe.

Definition at line 157 of file DTBtiTrigData.h.

References _str.

00157                            { 
00158     return _str; 
00159   }

int DTBtiTrigData::X (  )  const [inline]

Return trigger X parameter.

Definition at line 147 of file DTBtiTrigData.h.

References _Xval.

Referenced by DTTracoCand::DTTracoCand(), DTBtiCard::localPosition(), print(), DTTracoCand::print(), and DTBtiTrig::X().

00147                        { 
00148     return _Xval; 
00149   }


Member Data Documentation

DTBtiId DTBtiTrigData::_btiid [private]

Definition at line 169 of file DTBtiTrigData.h.

Referenced by btiNumber(), btiSL(), ChamberId(), parentId(), print(), setParent(), and SLId().

myint8 DTBtiTrigData::_code [private]

Definition at line 172 of file DTBtiTrigData.h.

Referenced by clear(), code(), and setCode().

myint8 DTBtiTrigData::_eq [private]

Definition at line 177 of file DTBtiTrigData.h.

Referenced by clear(), eq(), and setEq().

float DTBtiTrigData::_Keq[6] [private]

Definition at line 179 of file DTBtiTrigData.h.

Referenced by clear(), Keq(), and setKeq().

int DTBtiTrigData::_Kval [private]

Definition at line 173 of file DTBtiTrigData.h.

Referenced by clear(), K(), and setK().

myint8 DTBtiTrigData::_step [private]

Definition at line 176 of file DTBtiTrigData.h.

Referenced by clear(), setStep(), and step().

int DTBtiTrigData::_str [private]

Definition at line 178 of file DTBtiTrigData.h.

Referenced by clear(), setStrobe(), and Strobe().

myint8 DTBtiTrigData::_Xval [private]

Definition at line 174 of file DTBtiTrigData.h.

Referenced by clear(), setX(), and X().


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