CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
DTBtiTrigData Class Reference

#include <DTBtiTrigData.h>

Inheritance diagram for DTBtiTrigData:
DTTrigData

Public Member Functions

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

Private Attributes

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

Detailed Description

DTBtiChip Trigger Data

Author
C. Grandi, S. Vanini

Modifications: SV 29/I/03 : insert trigger Strobe

Definition at line 39 of file DTBtiTrigData.h.

Constructor & Destructor Documentation

DTBtiTrigData::DTBtiTrigData ( )
inline

Constructor.

Definition at line 44 of file DTBtiTrigData.h.

44 {}
DTBtiTrigData::~DTBtiTrigData ( )
inline

Destructor.

Definition at line 47 of file DTBtiTrigData.h.

47 {}

Member Function Documentation

int DTBtiTrigData::btiNumber ( ) const
inline

Return parent BTI number.

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

120  {
121  return _btiid.bti();
122  }
int bti() const
Returns the bti.
Definition: DTBtiId.h:75
int DTBtiTrigData::btiSL ( ) const
inline

Return parent BTI superlayer.

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

125  {
126  return _btiid.superlayer();
127  }
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:73
DTChamberId DTBtiTrigData::ChamberId ( ) const
inlinevirtual

Return chamber identifier.

Implements DTTrigData.

Definition at line 102 of file DTBtiTrigData.h.

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

Referenced by DTBtiTrig::ChamberId().

102  {
104  }
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:67
int sector() const
Returns sector number.
Definition: DTBtiId.h:71
int station() const
Returns station number.
Definition: DTBtiId.h:69
void DTBtiTrigData::clear ( void  )
inline

Clear.

Definition at line 90 of file DTBtiTrigData.h.

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

Referenced by DTBtiTrig::clear().

90  {
91  _step = 0;
92  _eq = 0;
93  _code = 0;
94  _Kval = 9999;
95  _Xval = 0;
96  _str = -1;
97  for(int j=0;j<6;j++)
98  _Keq[j]=-1;
99  }
int j
Definition: DBlmapReader.cc:9
int DTBtiTrigData::code ( ) const
inline
int DTBtiTrigData::eq ( ) const
inline

Return triggering equation.

Definition at line 150 of file DTBtiTrigData.h.

References _eq.

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

150  {
151  return _eq;
152  }
int DTBtiTrigData::K ( ) const
inline

Return trigger K parameter.

Definition at line 140 of file DTBtiTrigData.h.

References _Kval.

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

140  {
141  return _Kval;
142  }
float DTBtiTrigData::Keq ( int  i) const
inline

Return triggering K equations.

Definition at line 160 of file DTBtiTrigData.h.

References _Keq, and i.

Referenced by setKeq().

160  {
161  return _Keq[i];
162  }
int i
Definition: DBlmapReader.cc:9
DTBtiId DTBtiTrigData::parentId ( ) const
inline

Return parent BTI identifier.

Definition at line 110 of file DTBtiTrigData.h.

References _btiid.

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

110  {
111  return _btiid;
112  }
void DTBtiTrigData::print ( void  ) const
virtual

Print.

Implements DTTrigData.

Definition at line 38 of file DTBtiTrigData.cc.

References gather_cfg::cout, Vispa.Plugins.EdmBrowser.EdmDataAccessor::eq(), relval_parameters_module::step, and X.

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

38  {
39  cout << "BTI Id=" << " ( " << _btiid.wheel() ;
40  cout << " , " << _btiid.station() ;
41  cout << " , " << _btiid.sector() ;
42  cout << " , " << _btiid.superlayer() ;
43  cout << " # " << _btiid.bti() ;
44  cout << " ) " ;
45  cout << ", K=" << K() << ", X=" << X() << ", equation=" << eq();
46  cout << ", code=" << code();
47  cout << " step= " << step();
48 /* cout << " strobe= " << Strobe();
49  cout << " Keq values: " << Keq(0) << " " << Keq(1) << " " << Keq(2) << " "
50  << Keq(3) << " " << Keq(4) << " " << Keq(5) << endl;
51 */
52  cout << endl;
53 }
int eq() const
Return triggering equation.
int X() const
Return trigger X parameter.
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:67
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:73
int sector() const
Returns sector number.
Definition: DTBtiId.h:71
int station() const
Returns station number.
Definition: DTBtiId.h:69
int bti() const
Returns the bti.
Definition: DTBtiId.h:75
int K() const
Return trigger K parameter.
tuple cout
Definition: gather_cfg.py:121
int step() const
Return trigger step.
int code() const
Return trigger code.
void DTBtiTrigData::setCode ( int  code)
inline

Set trigger code.

Definition at line 60 of file DTBtiTrigData.h.

References _code, and code().

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

60  {
61  _code = code;
62  }
int code() const
Return trigger code.
void DTBtiTrigData::setEq ( int  eq)
inline

Set triggering equation.

Definition at line 75 of file DTBtiTrigData.h.

References _eq, and eq().

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

75  {
76  _eq = eq;
77  }
int eq() const
Return triggering equation.
void DTBtiTrigData::setK ( int  k)
inline

Set trigger K parameter.

Definition at line 65 of file DTBtiTrigData.h.

References _Kval, and relval_steps::k.

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

65  {
66  _Kval = k;
67  }
void DTBtiTrigData::setKeq ( int  num,
float  Keq 
)
inline

Set trigger _Keq.

Definition at line 85 of file DTBtiTrigData.h.

References _Keq, Keq(), and pileupDistInMC::num.

Referenced by DTBtiTrig::DTBtiTrig().

85  {
86  _Keq[num] = Keq;
87  }
float Keq(int i) const
Return triggering K equations.
void DTBtiTrigData::setParent ( DTBtiId  btiid)
inline

Set the parent BTI identifier.

Definition at line 50 of file DTBtiTrigData.h.

References _btiid.

Referenced by lumiQTWidget.LumiCanvas::__init__(), and DTBtiTrig::DTBtiTrig().

50  {
51  _btiid = btiid;
52  }
void DTBtiTrigData::setStep ( int  step)
inline

Set trigger step.

Definition at line 55 of file DTBtiTrigData.h.

References _step, and step().

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

55  {
56  _step = step;
57  }
int step() const
Return trigger step.
void DTBtiTrigData::setStrobe ( int  str)
inline

Set trigger strobe.

Definition at line 80 of file DTBtiTrigData.h.

References _str.

Referenced by DTBtiTrig::DTBtiTrig().

80  {
81  _str = str;
82  }
void DTBtiTrigData::setX ( int  x)
inline

Set trigger X parameter.

Definition at line 70 of file DTBtiTrigData.h.

References _Xval, and x.

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

70  {
71  _Xval = x;
72  }
Definition: DDAxes.h:10
DTSuperLayerId DTBtiTrigData::SLId ( ) const
inline

Return superlayer identifier.

Definition at line 115 of file DTBtiTrigData.h.

References _btiid, and DTBtiId::SLId().

115  {
116  return _btiid.SLId();
117  }
DTSuperLayerId SLId() const
Returns the superlayer id.
Definition: DTBtiId.h:77
int DTBtiTrigData::step ( ) const
inline

Return trigger step.

Definition at line 130 of file DTBtiTrigData.h.

References _step.

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

130  {
131  return _step;
132  }
int DTBtiTrigData::Strobe ( ) const
inline

Return trigger strobe.

Definition at line 155 of file DTBtiTrigData.h.

References _str.

155  {
156  return _str;
157  }
int DTBtiTrigData::X ( ) const
inline

Return trigger X parameter.

Definition at line 145 of file DTBtiTrigData.h.

References _Xval.

Referenced by svgfig.Curve.Sample::__repr__(), DTTracoCand::DTTracoCand(), DTBtiCard::localPosition(), DTTracoCand::print(), and DTBtiTrig::X().

145  {
146  return _Xval;
147  }

Member Data Documentation

DTBtiId DTBtiTrigData::_btiid
private

Definition at line 167 of file DTBtiTrigData.h.

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

myint8 DTBtiTrigData::_code
private

Definition at line 170 of file DTBtiTrigData.h.

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

myint8 DTBtiTrigData::_eq
private

Definition at line 175 of file DTBtiTrigData.h.

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

float DTBtiTrigData::_Keq[6]
private

Definition at line 177 of file DTBtiTrigData.h.

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

int DTBtiTrigData::_Kval
private

Definition at line 171 of file DTBtiTrigData.h.

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

myint8 DTBtiTrigData::_step
private

Definition at line 174 of file DTBtiTrigData.h.

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

int DTBtiTrigData::_str
private

Definition at line 176 of file DTBtiTrigData.h.

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

myint8 DTBtiTrigData::_Xval
private

Definition at line 172 of file DTBtiTrigData.h.

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