ATLAS Offline Software
MuonDigit.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 // MuonDigit.h
6 
7 #ifndef MuonDigitUH
8 #define MuonDigitUH
9 
10 // Muon Digit holds an identifier.
11 
12 #include <iosfwd>
14 #include "Identifier/Identifier.h"
15 
16 class MuonDigit : public Identifiable {
17 
18 protected: // data
19 
20  // ID.
22 
23 public: // functions
24 
25  MuonDigit () = default;
26  virtual ~MuonDigit() = default;
27  MuonDigit(const Identifier& id)
28  : m_muonId(id) {}
29  void setID(const Identifier id) {m_muonId = id;}
30  Identifier identify() const {return m_muonId;}
31 
32 };
33 
34 #endif
35 
36 
MuonDigit
Definition: MuonDigit.h:16
Identifiable.h
MuonDigit::MuonDigit
MuonDigit()=default
MuonDigit::setID
void setID(const Identifier id)
Definition: MuonDigit.h:29
MuonDigit::~MuonDigit
virtual ~MuonDigit()=default
MuonDigit::MuonDigit
MuonDigit(const Identifier &id)
Definition: MuonDigit.h:27
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
MuonDigit::identify
Identifier identify() const
Definition: MuonDigit.h:30
Identifiable
This class provides an abstract interface to an Identifiable object.
Definition: Identifiable.h:27
MuonDigit::m_muonId
Identifier m_muonId
Definition: MuonDigit.h:21
Identifier
Definition: IdentifierFieldParser.cxx:14