#include <CSCALCTPreTriggerDigi.h>
Public Member Functions | |
void | clear () |
clear this ALCT More... | |
CSCALCTPreTriggerDigi (const int valid, const int quality, const int accel, const int patternb, const int keywire, const int bx, const int trknmb=0) | |
Constructors. More... | |
CSCALCTPreTriggerDigi () | |
default More... | |
int | getAccelerator () const |
int | getBX () const |
return BX - five low bits of BXN counter tagged by the ALCT More... | |
int | getCollisionB () const |
int | getFullBX () const |
return 12-bit full BX. More... | |
int | getKeyWG () const |
return key wire group More... | |
int | getQuality () const |
return quality of a pattern More... | |
int | getTrknmb () const |
return track number (1,2) More... | |
bool | isValid () const |
check ALCT validity (1 - valid ALCT) More... | |
bool | operator!= (const CSCALCTPreTriggerDigi &) const |
True if the preceding one is false. More... | |
bool | operator== (const CSCALCTPreTriggerDigi &) const |
True if all members (except the number) of both ALCTs are equal. More... | |
bool | operator> (const CSCALCTPreTriggerDigi &) const |
void | print () const |
Print content of digi. More... | |
void | setAccelerator (const int accelerator) |
set accelerator bit More... | |
void | setBX (const int BX) |
set BX More... | |
void | setCollisionB (const int collision) |
set Collision Pattern B bit More... | |
void | setFullBX (const uint16_t fullbx) |
Set 12-bit full BX. More... | |
void | setKeyWG (const int keyWG) |
set key wire group More... | |
void | setQuality (const int quality) |
set quality More... | |
void | setTrknmb (const uint16_t number) |
Set track number (1,2) after sorting ALCTs. More... | |
void | setValid (const int valid) |
set valid More... | |
void | setWireGroup (unsigned int wiregroup) |
set wiregroup number More... | |
Private Attributes | |
uint16_t | accel_ |
uint16_t | bx_ |
uint16_t | fullbx_ |
uint16_t | keywire_ |
uint16_t | patternb_ |
uint16_t | quality_ |
uint16_t | trknmb_ |
uint16_t | valid_ |
Pre-trigger Digi for ALCT trigger primitives.
Definition at line 13 of file CSCALCTPreTriggerDigi.h.
CSCALCTPreTriggerDigi::CSCALCTPreTriggerDigi | ( | const int | valid, |
const int | quality, | ||
const int | accel, | ||
const int | patternb, | ||
const int | keywire, | ||
const int | bx, | ||
const int | trknmb = 0 |
||
) |
Constructors.
Definition at line 9 of file CSCALCTPreTriggerDigi.cc.
References nano_mu_digi_cff::bx, quality, validateGeometry_cfg::valid, and sistrip::valid_.
CSCALCTPreTriggerDigi::CSCALCTPreTriggerDigi | ( | ) |
void CSCALCTPreTriggerDigi::clear | ( | void | ) |
clear this ALCT
Clears this ALCT.
Definition at line 31 of file CSCALCTPreTriggerDigi.cc.
References sistrip::valid_.
|
inline |
return Accelerator bit 1-Accelerator pattern, 0-CollisionA or CollisionB pattern
Definition at line 43 of file CSCALCTPreTriggerDigi.h.
References accel_.
Referenced by operator<<(), and operator==().
|
inline |
return BX - five low bits of BXN counter tagged by the ALCT
Definition at line 63 of file CSCALCTPreTriggerDigi.h.
References bx_.
Referenced by operator<<(), operator==(), and operator>().
|
inline |
return Collision Pattern B bit 1-CollisionB pattern (accel_ = 0), 0-CollisionA pattern (accel_ = 0)
Definition at line 51 of file CSCALCTPreTriggerDigi.h.
References patternb_.
Referenced by operator<<(), and operator==().
|
inline |
|
inline |
return key wire group
Definition at line 57 of file CSCALCTPreTriggerDigi.h.
References keywire_.
Referenced by operator<<(), operator==(), and operator>().
|
inline |
return quality of a pattern
Definition at line 36 of file CSCALCTPreTriggerDigi.h.
References quality_.
Referenced by operator<<(), operator==(), and operator>().
|
inline |
return track number (1,2)
Definition at line 69 of file CSCALCTPreTriggerDigi.h.
References trknmb_.
Referenced by operator<<().
|
inline |
check ALCT validity (1 - valid ALCT)
Definition at line 30 of file CSCALCTPreTriggerDigi.h.
References valid_.
Referenced by ntupleDataFormat._Object::_checkIsValid(), operator<<(), operator==(), and core.AutoHandle.AutoHandle::ReallyLoad().
bool CSCALCTPreTriggerDigi::operator!= | ( | const CSCALCTPreTriggerDigi & | rhs | ) | const |
True if the preceding one is false.
Definition at line 76 of file CSCALCTPreTriggerDigi.cc.
bool CSCALCTPreTriggerDigi::operator== | ( | const CSCALCTPreTriggerDigi & | rhs | ) | const |
True if all members (except the number) of both ALCTs are equal.
Definition at line 66 of file CSCALCTPreTriggerDigi.cc.
References getAccelerator(), getBX(), getCollisionB(), getKeyWG(), getQuality(), isValid(), and sistrip::SpyUtilities::isValid().
bool CSCALCTPreTriggerDigi::operator> | ( | const CSCALCTPreTriggerDigi & | rhs | ) | const |
True if the first ALCT has a larger quality, or if it has the same quality but a larger wire group.
Definition at line 42 of file CSCALCTPreTriggerDigi.cc.
References getBX(), getKeyWG(), and getQuality().
void CSCALCTPreTriggerDigi::print | ( | void | ) | const |
Print content of digi.
Debug.
Definition at line 85 of file CSCALCTPreTriggerDigi.cc.
References sistrip::SpyUtilities::isValid().
|
inline |
|
inline |
set BX
Definition at line 66 of file CSCALCTPreTriggerDigi.h.
References L1TStage2uGTEmulatorClient_cff::BX, and bx_.
|
inline |
set Collision Pattern B bit
Definition at line 54 of file CSCALCTPreTriggerDigi.h.
References patternb_.
|
inline |
|
inline |
|
inline |
set quality
Definition at line 39 of file CSCALCTPreTriggerDigi.h.
References quality, and quality_.
|
inline |
Set track number (1,2) after sorting ALCTs.
Definition at line 72 of file CSCALCTPreTriggerDigi.h.
References ConfigBuilder::number, and trknmb_.
|
inline |
set valid
Definition at line 33 of file CSCALCTPreTriggerDigi.h.
References validateGeometry_cfg::valid, and valid_.
|
inline |
|
private |
Definition at line 99 of file CSCALCTPreTriggerDigi.h.
Referenced by getAccelerator(), and setAccelerator().
|
private |
Definition at line 102 of file CSCALCTPreTriggerDigi.h.
|
private |
Definition at line 104 of file CSCALCTPreTriggerDigi.h.
Referenced by getFullBX(), and setFullBX().
|
private |
Definition at line 101 of file CSCALCTPreTriggerDigi.h.
Referenced by getKeyWG(), setKeyWG(), and setWireGroup().
|
private |
Definition at line 100 of file CSCALCTPreTriggerDigi.h.
Referenced by getCollisionB(), and setCollisionB().
|
private |
Definition at line 98 of file CSCALCTPreTriggerDigi.h.
Referenced by getQuality(), and setQuality().
|
private |
Definition at line 103 of file CSCALCTPreTriggerDigi.h.
Referenced by getTrknmb(), and setTrknmb().
|
private |
Definition at line 97 of file CSCALCTPreTriggerDigi.h.
Referenced by isValid(), and setValid().