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

Date:
2006/07/19 10:18:31
Revision:
1.1
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.

46 {}
DTBtiTrigData::~DTBtiTrigData ( )
inline

Destructor.

Definition at line 49 of file DTBtiTrigData.h.

49 {}

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

122  {
123  return _btiid.bti();
124  }
int bti() const
Returns the bti.
Definition: DTBtiId.h:75
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().

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

Return chamber identifier.

Implements DTTrigData.

Definition at line 104 of file DTBtiTrigData.h.

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

Referenced by DTBtiTrig::ChamberId().

104  {
106  }
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 92 of file DTBtiTrigData.h.

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

Referenced by DTBtiTrig::clear(), python.Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), python.Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), and python.Vispa.Views.BoxDecayView.BoxDecayView::updateContent().

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

Return triggering equation.

Definition at line 152 of file DTBtiTrigData.h.

References _eq.

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

152  {
153  return _eq;
154  }
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(), DTTracoCand::print(), DTTracoChip::storeCorr(), and DTTracoChip::storeUncorr().

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

Return triggering K equations.

Definition at line 162 of file DTBtiTrigData.h.

References _Keq, and i.

Referenced by setKeq().

162  {
163  return _Keq[i];
164  }
int i
Definition: DBlmapReader.cc:9
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().

112  {
113  return _btiid;
114  }
void DTBtiTrigData::print ( void  ) const
virtual

Print.

Implements DTTrigData.

Definition at line 38 of file DTBtiTrigData.cc.

References gather_cfg::cout, python.Vispa.Plugins.EdmBrowser.EdmDataAccessor::eq(), launcher::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:41
int step() const
Return trigger step.
int code() const
Return trigger code.
void DTBtiTrigData::setCode ( int  code)
inline

Set trigger code.

Definition at line 62 of file DTBtiTrigData.h.

References _code, and code().

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

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

Set triggering equation.

Definition at line 77 of file DTBtiTrigData.h.

References _eq, and eq().

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

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

Set trigger K parameter.

Definition at line 67 of file DTBtiTrigData.h.

References _Kval, and gen::k.

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

67  {
68  _Kval = k;
69  }
int k[5][pyjets_maxn]
void DTBtiTrigData::setKeq ( int  num,
float  Keq 
)
inline

Set trigger _Keq.

Definition at line 87 of file DTBtiTrigData.h.

References _Keq, and Keq().

Referenced by DTBtiTrig::DTBtiTrig().

87  {
88  _Keq[num] = Keq;
89  }
float Keq(int i) const
Return triggering K equations.
long long int num
Definition: procUtils.cc:71
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().

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

Set trigger step.

Definition at line 57 of file DTBtiTrigData.h.

References _step, and step().

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

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

Set trigger strobe.

Definition at line 82 of file DTBtiTrigData.h.

References _str.

Referenced by DTBtiTrig::DTBtiTrig().

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

Set trigger X parameter.

Definition at line 72 of file DTBtiTrigData.h.

References _Xval, and x.

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

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

Return superlayer identifier.

Definition at line 117 of file DTBtiTrigData.h.

References _btiid, and DTBtiId::SLId().

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

Return trigger step.

Definition at line 132 of file DTBtiTrigData.h.

References _step.

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

132  {
133  return _step;
134  }
int DTBtiTrigData::Strobe ( ) const
inline

Return trigger strobe.

Definition at line 157 of file DTBtiTrigData.h.

References _str.

157  {
158  return _str;
159  }
int DTBtiTrigData::X ( ) const
inline

Return trigger X parameter.

Definition at line 147 of file DTBtiTrigData.h.

References _Xval.

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

147  {
148  return _Xval;
149  }

Member Data Documentation

DTBtiId DTBtiTrigData::_btiid
private

Definition at line 169 of file DTBtiTrigData.h.

Referenced by btiNumber(), btiSL(), ChamberId(), parentId(), 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().