ATLAS Offline Software
MuonSpectrometer
MuonDigitContainer
MuonDigitContainer
CscDigit.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// CscDigit.h
6
7
#ifndef CscDigitUH
8
#define CscDigitUH
9
10
// CSC digitization. Holds a channel ID.
11
12
#include <iosfwd>
13
#include <vector>
14
#include "
MuonDigitContainer/MuonDigit.h
"
15
#include "
MuonIdHelpers/CscIdHelper.h
"
16
17
class
CscDigit
:
public
MuonDigit
{
18
19
private
:
20
21
int
m_charge
{0};
22
float
m_time
{0.f};
23
std::vector<float>
m_sampleCharges
{};
24
25
public
:
26
28
CscDigit
() =
default
;
29
31
CscDigit
(
const
Identifier
&
id
,
int
charge
);
32
CscDigit
(
const
Identifier
&
id
,
int
charge
,
float
time
);
33
// added 11/3/2010 for new EDM...
34
CscDigit
(
const
Identifier
&
id
, std::vector<float>
sampleCharges
);
35
36
38
bool
is_valid
(
const
CscIdHelper
* cscHelper)
const
;
39
42
int
charge
()
const
{
return
m_charge
; }
43
46
float
time
()
const
{
return
m_time
; }
47
48
const
std::vector<float>&
sampleCharges
()
const
{
return
m_sampleCharges
; }
49
50
};
51
52
#endif
53
54
55
56
57
58
CscIdHelper.h
CscDigit::m_time
float m_time
Definition:
CscDigit.h:22
CscDigit::sampleCharges
const std::vector< float > & sampleCharges() const
Definition:
CscDigit.h:48
MuonDigit
Definition:
MuonDigit.h:16
MuonDigit.h
CscDigit::m_sampleCharges
std::vector< float > m_sampleCharges
Definition:
CscDigit.h:23
CscDigit
Definition:
CscDigit.h:17
CscDigit::charge
int charge() const
Return the charge.
Definition:
CscDigit.h:42
CscDigit::m_charge
int m_charge
Definition:
CscDigit.h:21
CscIdHelper
Definition:
CscIdHelper.h:52
CscDigit::CscDigit
CscDigit()=default
Default constructor.
CscDigit::time
float time() const
return the time
Definition:
CscDigit.h:46
CscDigit::is_valid
bool is_valid(const CscIdHelper *cscHelper) const
Is this a valid digit.
Definition:
CscDigit.cxx:33
Identifier
Definition:
IdentifierFieldParser.cxx:14
Generated on Thu Nov 7 2024 21:12:51 for ATLAS Offline Software by
1.8.18