#include <DTTSCand.h>
Public Member Functions | |
void | clear () |
Clear the trigger. More... | |
void | clearBits () |
Clear (set to 1) the quality bits (but first/second track bit) More... | |
void | clearBitsBkmod () |
Clear (set to 1) all the bits (back-up mode) More... | |
const DTConfigTSPhi * | config () const |
Configuration set. More... | |
unsigned | dataword () const |
Return an uint16 with the content of the data word (for debugging) More... | |
DTTSCand (DTTSS *, const DTTracoTrigData *, int, int) | |
Constructor. More... | |
DTTSCand () | |
Constructor. More... | |
DTTSCand (const DTTSCand &tscand) | |
Constructor. More... | |
int | is0H () const |
Return if H outer. More... | |
int | is0L () const |
Return if L outer. More... | |
int | isCarry () const |
Return the carry bit. More... | |
int | isCorr () const |
Return correlation bit. More... | |
int | isFirst () const |
Return the first/second track bit. More... | |
int | isH0 () const |
Return if H inner. More... | |
int | isHHorHL () const |
Return if HH or HL. More... | |
int | isHtrig () const |
Return HTRIG/LTRIG bit. More... | |
int | isInner () const |
Return Inner/Outer bit. More... | |
int | isL0 () const |
Return if L inner. More... | |
int | isLH () const |
Return if LH. More... | |
int | isLL () const |
Return if LL. More... | |
bool | operator< (const DTTSCand &c) const |
Operator < used for sorting. More... | |
bool | operator<= (const DTTSCand &c) const |
Operator <= used for sorting. More... | |
DTTSCand & | operator= (const DTTSCand &tscand) |
Assignment operator. More... | |
void | print () const |
Print the trigger. More... | |
void | resetCarry () |
Reset the carry bit. More... | |
void | setBitsBkmod () |
Set the bits for TSM back-up mode. More... | |
void | setBitsTsm () |
Set the quality bits for DTTSM analysis. More... | |
void | setBitsTss () |
Set the quality bits for DTTSS analysis. More... | |
void | setSecondTrack () |
Set the first track bit to second track (used for carry) More... | |
int | TcPos () const |
Retrun the TRACO position inside the TSS. More... | |
int | tracoNumber () const |
Return the TRACO number. More... | |
const DTTracoTrigData * | tracoTr () const |
Return associated TRACO trigger. More... | |
DTTSS * | tss () const |
Return the DTTSS. More... | |
int | tssNumber () const |
Return the DTTSS number. More... | |
~DTTSCand () | |
Destructor. More... | |
Private Attributes | |
BitArray< 15 > | _dataword |
int | _isCarry |
int | _tcPos |
const DTTracoTrigData * | _tctrig |
DTTSS * | _tss |
A Trigger Server Candidate
Definition at line 35 of file DTTSCand.h.
DTTSCand::DTTSCand | ( | DTTSS * | tss, |
const DTTracoTrigData * | tctrig, | ||
int | ifs, | ||
int | pos | ||
) |
Constructor.
Definition at line 36 of file DTTSCand.cc.
References _dataword, BitArray< N >::one(), and BitArray< N >::unset().
DTTSCand::DTTSCand | ( | ) |
DTTSCand::DTTSCand | ( | const DTTSCand & | tscand | ) |
DTTSCand::~DTTSCand | ( | ) |
|
inline |
Clear the trigger.
Definition at line 71 of file DTTSCand.cc.
References _dataword, _isCarry, _tctrig, and BitArray< N >::one().
|
inline |
Clear (set to 1) the quality bits (but first/second track bit)
Definition at line 72 of file DTTSCand.h.
References _dataword, and BitArray< N >::assign().
Referenced by setBitsTsm(), and setBitsTss().
|
inline |
Clear (set to 1) all the bits (back-up mode)
Definition at line 75 of file DTTSCand.h.
References _dataword, and BitArray< N >::assign().
Referenced by setBitsBkmod().
|
inline |
Configuration set.
Definition at line 81 of file DTTSCand.h.
References _tss, and DTTSS::config().
Referenced by setBitsTsm(), and setBitsTss().
|
inline |
Return an uint16 with the content of the data word (for debugging)
Definition at line 132 of file DTTSCand.h.
References _dataword, and BitArray< N >::dataWord().
Referenced by DTTSS::sortTSS1(), and DTTSS::sortTSS2().
|
inline |
Return if H outer.
Definition at line 124 of file DTTSCand.h.
References _tctrig, DTTracoTrigData::pvCode(), and DTTracoTrigData::pvCorr().
|
inline |
Return if L outer.
Definition at line 129 of file DTTSCand.h.
References _tctrig, DTTracoTrigData::pvCode(), and DTTracoTrigData::pvCorr().
|
inline |
Return the carry bit.
Definition at line 110 of file DTTSCand.h.
References _isCarry.
Referenced by setBitsTsm(), setBitsTss(), and DTTSS::sortTSS2().
|
inline |
Return correlation bit.
Definition at line 107 of file DTTSCand.h.
References _tctrig, and DTTracoTrigData::pvCorr().
Referenced by print(), DTTSPhi::runTSPhi(), setBitsTsm(), setBitsTss(), DTTSM::sortTSM1(), DTTSM::sortTSM2(), DTTSS::sortTSS1(), and DTTSS::sortTSS2().
|
inline |
Return the first/second track bit.
Definition at line 99 of file DTTSCand.h.
References _dataword, and BitArray< N >::element().
Referenced by print(), DTTSS::sortTSS1(), and DTTSS::sortTSS2().
|
inline |
Return if H inner.
Definition at line 121 of file DTTSCand.h.
References _tctrig, DTTracoTrigData::pvCode(), and DTTracoTrigData::pvCorr().
|
inline |
Return if HH or HL.
Definition at line 113 of file DTTSCand.h.
References _tctrig, DTTracoTrigData::pvCode(), and DTTracoTrigData::pvCorr().
|
inline |
Return HTRIG/LTRIG bit.
Definition at line 102 of file DTTSCand.h.
References _tctrig, and DTTracoTrigData::pvCode().
Referenced by print(), DTTSPhi::runTSPhi(), setBitsTsm(), and setBitsTss().
|
inline |
Return Inner/Outer bit.
Definition at line 104 of file DTTSCand.h.
References _tctrig, and DTTracoTrigData::pvCode().
Referenced by print(), DTTSPhi::runTSPhi(), setBitsTsm(), setBitsTss(), DTTSM::sortTSM1(), DTTSM::sortTSM2(), DTTSS::sortTSS1(), and DTTSS::sortTSS2().
|
inline |
Return if L inner.
Definition at line 127 of file DTTSCand.h.
References _tctrig, DTTracoTrigData::pvCode(), and DTTracoTrigData::pvCorr().
|
inline |
Return if LH.
Definition at line 116 of file DTTSCand.h.
References _tctrig, DTTracoTrigData::pvCode(), and DTTracoTrigData::pvCorr().
|
inline |
Return if LL.
Definition at line 119 of file DTTSCand.h.
References _tctrig, DTTracoTrigData::pvCode(), and DTTracoTrigData::pvCorr().
|
inline |
|
inline |
void DTTSCand::print | ( | void | ) | const |
Print the trigger.
Definition at line 265 of file DTTSCand.cc.
References _dataword, gather_cfg::cout, isCorr(), isFirst(), isHtrig(), isInner(), BitArray< N >::print(), DTTracoTrigData::pvK(), and tracoTr().
|
inline |
void DTTSCand::setBitsBkmod | ( | ) |
Set the bits for TSM back-up mode.
Definition at line 150 of file DTTSCand.cc.
References _dataword, _tctrig, a0, testProducerWithPsetDescEmpty_cfi::a2, clearBitsBkmod(), DTTracoTrigData::qdec(), and BitArray< N >::unset().
Referenced by DTTSM::sortTSM1(), and DTTSM::sortTSM2().
void DTTSCand::setBitsTsm | ( | ) |
Set the quality bits for DTTSM analysis.
Definition at line 190 of file DTTSCand.cc.
References _dataword, _tctrig, BitArray< N >::assign(), clearBits(), config(), gather_cfg::cout, BitArray< N >::element(), isCarry(), isCorr(), isHtrig(), isInner(), DTTracoTrigData::pvK(), DTConfigTSPhi::TsmCorrEna(), DTConfigTSPhi::TsmCorrEnaCarry(), DTConfigTSPhi::TsmHtrigEna(), DTConfigTSPhi::TsmHtrigEnaCarry(), DTConfigTSPhi::TsmInOutEna(), DTConfigTSPhi::TsmInOutEnaCarry(), DTConfigTSPhi::TsmMasking(), DTConfigTSPhi::TssMasking(), and BitArray< N >::unset().
void DTTSCand::setBitsTss | ( | ) |
Set the quality bits for DTTSS analysis.
Definition at line 78 of file DTTSCand.cc.
References _dataword, _tctrig, BitArray< N >::assign(), clearBits(), config(), gather_cfg::cout, BitArray< N >::element(), isCarry(), isCorr(), isHtrig(), isInner(), DTTracoTrigData::pvK(), DTConfigTSPhi::TssCorrEna(), DTConfigTSPhi::TssCorrEnaCarry(), DTConfigTSPhi::TssHtrigEna(), DTConfigTSPhi::TssHtrigEnaCarry(), DTConfigTSPhi::TssInOutEna(), DTConfigTSPhi::TssInOutEnaCarry(), DTConfigTSPhi::TssMasking(), and BitArray< N >::unset().
Referenced by DTTSM::sortTSM1(), DTTSM::sortTSM2(), DTTSS::sortTSS1(), and DTTSS::sortTSS2().
|
inline |
Set the first track bit to second track (used for carry)
Definition at line 63 of file DTTSCand.h.
References _dataword, _isCarry, and BitArray< N >::set().
Referenced by DTTSM::sortTSM1(), and DTTSS::sortTSS1().
|
inline |
Retrun the TRACO position inside the TSS.
Definition at line 87 of file DTTSCand.h.
References _tcPos.
Referenced by DTTSM::sortTSM1(), DTTSM::sortTSM2(), DTTSS::sortTSS1(), and DTTSS::sortTSS2().
|
inline |
Return the TRACO number.
Definition at line 96 of file DTTSCand.h.
References _tctrig, and DTTracoTrigData::tracoNumber().
|
inline |
Return associated TRACO trigger.
Definition at line 84 of file DTTSCand.h.
References _tctrig.
Referenced by DTTSS::getTracoT(), DTTSM::getTracoT(), print(), and DTTSPhi::runTSPhi().
|
inline |
|
inline |
Return the DTTSS number.
Definition at line 93 of file DTTSCand.h.
References _tss, and DTTSS::number().
Referenced by DTTSM::sortTSM1(), and DTTSM::sortTSM2().
|
private |
Definition at line 150 of file DTTSCand.h.
Referenced by clear(), clearBits(), clearBitsBkmod(), dataword(), DTTSCand(), isFirst(), operator<(), operator<=(), print(), setBitsBkmod(), setBitsTsm(), setBitsTss(), and setSecondTrack().
|
private |
Definition at line 156 of file DTTSCand.h.
Referenced by clear(), isCarry(), operator=(), resetCarry(), and setSecondTrack().
|
private |
Definition at line 154 of file DTTSCand.h.
Referenced by operator=(), and TcPos().
|
private |
Definition at line 149 of file DTTSCand.h.
Referenced by clear(), is0H(), is0L(), isCorr(), isH0(), isHHorHL(), isHtrig(), isInner(), isL0(), isLH(), isLL(), operator=(), setBitsBkmod(), setBitsTsm(), setBitsTss(), tracoNumber(), and tracoTr().
|
private |
Definition at line 148 of file DTTSCand.h.
Referenced by config(), operator=(), tss(), and tssNumber().