ATLAS Offline Software
Loading...
Searching...
No Matches
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>
16
17class CscDigit : public MuonDigit {
18
19private:
20
21 int m_charge{0};
22 float m_time{0.f};
23 std::vector<float> m_sampleCharges{};
24
25public:
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
std::vector< float > m_sampleCharges
Definition CscDigit.h:23
CscDigit()=default
Default constructor.
bool is_valid(const CscIdHelper *cscHelper) const
Is this a valid digit.
Definition CscDigit.cxx:33
int charge() const
Return the charge.
Definition CscDigit.h:42
int m_charge
Definition CscDigit.h:21
float m_time
Definition CscDigit.h:22
const std::vector< float > & sampleCharges() const
Definition CscDigit.h:48
float time() const
return the time
Definition CscDigit.h:46
MuonDigit()=default