ATLAS Offline Software
Public Member Functions | Protected Attributes | Private Attributes | List of all members
CscDigit Class Reference

#include <CscDigit.h>

Inheritance diagram for CscDigit:
Collaboration diagram for CscDigit:

Public Member Functions

 CscDigit ()=default
 Default constructor. More...
 
 CscDigit (const Identifier &id, int charge)
 Full constructor from Identifier. More...
 
 CscDigit (const Identifier &id, int charge, float time)
 
 CscDigit (const Identifier &id, std::vector< float > sampleCharges)
 
bool is_valid (const CscIdHelper *cscHelper) const
 Is this a valid digit. More...
 
int charge () const
 Return the charge. More...
 
float time () const
 return the time More...
 
const std::vector< float > & sampleCharges () const
 
void setID (const Identifier id)
 
Identifier identify () const
 
virtual IdentifierHash identifyHash () const
 
virtual const IdHelpergetHelper () const
 

Protected Attributes

Identifier m_muonId {}
 

Private Attributes

int m_charge {0}
 
float m_time {0.f}
 
std::vector< float > m_sampleCharges {}
 

Detailed Description

Definition at line 17 of file CscDigit.h.

Constructor & Destructor Documentation

◆ CscDigit() [1/4]

CscDigit::CscDigit ( )
default

Default constructor.

◆ CscDigit() [2/4]

CscDigit::CscDigit ( const Identifier id,
int  charge 
)

Full constructor from Identifier.

CscDigit.cxx.

Member functions Full constructor from Identifier

Definition at line 15 of file CscDigit.cxx.

16  : MuonDigit(id), m_charge(charge) { }

◆ CscDigit() [3/4]

CscDigit::CscDigit ( const Identifier id,
int  charge,
float  time 
)

Definition at line 18 of file CscDigit.cxx.

19  : MuonDigit(id), m_charge(charge), m_time(time) { }

◆ CscDigit() [4/4]

CscDigit::CscDigit ( const Identifier id,
std::vector< float >  sampleCharges 
)

Definition at line 21 of file CscDigit.cxx.

22  : MuonDigit(id), m_sampleCharges(std::move(sampleCharges)) {
23 
24  std::vector<float, std::allocator<float> >::iterator pkit
25  = std::max_element( m_sampleCharges.begin(), m_sampleCharges.end() );
26 
27  m_charge = *pkit;
28  m_time = 0.0; // obsolete
29 
30 }

Member Function Documentation

◆ charge()

int CscDigit::charge ( ) const
inline

Return the charge.

in new EDM, it's max charge

Definition at line 42 of file CscDigit.h.

42 { return m_charge; }

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

◆ identifyHash()

IdentifierHash Identifiable::identifyHash ( ) const
virtualinherited

◆ is_valid()

bool CscDigit::is_valid ( const CscIdHelper cscHelper) const

Is this a valid digit.

Validity check.

Definition at line 33 of file CscDigit.cxx.

33  {
34  return (m_charge > 0 && cscHelper->valid(m_muonId));
35 }

◆ sampleCharges()

const std::vector<float>& CscDigit::sampleCharges ( ) const
inline

Definition at line 48 of file CscDigit.h.

48 { return m_sampleCharges; }

◆ setID()

void MuonDigit::setID ( const Identifier  id)
inlineinherited

Definition at line 29 of file MuonDigit.h.

29 {m_muonId = id;}

◆ time()

float CscDigit::time ( ) const
inline

return the time

in new EDM, it's obsolete (return 0)

Definition at line 46 of file CscDigit.h.

46 { return m_time; }

Member Data Documentation

◆ m_charge

int CscDigit::m_charge {0}
private

Definition at line 21 of file CscDigit.h.

◆ m_muonId

Identifier MuonDigit::m_muonId {}
protectedinherited

Definition at line 21 of file MuonDigit.h.

◆ m_sampleCharges

std::vector<float> CscDigit::m_sampleCharges {}
private

Definition at line 23 of file CscDigit.h.

◆ m_time

float CscDigit::m_time {0.f}
private

Definition at line 22 of file CscDigit.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
CscIdHelper::valid
bool valid(const Identifier &id) const
Public validation of levels.
Definition: CscIdHelper.cxx:555
get_generator_info.result
result
Definition: get_generator_info.py:21
CscDigit::m_time
float m_time
Definition: CscDigit.h:22
CscDigit::sampleCharges
const std::vector< float > & sampleCharges() const
Definition: CscDigit.h:48
MuonDigit::MuonDigit
MuonDigit()=default
CscDigit::m_sampleCharges
std::vector< float > m_sampleCharges
Definition: CscDigit.h:23
CscDigit::charge
int charge() const
Return the charge.
Definition: CscDigit.h:42
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
CscDigit::m_charge
int m_charge
Definition: CscDigit.h:21
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
CscDigit::time
float time() const
return the time
Definition: CscDigit.h:46
MuonDigit::m_muonId
Identifier m_muonId
Definition: MuonDigit.h:21