#include <DTBtiTrig.h>
Public Member Functions | |
void | addDigi (const DTDigi *digi) |
Add a digi to the list. | |
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 | data () const |
Return the data part. | |
std::vector< const DTDigi * > | digiList () const |
Return the digi list. | |
DTBtiTrig (DTBtiChip *tparent, int, int, int, int, int, int, float *) | |
Constructor. | |
DTBtiTrig () | |
Constructor. | |
DTBtiTrig (DTBtiChip *, int) | |
Constructor. | |
DTBtiTrig (DTBtiChip *, DTBtiTrigData) | |
Constructor. | |
DTBtiTrig (DTBtiChip *tparent, int, int, int, int, int) | |
Constructor. | |
int | eq () const |
Return triggering equation. | |
int | K () const |
Return trigger K parameter. | |
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 | setParent (DTBtiChip *parent) |
Set the parent DTBtiChip. | |
void | setStep (int step) |
Set trigger step. | |
void | setX (int x) |
Set trigger X parameter. | |
int | step () const |
Return trigger step. | |
DTBtiChip * | tParent () const |
Return parent BTI pointer. | |
int | X () const |
Return trigger X parameter. | |
~DTBtiTrig () | |
Destructor. | |
Private Attributes | |
DTBtiTrigData | _data |
std::vector< const DTDigi * > | _digi |
DTBtiChip * | _tparent |
BTI Trigger Data Has pointers to parent BTI and DTDigis which allow algorithm debugging
Definition at line 43 of file DTBtiTrig.h.
DTBtiTrig::DTBtiTrig | ( | ) |
DTBtiTrig::DTBtiTrig | ( | DTBtiChip * | tparent, |
int | step | ||
) |
Constructor.
Definition at line 43 of file DTBtiTrig.cc.
References _data, _digi, clear(), DTBtiChip::id(), DTBtiTrigData::setParent(), and DTBtiTrigData::setStep().
DTBtiTrig::DTBtiTrig | ( | DTBtiChip * | tparent, |
int | code, | ||
int | K, | ||
int | X, | ||
int | step, | ||
int | eq | ||
) |
Constructor.
Definition at line 56 of file DTBtiTrig.cc.
References _data, _digi, DTBtiChip::id(), DTBtiTrigData::setCode(), DTBtiTrigData::setEq(), DTBtiTrigData::setK(), DTBtiTrigData::setParent(), DTBtiTrigData::setStep(), and DTBtiTrigData::setX().
DTBtiTrig::DTBtiTrig | ( | DTBtiChip * | tparent, |
int | code, | ||
int | K, | ||
int | X, | ||
int | step, | ||
int | eq, | ||
int | str, | ||
float * | Keq | ||
) |
Constructor.
Definition at line 73 of file DTBtiTrig.cc.
References _data, _digi, DTBtiChip::id(), DTBtiTrigData::setCode(), DTBtiTrigData::setEq(), DTBtiTrigData::setK(), DTBtiTrigData::setKeq(), DTBtiTrigData::setParent(), DTBtiTrigData::setStep(), DTBtiTrigData::setStrobe(), and DTBtiTrigData::setX().
: _tparent(tparent) { // reserve the appropriate amount of space for vectors _digi.reserve(4); // data part of the trigger _data.setStep(step); _data.setParent(tparent->id()); _data.setCode(code); _data.setK(K); _data.setX(X); _data.setEq(eq); _data.setStrobe(str); _data.setKeq(0,Keq[0]); _data.setKeq(1,Keq[1]); _data.setKeq(2,Keq[2]); _data.setKeq(3,Keq[3]); _data.setKeq(4,Keq[4]); _data.setKeq(5,Keq[5]); }
DTBtiTrig::DTBtiTrig | ( | DTBtiChip * | parent, |
DTBtiTrigData | data | ||
) |
DTBtiTrig::~DTBtiTrig | ( | ) |
void DTBtiTrig::addDigi | ( | const DTDigi * | digi | ) | [inline] |
Add a digi to the list.
Definition at line 71 of file DTBtiTrig.h.
References _digi.
Referenced by DTBtiChip::store().
{ _digi.push_back(digi); }
int DTBtiTrig::btiNumber | ( | ) | const [inline] |
Return parent BTI number.
Definition at line 129 of file DTBtiTrig.h.
References _data, and DTBtiTrigData::btiNumber().
int DTBtiTrig::btiSL | ( | ) | const [inline] |
Return parent BTI superlayer.
Definition at line 134 of file DTBtiTrig.h.
References _data, and DTBtiTrigData::btiSL().
DTChamberId DTBtiTrig::ChamberId | ( | ) | const [inline, virtual] |
Return chamber identifier.
Implements DTTrigData.
Definition at line 109 of file DTBtiTrig.h.
References _data, and DTBtiTrigData::ChamberId().
void DTBtiTrig::clear | ( | void | ) | [inline] |
Clear.
Definition at line 101 of file DTBtiTrig.h.
References _data, _digi, and DTBtiTrigData::clear().
Referenced by DTBtiTrig().
int DTBtiTrig::code | ( | ) | const [inline] |
Return trigger code.
Definition at line 144 of file DTBtiTrig.h.
References _data, and DTBtiTrigData::code().
Referenced by DTBtiChip::doLTS().
DTBtiTrigData DTBtiTrig::data | ( | ) | const [inline] |
Return the data part.
Definition at line 124 of file DTBtiTrig.h.
References _data.
{ return _data; }
std::vector<const DTDigi*> DTBtiTrig::digiList | ( | ) | const [inline] |
Return the digi list.
Definition at line 164 of file DTBtiTrig.h.
References _digi.
{ return _digi; }
int DTBtiTrig::eq | ( | ) | const [inline] |
Return triggering equation.
Definition at line 159 of file DTBtiTrig.h.
References _data, and DTBtiTrigData::eq().
int DTBtiTrig::K | ( | ) | const [inline] |
Return trigger K parameter.
Definition at line 149 of file DTBtiTrig.h.
References _data, and DTBtiTrigData::K().
void DTBtiTrig::print | ( | void | ) | const [inline, virtual] |
Print.
Implements DTTrigData.
Definition at line 114 of file DTBtiTrig.h.
References _data, and DTBtiTrigData::print().
Referenced by DTBtiChip::store().
void DTBtiTrig::setCode | ( | int | code | ) | [inline] |
Set trigger code.
Definition at line 81 of file DTBtiTrig.h.
References _data, and DTBtiTrigData::setCode().
void DTBtiTrig::setEq | ( | int | eq | ) | [inline] |
Set triggering equation.
Definition at line 96 of file DTBtiTrig.h.
References _data, and DTBtiTrigData::setEq().
void DTBtiTrig::setK | ( | int | k | ) | [inline] |
Set trigger K parameter.
Definition at line 86 of file DTBtiTrig.h.
References _data, and DTBtiTrigData::setK().
void DTBtiTrig::setParent | ( | DTBtiChip * | parent | ) | [inline] |
Set the parent DTBtiChip.
Definition at line 66 of file DTBtiTrig.h.
References _tparent, and dbtoconf::parent.
void DTBtiTrig::setStep | ( | int | step | ) | [inline] |
Set trigger step.
Definition at line 76 of file DTBtiTrig.h.
References _data, and DTBtiTrigData::setStep().
void DTBtiTrig::setX | ( | int | x | ) | [inline] |
Set trigger X parameter.
Definition at line 91 of file DTBtiTrig.h.
References _data, and DTBtiTrigData::setX().
int DTBtiTrig::step | ( | ) | const [inline] |
Return trigger step.
Definition at line 139 of file DTBtiTrig.h.
References _data, and DTBtiTrigData::step().
DTBtiChip* DTBtiTrig::tParent | ( | ) | const [inline] |
Return parent BTI pointer.
Definition at line 119 of file DTBtiTrig.h.
References _tparent.
{ return _tparent; }
int DTBtiTrig::X | ( | ) | const [inline] |
Return trigger X parameter.
Definition at line 154 of file DTBtiTrig.h.
References _data, and DTBtiTrigData::X().
DTBtiTrigData DTBtiTrig::_data [private] |
Definition at line 174 of file DTBtiTrig.h.
Referenced by btiNumber(), btiSL(), ChamberId(), clear(), code(), data(), DTBtiTrig(), eq(), K(), print(), setCode(), setEq(), setK(), setStep(), setX(), step(), and X().
std::vector<const DTDigi*> DTBtiTrig::_digi [private] |
Definition at line 177 of file DTBtiTrig.h.
Referenced by addDigi(), clear(), digiList(), and DTBtiTrig().
DTBtiChip* DTBtiTrig::_tparent [private] |
Definition at line 171 of file DTBtiTrig.h.
Referenced by setParent(), and tParent().