ATLAS Offline Software
Loading...
Searching...
No Matches
sTgcDigit Class Reference

#include <sTgcDigit.h>

Inheritance diagram for sTgcDigit:
Collaboration diagram for sTgcDigit:

Public Member Functions

 sTgcDigit ()=default
 sTgcDigit (const Identifier &id, float time)
 sTgcDigit (const Identifier &id, uint16_t bctag, float time)
 sTgcDigit (const Identifier &id, uint16_t bctag, float time, float charge, bool isDead, bool isPileup)
bool is_valid (const sTgcIdHelper *sTgcHelper) const
uint16_t bcTag () const
float charge () const
int charge_6bit () const
int charge_10bit () const
float time () const
bool isDead () const
bool isPileup () const
void set_bcTag (uint16_t newbcTag)
void set_charge (float newCharge)
void set_time (float newTime)
void set_isDead (bool newIsDead)
void set_isPileup (bool newIsPileup)
void setID (const Identifier id)
Identifier identify () const
virtual IdentifierHash identifyHash () const
virtual const IdHelpergetHelper () const

Protected Attributes

Identifier m_muonId {}

Private Attributes

uint16_t m_bcTag {0}
float m_charge {-1.f}
float m_time {0.f}
bool m_isDead {false}
bool m_isPileup {false}

Detailed Description

Definition at line 20 of file sTgcDigit.h.

Constructor & Destructor Documentation

◆ sTgcDigit() [1/4]

sTgcDigit::sTgcDigit ( )
default

◆ sTgcDigit() [2/4]

sTgcDigit::sTgcDigit ( const Identifier & id,
float time )

Definition at line 10 of file sTgcDigit.cxx.

11 : MuonDigit(id),
12 m_time(time) { }
MuonDigit()=default
float time() const
Definition sTgcDigit.cxx:61
float m_time
Definition sTgcDigit.h:76

◆ sTgcDigit() [3/4]

sTgcDigit::sTgcDigit ( const Identifier & id,
uint16_t bctag,
float time )

Definition at line 14 of file sTgcDigit.cxx.

15 : MuonDigit (id),
16 m_bcTag (bctag),
17 m_time(time) { }
uint16_t m_bcTag
Definition sTgcDigit.h:74

◆ sTgcDigit() [4/4]

sTgcDigit::sTgcDigit ( const Identifier & id,
uint16_t bctag,
float time,
float charge,
bool isDead,
bool isPileup )

Definition at line 19 of file sTgcDigit.cxx.

20 : MuonDigit (id),
21 m_bcTag(bctag),
23 m_time(time),
float charge() const
Definition sTgcDigit.cxx:46
bool isDead() const
Definition sTgcDigit.cxx:38
bool m_isDead
Definition sTgcDigit.h:77
bool isPileup() const
Definition sTgcDigit.cxx:42
bool m_isPileup
Definition sTgcDigit.h:78
float m_charge
Definition sTgcDigit.h:75

Member Function Documentation

◆ bcTag()

uint16_t sTgcDigit::bcTag ( ) const

Definition at line 34 of file sTgcDigit.cxx.

34 {
35 return m_bcTag;
36}

◆ charge()

float sTgcDigit::charge ( ) const

Definition at line 46 of file sTgcDigit.cxx.

46 {
47 return m_charge;
48}

◆ charge_10bit()

int sTgcDigit::charge_10bit ( ) const

Definition at line 55 of file sTgcDigit.cxx.

55 {
56 constexpr float ADC = 0.00171; // = saturation / (2^10);
57 return ((int)(m_charge/ADC));
58}

◆ charge_6bit()

int sTgcDigit::charge_6bit ( ) const

Definition at line 50 of file sTgcDigit.cxx.

50 {
51 constexpr float ADC = 0.02734; // = saturation / (2^6);
52 return ((int)(m_charge/ADC));
53}

◆ getHelper()

const IdHelper * Identifiable::getHelper ( ) const
virtualinherited

Definition at line 18 of file Identifiable.cxx.

18 {
19 return (nullptr);
20}

◆ identify()

Identifier MuonDigit::identify ( ) const
inlinevirtualinherited

Implements Identifiable.

Definition at line 30 of file MuonDigit.h.

30{return m_muonId;}
Identifier m_muonId
Definition MuonDigit.h:21

◆ identifyHash()

IdentifierHash Identifiable::identifyHash ( ) const
virtualinherited

Reimplemented in CaloDetDescrElement, CaloDetDescriptor, InDetRawDataCollection< RawDataT >, InDetRawDataCollection< Pixel1RawData >, InDetRawDataCollection< PixelRDORawData >, InDetRawDataCollection< PixelTB04RawData >, InDetRawDataCollection< RDO >, InDetRawDataCollection< SCT3_RawData >, InDetRawDataCollection< SCT_RDORawData >, InDetRawDataCollection< SCT_TB03_RawData >, InDetRawDataCollection< SCT_TB04_RawData >, InDetRawDataCollection< TRT_RDORawData >, InDetRawDataCollection< TRT_TB04_RawData >, Muon::MuonPrepDataCollection< PrepDataT >, Muon::MuonPrepDataCollection< CscPrepData >, Muon::MuonPrepDataCollection< CscStripPrepData >, Muon::MuonPrepDataCollection< MdtPrepData >, Muon::MuonPrepDataCollection< MMPrepData >, Muon::MuonPrepDataCollection< Muon::CscPrepData >, Muon::MuonPrepDataCollection< Muon::CscStripPrepData >, Muon::MuonPrepDataCollection< Muon::MdtPrepData >, Muon::MuonPrepDataCollection< Muon::MMPrepData >, Muon::MuonPrepDataCollection< Muon::RpcPrepData >, Muon::MuonPrepDataCollection< Muon::sTgcPrepData >, Muon::MuonPrepDataCollection< Muon::TgcPrepData >, Muon::MuonPrepDataCollection< RpcPrepData >, Muon::MuonPrepDataCollection< sTgcPrepData >, Muon::MuonPrepDataCollection< TgcPrepData >, SiChargedDiodeCollection, SpacePointCollection, Trk::PrepRawDataCollection< PrepRawDataT >, Trk::PrepRawDataCollection< HGTD_Cluster >, Trk::PrepRawDataCollection< InDet::SiCluster >, Trk::PrepRawDataCollection< PixelCluster >, Trk::PrepRawDataCollection< SCT_Cluster >, Trk::PrepRawDataCollection< TrigSiSpacePoint >, and Trk::PrepRawDataCollection< TRT_DriftCircle >.

Definition at line 11 of file Identifiable.cxx.

11 {
12 IdentifierHash result;
13 return (result);
14}

◆ is_valid()

bool sTgcDigit::is_valid ( const sTgcIdHelper * sTgcHelper) const

Definition at line 29 of file sTgcDigit.cxx.

29 {
30 return ( (sTgcHelper->valid(m_muonId)) );
31}
bool valid(const Identifier &id) const

◆ isDead()

bool sTgcDigit::isDead ( ) const

Definition at line 38 of file sTgcDigit.cxx.

38 {
39 return m_isDead;
40}

◆ isPileup()

bool sTgcDigit::isPileup ( ) const

Definition at line 42 of file sTgcDigit.cxx.

42 {
43 return m_isPileup;
44}

◆ set_bcTag()

void sTgcDigit::set_bcTag ( uint16_t newbcTag)

Definition at line 66 of file sTgcDigit.cxx.

66 {
67 m_bcTag = newbcTag;
68}

◆ set_charge()

void sTgcDigit::set_charge ( float newCharge)

Definition at line 71 of file sTgcDigit.cxx.

71 {
72 m_charge = newCharge;
73}

◆ set_isDead()

void sTgcDigit::set_isDead ( bool newIsDead)

Definition at line 81 of file sTgcDigit.cxx.

81 {
82 m_isDead = newIsDead;
83}

◆ set_isPileup()

void sTgcDigit::set_isPileup ( bool newIsPileup)

Definition at line 85 of file sTgcDigit.cxx.

85 {
86 m_isPileup = newIsPileup;
87}

◆ set_time()

void sTgcDigit::set_time ( float newTime)

Definition at line 76 of file sTgcDigit.cxx.

76 {
77 m_time = newTime;
78}

◆ setID()

void MuonDigit::setID ( const Identifier id)
inlineinherited

Definition at line 29 of file MuonDigit.h.

◆ time()

float sTgcDigit::time ( ) const

Definition at line 61 of file sTgcDigit.cxx.

61 {
62 return m_time;
63}

Member Data Documentation

◆ m_bcTag

uint16_t sTgcDigit::m_bcTag {0}
private

Definition at line 74 of file sTgcDigit.h.

74{0};

◆ m_charge

float sTgcDigit::m_charge {-1.f}
private

Definition at line 75 of file sTgcDigit.h.

75{-1.f};

◆ m_isDead

bool sTgcDigit::m_isDead {false}
private

Definition at line 77 of file sTgcDigit.h.

77{false};

◆ m_isPileup

bool sTgcDigit::m_isPileup {false}
private

Definition at line 78 of file sTgcDigit.h.

78{false};

◆ m_muonId

Identifier MuonDigit::m_muonId {}
protectedinherited

Definition at line 21 of file MuonDigit.h.

21{};

◆ m_time

float sTgcDigit::m_time {0.f}
private

Definition at line 76 of file sTgcDigit.h.

76{0.f};

The documentation for this class was generated from the following files: