#include <TrackStub.h>
Public Member Functions | |
int | BX () const |
unsigned | cscid () const |
unsigned | cscidSeparateME1a () const |
unsigned | endcap () const |
unsigned | etaPacked () const |
Return the binned eta for this stub. More... | |
double | etaValue () const |
return the Eta Value of this stub's position. More... | |
DetId | getDetId () const |
const CSCCorrelatedLCTDigi * | getDigi () const |
Get the digi this stub was made from. More... | |
bool | operator!= (const TrackStub &rhs) const |
bool | operator< (const TrackStub &) const |
bool | operator<= (const TrackStub &rhs) const |
bool | operator== (const TrackStub &rhs) const |
bool | operator> (const TrackStub &) const |
Comparision Operators, used for MPC sorting. More... | |
bool | operator>= (const TrackStub &rhs) const |
unsigned | phiPacked () const |
Return the binned phi for this stub. More... | |
double | phiValue () const |
return the Phi Value of this stub's position in local coordinates. More... | |
unsigned | sector () const |
void | setEtaPacked (const unsigned &eta_) |
set Eta and Phi from integer values. More... | |
void | setPhiPacked (const unsigned &phi_) |
unsigned | station () const |
unsigned | subsector () const |
TrackStub () | |
TrackStub (const CSCCorrelatedLCTDigi &, const DetId &) | |
TrackStub (const CSCCorrelatedLCTDigi &, const DetId &, const unsigned &phi, const unsigned &eta) | |
TrackStub (const TrackStub &) | |
Public Member Functions inherited from CSCCorrelatedLCTDigi | |
void | clear () |
clear this LCT More... | |
CSCCorrelatedLCTDigi () | |
default (calls clear()) More... | |
CSCCorrelatedLCTDigi (const uint16_t trknmb, const uint16_t valid, const uint16_t quality, const uint16_t keywire, const uint16_t strip, const uint16_t pattern, const uint16_t bend, const uint16_t bx, const uint16_t mpclink=0, const uint16_t bx0=0, const uint16_t syncErr=0, const uint16_t cscID=0, const Version version=Version::Legacy, const bool run3_quart_strip_bit=false, const bool run3_eighth_strip_bit=false, const uint16_t run3_pattern=0, const uint16_t run3_slope=0, const int type=ALCTCLCT) | |
Constructors. More... | |
const CSCALCTDigi & | getALCT () const |
uint16_t | getBend () const |
uint16_t | getBX () const |
return BX More... | |
uint16_t | getBX0 () const |
uint16_t | getBXData () const |
return 1-bit BX as in data More... | |
const CSCCLCTDigi & | getCLCT () const |
uint16_t | getCLCTPattern () const |
uint16_t | getCSCID () const |
bool | getEighthStripBit () const |
get single eighth strip bit More... | |
float | getFractionalSlope () const |
float | getFractionalStrip (uint16_t n=2) const |
return the fractional strip More... | |
const GEMPadDigi & | getGEM1 () const |
const GEMPadDigi & | getGEM2 () const |
uint16_t | getHMT () const |
uint16_t | getKeyWG () const |
return the key wire group. counts from 0. More... | |
uint16_t | getMPCLink () const |
return MPC link number, 0 means not sorted, 1-3 give MPC sorting rank More... | |
uint16_t | getPattern () const |
return the Run-2 pattern ID More... | |
uint16_t | getQuality () const |
return the Quality More... | |
bool | getQuartStripBit () const |
get single quart strip bit More... | |
uint16_t | getRun3Pattern () const |
return the Run-3 pattern ID More... | |
uint16_t | getSlope () const |
return the slope More... | |
uint16_t | getStrip (uint16_t n=2) const |
return the key halfstrip from 0,159 More... | |
uint16_t | getStripType () const |
return strip type (obsolete since mid-2008) More... | |
uint16_t | getSyncErr () const |
uint16_t | getTrknmb () const |
return track number More... | |
int | getType () const |
bool | isRun3 () const |
Distinguish Run-1/2 from Run-3. More... | |
bool | isValid () const |
return valid pattern bit More... | |
bool | operator!= (const CSCCorrelatedLCTDigi &rhs) const |
bool | operator== (const CSCCorrelatedLCTDigi &) const |
Comparison. More... | |
void | print () const |
Print content of correlated LCT digi. More... | |
void | setALCT (const CSCALCTDigi &alct) |
void | setBend (const uint16_t b) |
set bend More... | |
void | setBX (const uint16_t b) |
set bx More... | |
void | setBX0 (const uint16_t b) |
set bx0 More... | |
void | setCLCT (const CSCCLCTDigi &clct) |
void | setCSCID (const uint16_t c) |
set cscID More... | |
void | setEighthStripBit (const bool eighthStripBit) |
set single eighth strip bit More... | |
void | setGEM1 (const GEMPadDigi &gem) |
void | setGEM2 (const GEMPadDigi &gem) |
void | setHMT (const uint16_t h) |
set high-multiplicity bits More... | |
void | setMPCLink (const uint16_t &link) |
Set mpc link number after MPC sorting. More... | |
void | setPattern (const uint16_t p) |
set pattern More... | |
void | setQuality (const uint16_t q) |
set quality code More... | |
void | setQuartStripBit (const bool quartStripBit) |
set single quart strip bit More... | |
void | setRun3 (const bool isRun3) |
void | setRun3Pattern (const uint16_t pattern) |
set Run-3 pattern More... | |
void | setSlope (const uint16_t slope) |
set the slope More... | |
void | setStrip (const uint16_t s) |
set strip More... | |
void | setSyncErr (const uint16_t s) |
set syncErr More... | |
void | setTrknmb (const uint16_t number) |
Set track number (1,2) after sorting LCTs. More... | |
void | setType (int type) |
void | setValid (const uint16_t v) |
set valid More... | |
void | setWireGroup (const uint16_t wiregroup) |
set wiregroup number More... | |
Private Attributes | |
unsigned | link_ |
uint32_t | theDetId_ |
unsigned | theEta_ |
unsigned | thePhi_ |
Static Private Attributes | |
static const double | theEtaBinning = (CSCTFConstants::maxEta - CSCTFConstants::minEta) / (CSCTFConstants::etaBins) |
static const double | thePhiBinning = CSCTFConstants::SECTOR_RAD / (1 << CSCBitWidths::kGlobalPhiDataBitWidth) |
Additional Inherited Members | |
Public Types inherited from CSCCorrelatedLCTDigi | |
enum | LCTBXMask { kBXDataMask = 0x1 } |
enum | Type { CLCTALCT, ALCTCLCT, ALCTCLCTGEM, ALCTCLCT2GEM, ALCT2GEM, CLCT2GEM, CLCTONLY, ALCTONLY } |
SIMULATION ONLY ////. More... | |
enum | Version { Version::Legacy = 0, Version::Run3 } |
Definition at line 22 of file TrackStub.h.
|
inline |
Definition at line 24 of file TrackStub.h.
TrackStub::TrackStub | ( | const CSCCorrelatedLCTDigi & | aDigi, |
const DetId & | aDetId | ||
) |
Definition at line 13 of file TrackStub.cc.
TrackStub::TrackStub | ( | const CSCCorrelatedLCTDigi & | aDigi, |
const DetId & | aDetId, | ||
const unsigned & | phi, | ||
const unsigned & | eta | ||
) |
Definition at line 16 of file TrackStub.cc.
TrackStub::TrackStub | ( | const TrackStub & | aTrackStub | ) |
Definition at line 19 of file TrackStub.cc.
|
inline |
unsigned TrackStub::cscid | ( | ) | const |
Definition at line 98 of file TrackStub.cc.
References MuonSubdetId::CSC, theDetId_, and CSCTriggerNumbering::triggerCscIdFromLabels().
Referenced by operator<(), and operator>().
unsigned TrackStub::cscidSeparateME1a | ( | ) | const |
Definition at line 105 of file TrackStub.cc.
References MuonSubdetId::CSC, triggerObjects_cff::id, relativeConstraints::ring, station(), theDetId_, and CSCTriggerNumbering::triggerCscIdFromLabels().
unsigned TrackStub::endcap | ( | ) | const |
Time / Space identifiers See CSCTransientDataType.h for more details.
Definition at line 26 of file TrackStub.cc.
References MuonSubdetId::CSC, MuonSubdetId::DT, MillePedeFileConverter_cfg::e, CSCDetId::endcap(), theDetId_, and DTChamberId::wheel().
Referenced by geometryXMLparser.CSCAlignable::index().
|
inline |
|
inline |
return the Eta Value of this stub's position.
Definition at line 34 of file TrackStub.h.
References CSCTFConstants::minEta, theEta_, and theEtaBinning.
Referenced by L1TCSCTF::analyze().
|
inline |
|
inline |
Get the digi this stub was made from.
Definition at line 45 of file TrackStub.h.
Referenced by operator==().
|
inline |
bool TrackStub::operator< | ( | const TrackStub & | rhs | ) | const |
Definition at line 115 of file TrackStub.cc.
References cscid(), CSCCorrelatedLCTDigi::getQuality(), CSCCorrelatedLCTDigi::getTrknmb(), and CSCCorrelatedLCTDigi::isValid().
Referenced by operator>=().
|
inline |
|
inline |
Definition at line 63 of file TrackStub.h.
References getDigi(), and theDetId_.
Referenced by operator!=().
bool TrackStub::operator> | ( | const TrackStub & | rhs | ) | const |
Comparision Operators, used for MPC sorting.
Definition at line 121 of file TrackStub.cc.
References cscid(), CSCCorrelatedLCTDigi::getQuality(), CSCCorrelatedLCTDigi::getTrknmb(), and CSCCorrelatedLCTDigi::isValid().
Referenced by operator<=().
|
inline |
|
inline |
Return the binned phi for this stub.
Definition at line 42 of file TrackStub.h.
References thePhi_.
Referenced by L1TCSCTF::analyze().
|
inline |
return the Phi Value of this stub's position in local coordinates.
Definition at line 36 of file TrackStub.h.
References thePhi_, and thePhiBinning.
Referenced by L1TCSCTF::analyze().
unsigned TrackStub::sector | ( | ) | const |
Definition at line 60 of file TrackStub.cc.
References MuonSubdetId::CSC, MuonSubdetId::DT, DTChamberId::sector(), theDetId_, and CSCTriggerNumbering::triggerSectorFromLabels().
Referenced by geometryXMLparser.DTAlignable::index().
|
inline |
set Eta and Phi from integer values.
Definition at line 30 of file TrackStub.h.
References theEta_.
Referenced by L1TCSCTF::analyze().
|
inline |
unsigned TrackStub::station | ( | ) | const |
Definition at line 43 of file TrackStub.cc.
References MuonSubdetId::CSC, MuonSubdetId::DT, alignCSCRings::s, DTChamberId::station(), CSCDetId::station(), and theDetId_.
Referenced by cscidSeparateME1a(), geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
unsigned TrackStub::subsector | ( | ) | const |
Definition at line 79 of file TrackStub.cc.
References MuonSubdetId::CSC, MuonSubdetId::DT, DTChamberId::sector(), contentValuesCheck::ss, theDetId_, and CSCTriggerNumbering::triggerSubSectorFromLabels().
|
private |
Definition at line 70 of file TrackStub.h.
|
private |
Definition at line 69 of file TrackStub.h.
Referenced by cscid(), cscidSeparateME1a(), endcap(), getDetId(), operator==(), sector(), station(), and subsector().
|
private |
Definition at line 70 of file TrackStub.h.
Referenced by etaPacked(), etaValue(), and setEtaPacked().
|
staticprivate |
Definition at line 71 of file TrackStub.h.
Referenced by etaValue().
|
private |
Definition at line 70 of file TrackStub.h.
Referenced by phiPacked(), phiValue(), and setPhiPacked().
|
staticprivate |
Definition at line 71 of file TrackStub.h.
Referenced by phiValue().