ATLAS Offline Software
SiSurfaceCharge.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // SiSurfaceCharge.h
7 // Header file for class SiSurfaceCharge
9 // (c) ATLAS Detector software
11 // Class which contains a charge located at the sensor surface
13 // Version 1.0 09/02/2001 David Calvet
15 
16 #ifndef SIDIGITIZATION_SISURFACECHARGE_H
17 #define SIDIGITIZATION_SISURFACECHARGE_H
18 
20 #include "InDetSimEvent/SiCharge.h"
21 
22 
24 
26  // Public methods:
28 public:
29 
30  // Copy constructor:
31  SiSurfaceCharge(const SiSurfaceCharge &surfaceCharge);
32 
33  // Constructor with parameters:
34  // position at the sensor surface
35  // charge located at this position
37 
38  // Destructor:
40 
41  // Assignment operator:
42  SiSurfaceCharge &operator=(const SiSurfaceCharge &surfaceCharge);
43 
45  // Const methods:
47 
48  // position at the sensor surface:
49  const InDetDD::SiLocalPosition& position() const;
50 
51  // charge located at this position:
52  const SiCharge& charge() const;
53 
55  // Private methods:
57 private:
58 
60 
62  // Private data:
64 private:
65  InDetDD::SiLocalPosition m_position; // position at the sensor surface
66  SiCharge m_charge; // charge located at this position
67 };
68 
70 // Inline methods:
73 {}
74 
76 {
77  return m_position;
78 }
79 
80 inline const SiCharge& SiSurfaceCharge::charge() const
81 {
82  return m_charge;
83 }
84 
85 #endif // SIDIGITIZATION_SISURFACECHARGE_H
SiSurfaceCharge::m_charge
SiCharge m_charge
Definition: SiSurfaceCharge.h:66
SiSurfaceCharge
Definition: SiSurfaceCharge.h:23
SiSurfaceCharge::~SiSurfaceCharge
~SiSurfaceCharge()
Definition: SiSurfaceCharge.h:72
SiCharge
Definition: SiCharge.h:25
SiSurfaceCharge::m_position
InDetDD::SiLocalPosition m_position
Definition: SiSurfaceCharge.h:65
SiSurfaceCharge::position
const InDetDD::SiLocalPosition & position() const
Definition: SiSurfaceCharge.h:75
InDetDD::SiLocalPosition
Definition: SiLocalPosition.h:31
SiSurfaceCharge::charge
const SiCharge & charge() const
Definition: SiSurfaceCharge.h:80
SiSurfaceCharge::operator=
SiSurfaceCharge & operator=(const SiSurfaceCharge &surfaceCharge)
Definition: SiSurfaceCharge.cxx:27
SiLocalPosition.h
SiSurfaceCharge::SiSurfaceCharge
SiSurfaceCharge()
SiSurfaceCharge::SiSurfaceCharge
SiSurfaceCharge(const SiSurfaceCharge &surfaceCharge)
SiCharge.h