ATLAS Offline Software
Public Member Functions | Protected Attributes | Private Attributes | List of all members
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) { }

◆ 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) { }

◆ 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),
25  m_isPileup(isPileup) { }

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

◆ identify()

Identifier MuonDigit::identify ( ) const
inlinevirtualinherited

Implements Identifiable.

Definition at line 30 of file MuonDigit.h.

30 {return m_muonId;}

◆ identifyHash()

IdentifierHash Identifiable::identifyHash ( ) const
virtualinherited

◆ 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 }

◆ 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.

29 {m_muonId = id;}

◆ 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.

◆ m_charge

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

Definition at line 75 of file sTgcDigit.h.

◆ m_isDead

bool sTgcDigit::m_isDead {false}
private

Definition at line 77 of file sTgcDigit.h.

◆ m_isPileup

bool sTgcDigit::m_isPileup {false}
private

Definition at line 78 of file sTgcDigit.h.

◆ m_muonId

Identifier MuonDigit::m_muonId {}
protectedinherited

Definition at line 21 of file MuonDigit.h.

◆ m_time

float sTgcDigit::m_time {0.f}
private

Definition at line 76 of file sTgcDigit.h.


The documentation for this class was generated from the following files:
sTgcDigit::m_charge
float m_charge
Definition: sTgcDigit.h:75
MonDataType::ADC
@ ADC
get_generator_info.result
result
Definition: get_generator_info.py:21
sTgcDigit::isDead
bool isDead() const
Definition: sTgcDigit.cxx:38
athena.value
value
Definition: athena.py:122
MuonDigit::MuonDigit
MuonDigit()=default
sTgcDigit::m_isPileup
bool m_isPileup
Definition: sTgcDigit.h:78
sTgcDigit::m_time
float m_time
Definition: sTgcDigit.h:76
sTgcDigit::charge
float charge() const
Definition: sTgcDigit.cxx:46
sTgcDigit::time
float time() const
Definition: sTgcDigit.cxx:61
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:191
sTgcIdHelper::valid
bool valid(const Identifier &id) const
Definition: sTgcIdHelper.cxx:690
sTgcDigit::m_bcTag
uint16_t m_bcTag
Definition: sTgcDigit.h:74
IdentifierHash
Definition: IdentifierHash.h:38
sTgcDigit::m_isDead
bool m_isDead
Definition: sTgcDigit.h:77
MuonDigit::m_muonId
Identifier m_muonId
Definition: MuonDigit.h:21
sTgcDigit::isPileup
bool isPileup() const
Definition: sTgcDigit.cxx:42