CMS 3D CMS Logo

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 override
 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 override
 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 () override
 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::DTBtiTrigData ( )
inline

Constructor.

Definition at line 42 of file DTBtiTrigData.h.

42 {}

◆ ~DTBtiTrigData()

DTBtiTrigData::~DTBtiTrigData ( )
inlineoverride

Destructor.

Definition at line 45 of file DTBtiTrigData.h.

45 {}

Member Function Documentation

◆ btiNumber()

int DTBtiTrigData::btiNumber ( ) const
inline

Return parent BTI number.

Definition at line 96 of file DTBtiTrigData.h.

96 { return _btiid.bti(); }

References _btiid, and DTBtiId::bti().

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

◆ btiSL()

int DTBtiTrigData::btiSL ( ) const
inline

Return parent BTI superlayer.

Definition at line 99 of file DTBtiTrigData.h.

99 { return _btiid.superlayer(); }

References _btiid, and DTBtiId::superlayer().

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

◆ ChamberId()

DTChamberId DTBtiTrigData::ChamberId ( ) const
inlineoverridevirtual

Return chamber identifier.

Implements DTTrigData.

Definition at line 84 of file DTBtiTrigData.h.

84 { return DTChamberId(_btiid.wheel(), _btiid.station(), _btiid.sector()); }

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

Referenced by DTBtiTrig::ChamberId().

◆ clear()

void DTBtiTrigData::clear ( void  )
inline

Clear.

Definition at line 72 of file DTBtiTrigData.h.

72  {
73  _step = 0;
74  _eq = 0;
75  _code = 0;
76  _Kval = 9999;
77  _Xval = 0;
78  _str = -1;
79  for (int j = 0; j < 6; j++)
80  _Keq[j] = -1;
81  }

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

Referenced by DTBtiTrig::clear().

◆ code()

int DTBtiTrigData::code ( ) const
inline

◆ eq()

int DTBtiTrigData::eq ( ) const
inline

Return triggering equation.

Definition at line 114 of file DTBtiTrigData.h.

114 { return _eq; }

References _eq.

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

◆ K()

int DTBtiTrigData::K ( ) const
inline

Return trigger K parameter.

Definition at line 108 of file DTBtiTrigData.h.

108 { return _Kval; }

References _Kval.

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

◆ Keq()

float DTBtiTrigData::Keq ( int  i) const
inline

Return triggering K equations.

Definition at line 120 of file DTBtiTrigData.h.

120 { return _Keq[i]; }

References _Keq, and mps_fire::i.

Referenced by setKeq().

◆ parentId()

DTBtiId DTBtiTrigData::parentId ( ) const
inline

Return parent BTI identifier.

Definition at line 90 of file DTBtiTrigData.h.

90 { return _btiid; }

References _btiid.

Referenced by DTBtiCard::storeTrigger().

◆ print()

void DTBtiTrigData::print ( void  ) const
overridevirtual

Print.

Implements DTTrigData.

Definition at line 37 of file DTBtiTrigData.cc.

37  {
38  cout << "BTI Id="
39  << " ( " << _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 }

References gather_cfg::cout, and X.

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

◆ setCode()

void DTBtiTrigData::setCode ( int  code)
inline

Set trigger code.

Definition at line 54 of file DTBtiTrigData.h.

54 { _code = code; }

References _code, and code().

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

◆ setEq()

void DTBtiTrigData::setEq ( int  eq)
inline

Set triggering equation.

Definition at line 63 of file DTBtiTrigData.h.

63 { _eq = eq; }

References _eq, and eq().

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

◆ setK()

void DTBtiTrigData::setK ( int  k)
inline

Set trigger K parameter.

Definition at line 57 of file DTBtiTrigData.h.

57 { _Kval = k; }

References _Kval, and dqmdumpme::k.

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

◆ setKeq()

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

Set trigger _Keq.

Definition at line 69 of file DTBtiTrigData.h.

69 { _Keq[num] = Keq; }

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

Referenced by DTBtiTrig::DTBtiTrig().

◆ setParent()

void DTBtiTrigData::setParent ( DTBtiId  btiid)
inline

Set the parent BTI identifier.

Definition at line 48 of file DTBtiTrigData.h.

48 { _btiid = btiid; }

References _btiid.

Referenced by DTBtiTrig::DTBtiTrig().

◆ setStep()

void DTBtiTrigData::setStep ( int  step)
inline

Set trigger step.

Definition at line 51 of file DTBtiTrigData.h.

51 { _step = step; }

References _step, and step().

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

◆ setStrobe()

void DTBtiTrigData::setStrobe ( int  str)
inline

Set trigger strobe.

Definition at line 66 of file DTBtiTrigData.h.

66 { _str = str; }

References _str, and str.

Referenced by DTBtiTrig::DTBtiTrig().

◆ setX()

void DTBtiTrigData::setX ( int  x)
inline

Set trigger X parameter.

Definition at line 60 of file DTBtiTrigData.h.

60 { _Xval = x; }

References _Xval, and x.

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

◆ SLId()

DTSuperLayerId DTBtiTrigData::SLId ( ) const
inline

Return superlayer identifier.

Definition at line 93 of file DTBtiTrigData.h.

93 { return _btiid.SLId(); }

References _btiid, and DTBtiId::SLId().

◆ step()

int DTBtiTrigData::step ( ) const
inline

Return trigger step.

Definition at line 102 of file DTBtiTrigData.h.

102 { return _step; }

References _step.

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

◆ Strobe()

int DTBtiTrigData::Strobe ( ) const
inline

Return trigger strobe.

Definition at line 117 of file DTBtiTrigData.h.

117 { return _str; }

References _str.

◆ X()

int DTBtiTrigData::X ( ) const
inline

Return trigger X parameter.

Definition at line 111 of file DTBtiTrigData.h.

111 { return _Xval; }

References _Xval.

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

Member Data Documentation

◆ _btiid

DTBtiId DTBtiTrigData::_btiid
private

Definition at line 124 of file DTBtiTrigData.h.

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

◆ _code

myint8 DTBtiTrigData::_code
private

Definition at line 127 of file DTBtiTrigData.h.

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

◆ _eq

myint8 DTBtiTrigData::_eq
private

Definition at line 132 of file DTBtiTrigData.h.

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

◆ _Keq

float DTBtiTrigData::_Keq[6]
private

Definition at line 134 of file DTBtiTrigData.h.

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

◆ _Kval

int DTBtiTrigData::_Kval
private

Definition at line 128 of file DTBtiTrigData.h.

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

◆ _step

myint8 DTBtiTrigData::_step
private

Definition at line 131 of file DTBtiTrigData.h.

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

◆ _str

int DTBtiTrigData::_str
private

Definition at line 133 of file DTBtiTrigData.h.

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

◆ _Xval

myint8 DTBtiTrigData::_Xval
private

Definition at line 129 of file DTBtiTrigData.h.

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

mps_fire.i
i
Definition: mps_fire.py:428
DTBtiId::wheel
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:55
DTBtiTrigData::code
int code() const
Return trigger code.
Definition: DTBtiTrigData.h:105
DTBtiTrigData::Keq
float Keq(int i) const
Return triggering K equations.
Definition: DTBtiTrigData.h:120
gather_cfg.cout
cout
Definition: gather_cfg.py:144
DTBtiTrigData::K
int K() const
Return trigger K parameter.
Definition: DTBtiTrigData.h:108
DDAxes::x
DTBtiTrigData::_Keq
float _Keq[6]
Definition: DTBtiTrigData.h:134
DTBtiId::sector
int sector() const
Returns sector number.
Definition: DTBtiId.h:59
DTBtiTrigData::_step
myint8 _step
Definition: DTBtiTrigData.h:131
str
#define str(s)
Definition: TestProcessor.cc:53
DTBtiTrigData::step
int step() const
Return trigger step.
Definition: DTBtiTrigData.h:102
dqmdumpme.k
k
Definition: dqmdumpme.py:60
DTBtiTrigData::_code
myint8 _code
Definition: DTBtiTrigData.h:127
DTBtiTrigData::_eq
myint8 _eq
Definition: DTBtiTrigData.h:132
DTBtiTrigData::eq
int eq() const
Return triggering equation.
Definition: DTBtiTrigData.h:114
DTBtiTrigData::_Kval
int _Kval
Definition: DTBtiTrigData.h:128
EgammaValidation_cff.num
num
Definition: EgammaValidation_cff.py:33
DTBtiId::station
int station() const
Returns station number.
Definition: DTBtiId.h:57
DTBtiTrigData::X
int X() const
Return trigger X parameter.
Definition: DTBtiTrigData.h:111
DTBtiTrigData::_Xval
myint8 _Xval
Definition: DTBtiTrigData.h:129
DTBtiTrigData::_btiid
DTBtiId _btiid
Definition: DTBtiTrigData.h:124
DTBtiId::SLId
DTSuperLayerId SLId() const
Returns the superlayer id.
Definition: DTBtiId.h:65
DTBtiTrigData::_str
int _str
Definition: DTBtiTrigData.h:133
DTChamberId
Definition: DTChamberId.h:14
DTBtiId::bti
int bti() const
Returns the bti.
Definition: DTBtiId.h:63
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
DTBtiId::superlayer
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:61