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.

References _btiid, and DTBtiId::bti().

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

96 { return _btiid.bti(); }
int bti() const
Returns the bti.
Definition: DTBtiId.h:66

◆ btiSL()

int DTBtiTrigData::btiSL ( ) const
inline

Return parent BTI superlayer.

Definition at line 99 of file DTBtiTrigData.h.

References _btiid, and DTBtiId::superlayer().

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

99 { return _btiid.superlayer(); }
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:64

◆ ChamberId()

DTChamberId DTBtiTrigData::ChamberId ( ) const
inlineoverridevirtual

Return chamber identifier.

Implements DTTrigData.

Definition at line 84 of file DTBtiTrigData.h.

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

Referenced by DTBtiTrig::ChamberId().

84 { return DTChamberId(_btiid.wheel(), _btiid.station(), _btiid.sector()); }
int sector() const
Returns sector number.
Definition: DTBtiId.h:62
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:58
int station() const
Returns station number.
Definition: DTBtiId.h:60

◆ clear()

void DTBtiTrigData::clear ( void  )
inline

Clear.

Definition at line 72 of file DTBtiTrigData.h.

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

Referenced by DTBtiTrig::clear().

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  }

◆ code()

int DTBtiTrigData::code ( ) const
inline

◆ eq()

int DTBtiTrigData::eq ( ) const
inline

Return triggering equation.

Definition at line 114 of file DTBtiTrigData.h.

References _eq.

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

114 { return _eq; }

◆ K()

int DTBtiTrigData::K ( ) const
inline

Return trigger K parameter.

Definition at line 108 of file DTBtiTrigData.h.

References _Kval.

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

108 { return _Kval; }

◆ Keq()

float DTBtiTrigData::Keq ( int  i) const
inline

Return triggering K equations.

Definition at line 120 of file DTBtiTrigData.h.

References _Keq, and mps_fire::i.

Referenced by setKeq().

120 { return _Keq[i]; }

◆ parentId()

DTBtiId DTBtiTrigData::parentId ( ) const
inline

Return parent BTI identifier.

Definition at line 90 of file DTBtiTrigData.h.

References _btiid.

Referenced by DTBtiCard::storeTrigger().

90 { return _btiid; }

◆ print()

void DTBtiTrigData::print ( void  ) const
overridevirtual

Print.

Implements DTTrigData.

Definition at line 37 of file DTBtiTrigData.cc.

References gather_cfg::cout, and X.

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

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 }
int sector() const
Returns sector number.
Definition: DTBtiId.h:62
int K() const
Return trigger K parameter.
int bti() const
Returns the bti.
Definition: DTBtiId.h:66
int code() const
Return trigger code.
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:58
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:64
int X() const
Return trigger X parameter.
int station() const
Returns station number.
Definition: DTBtiId.h:60
int eq() const
Return triggering equation.
int step() const
Return trigger step.

◆ setCode()

void DTBtiTrigData::setCode ( int  code)
inline

Set trigger code.

Definition at line 54 of file DTBtiTrigData.h.

References _code, and code().

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

54 { _code = code; }
int code() const
Return trigger code.

◆ setEq()

void DTBtiTrigData::setEq ( int  eq)
inline

Set triggering equation.

Definition at line 63 of file DTBtiTrigData.h.

References _eq, and eq().

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

63 { _eq = eq; }
int eq() const
Return triggering equation.

◆ setK()

void DTBtiTrigData::setK ( int  k)
inline

Set trigger K parameter.

Definition at line 57 of file DTBtiTrigData.h.

References _Kval, and dqmdumpme::k.

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

57 { _Kval = k; }

◆ setKeq()

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

Set trigger _Keq.

Definition at line 69 of file DTBtiTrigData.h.

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

Referenced by DTBtiTrig::DTBtiTrig().

69 { _Keq[num] = Keq; }
float Keq(int i) const
Return triggering K equations.

◆ setParent()

void DTBtiTrigData::setParent ( DTBtiId  btiid)
inline

Set the parent BTI identifier.

Definition at line 48 of file DTBtiTrigData.h.

References _btiid.

Referenced by DTBtiTrig::DTBtiTrig().

48 { _btiid = btiid; }

◆ setStep()

void DTBtiTrigData::setStep ( int  step)
inline

Set trigger step.

Definition at line 51 of file DTBtiTrigData.h.

References _step, and step().

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

51 { _step = step; }
int step() const
Return trigger step.

◆ setStrobe()

void DTBtiTrigData::setStrobe ( int  str)
inline

Set trigger strobe.

Definition at line 66 of file DTBtiTrigData.h.

References _str, and str.

Referenced by DTBtiTrig::DTBtiTrig().

66 { _str = str; }
#define str(s)

◆ setX()

void DTBtiTrigData::setX ( int  x)
inline

Set trigger X parameter.

Definition at line 60 of file DTBtiTrigData.h.

References _Xval, and x.

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

60 { _Xval = x; }

◆ SLId()

DTSuperLayerId DTBtiTrigData::SLId ( ) const
inline

Return superlayer identifier.

Definition at line 93 of file DTBtiTrigData.h.

References _btiid, and DTBtiId::SLId().

93 { return _btiid.SLId(); }
DTSuperLayerId SLId() const
Returns the superlayer id.
Definition: DTBtiId.h:68

◆ step()

int DTBtiTrigData::step ( ) const
inline

Return trigger step.

Definition at line 102 of file DTBtiTrigData.h.

References _step.

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

102 { return _step; }

◆ Strobe()

int DTBtiTrigData::Strobe ( ) const
inline

Return trigger strobe.

Definition at line 117 of file DTBtiTrigData.h.

References _str.

117 { return _str; }

◆ X()

int DTBtiTrigData::X ( ) const
inline

Return trigger X parameter.

Definition at line 111 of file DTBtiTrigData.h.

References _Xval.

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

111 { return _Xval; }

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