ATLAS Offline Software
MdtDigiToolInput.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 #ifndef MDT_DIGITIZATION_MDTDIGITOOLINPUT_H
6 #define MDT_DIGITIZATION_MDTDIGITOOLINPUT_H
7 #include "Identifier/Identifier.h"
8 /*-----------------------------------------------
9 
10  Created 7-5-2004 by Niels van Eldik
11  Modified by Dinos Bachas
12 
13  20-08-2011 Modified by Oleg Bulekov. The electric charge has been added
14  06-10-2011 Modified by Oleg Bulekov. The gamma factor has been added
15 Class to store input needed for the MDT_Digitization tools:
16  - G4 driftradius
17  - position along tube
18  - magnetic field strength at hit position
19  - local temperature
20  - electric charge
21  - gamma factor
22  - hit Identifier
23 
24 -----------------------------------------------*/
25 
27 public:
28 
29  MdtDigiToolInput(double radius, double posx, double field, double temp, double electrcharge, double gammafact, Identifier hitID) :
31  m_xpos(posx),
32  m_field(field),
33  m_temperature(temp),
34  m_electriccharge(electrcharge),
35  m_gamma(gammafact),
36  m_hitID(hitID) {}
37 
38  ~MdtDigiToolInput() = default;
39 
40  double radius() const { return m_radius; }
41  double positionAlongWire() const { return m_xpos; }
42  double magneticField() const { return m_field; }
43  double temperature() const { return m_temperature; }
44  double electriccharge() const { return m_electriccharge; }
45  double gamma() const { return m_gamma; }
46  Identifier getHitID() const { return m_hitID; }
47 
48 private:
49  double m_radius{0.};
50  double m_xpos{0.};
51  double m_field{0.};
52  double m_temperature{0.};
53  double m_electriccharge{0.};
54  double m_gamma{0.};
56 };
57 
58 #endif
MdtDigiToolInput
Definition: MdtDigiToolInput.h:26
MdtDigiToolInput::~MdtDigiToolInput
~MdtDigiToolInput()=default
ReadOfcFromCool.field
field
Definition: ReadOfcFromCool.py:48
MdtDigiToolInput::m_field
double m_field
Definition: MdtDigiToolInput.h:51
MdtDigiToolInput::m_temperature
double m_temperature
Definition: MdtDigiToolInput.h:52
MdtDigiToolInput::magneticField
double magneticField() const
Definition: MdtDigiToolInput.h:42
MdtDigiToolInput::positionAlongWire
double positionAlongWire() const
Definition: MdtDigiToolInput.h:41
MdtDigiToolInput::electriccharge
double electriccharge() const
Definition: MdtDigiToolInput.h:44
MdtDigiToolInput::m_gamma
double m_gamma
Definition: MdtDigiToolInput.h:54
MdtDigiToolInput::m_electriccharge
double m_electriccharge
Definition: MdtDigiToolInput.h:53
MdtDigiToolInput::getHitID
Identifier getHitID() const
Definition: MdtDigiToolInput.h:46
MdtDigiToolInput::radius
double radius() const
Definition: MdtDigiToolInput.h:40
MdtDigiToolInput::m_radius
double m_radius
Definition: MdtDigiToolInput.h:49
MdtDigiToolInput::MdtDigiToolInput
MdtDigiToolInput(double radius, double posx, double field, double temp, double electrcharge, double gammafact, Identifier hitID)
Definition: MdtDigiToolInput.h:29
MdtDigiToolInput::m_xpos
double m_xpos
Definition: MdtDigiToolInput.h:50
MdtDigiToolInput::m_hitID
Identifier m_hitID
Definition: MdtDigiToolInput.h:55
MdtDigiToolInput::temperature
double temperature() const
Definition: MdtDigiToolInput.h:43
MdtDigiToolInput::gamma
double gamma() const
Definition: MdtDigiToolInput.h:45
Identifier
Definition: IdentifierFieldParser.cxx:14