ATLAS Offline Software
Loading...
Searching...
No Matches
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
15Class 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
27public:
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
48private:
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
double magneticField() const
~MdtDigiToolInput()=default
double gamma() const
double electriccharge() const
double radius() const
MdtDigiToolInput(double radius, double posx, double field, double temp, double electrcharge, double gammafact, Identifier hitID)
Identifier getHitID() const
double temperature() const
double positionAlongWire() const