ATLAS Offline Software
Loading...
Searching...
No Matches
MMT_Hit.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3 */
4
5#ifndef MMT_HIT_H
6#define MMT_HIT_H
7
11#include <cmath>
12
13class MMT_Hit {
14 public:
15 MMT_Hit(const Identifier &id, const std::string& stationName,
16 const int stEta, const int stPhi, const int sectorPhi,
17 const int multiplet, const int gasGap, const int channel,
18 const float stripTime, const int BC,
19 const MuonGM::MuonDetectorManager* detManager);
20
21 ~MMT_Hit() = default;
22
23 // Getters
24 int getART() const { return m_ART_ASIC; }
25 int getAge() const { return m_age; }
26 int getBC() const { return m_BC_time; }
27 int getChannel() const { return m_strip; }
28 int getPlane() const { return m_plane; }
29 char getSector() const { return m_sector; }
30 double getRZSlope() const { return m_RZslope; }
31 int getVMM() const { return m_VMM_chip; }
32 double getShift() const { return m_shift; }
33 int getStationEta() const { return m_station_eta; }
34 int getStationPhi() const { return m_station_phi; }
35 int getSectorPhi() const { return m_sector_phi; }
36 double getR() const { return m_R; }
37 double getRp() const { return m_Rp; }
38 double getZ() const { return m_Z; }
39 double getPitchOverZ() const { return m_PitchOverZ; }
40 float getTime() const { return m_time; }
41 bool isX() const { return m_isX; }
42 bool isU() const { return m_isU; }
43 bool isV() const { return m_isV; }
44 bool infSlope() const { return std::isinf(m_RZslope); }
45
46 // Setters
47 void setAge(int age) { m_age = age; }
48
49 private:
50 double m_RZslope{-1}, m_Rp{-1};
51 double m_Z{-1}, m_R{-1};
52 double m_PitchOverZ{-1}, m_shift{-1};
53 float m_time;
62 int m_age;
64 bool m_isX{false};
65 bool m_isU{false};
66 bool m_isV{false};
67};
68#endif
bool infSlope() const
Definition MMT_Hit.h:44
double getRp() const
Definition MMT_Hit.h:37
int m_BC_time
Definition MMT_Hit.h:61
int getStationEta() const
Definition MMT_Hit.h:33
double getZ() const
Definition MMT_Hit.h:38
int m_plane
Definition MMT_Hit.h:56
void setAge(int age)
Definition MMT_Hit.h:47
int m_station_eta
Definition MMT_Hit.h:57
double m_Rp
Definition MMT_Hit.h:50
double getR() const
Definition MMT_Hit.h:36
float m_time
Definition MMT_Hit.h:53
MMT_Hit(const Identifier &id, const std::string &stationName, const int stEta, const int stPhi, const int sectorPhi, const int multiplet, const int gasGap, const int channel, const float stripTime, const int BC, const MuonGM::MuonDetectorManager *detManager)
Definition MMT_Hit.cxx:7
int getChannel() const
Definition MMT_Hit.h:27
int getART() const
Definition MMT_Hit.h:24
int m_VMM_chip
Definition MMT_Hit.h:54
char getSector() const
Definition MMT_Hit.h:29
bool isX() const
Definition MMT_Hit.h:41
double getRZSlope() const
Definition MMT_Hit.h:30
double m_RZslope
Definition MMT_Hit.h:50
int m_sector_phi
Definition MMT_Hit.h:59
int getStationPhi() const
Definition MMT_Hit.h:34
int getBC() const
Definition MMT_Hit.h:26
double getShift() const
Definition MMT_Hit.h:32
double m_shift
Definition MMT_Hit.h:52
int m_strip
Definition MMT_Hit.h:60
char m_sector
Definition MMT_Hit.h:63
double m_Z
Definition MMT_Hit.h:51
double m_PitchOverZ
Definition MMT_Hit.h:52
int getAge() const
Definition MMT_Hit.h:25
int getSectorPhi() const
Definition MMT_Hit.h:35
bool m_isX
Definition MMT_Hit.h:64
bool m_isV
Definition MMT_Hit.h:66
~MMT_Hit()=default
bool m_isU
Definition MMT_Hit.h:65
double getPitchOverZ() const
Definition MMT_Hit.h:39
int m_station_phi
Definition MMT_Hit.h:58
float getTime() const
Definition MMT_Hit.h:40
int m_age
Definition MMT_Hit.h:62
int getPlane() const
Definition MMT_Hit.h:28
double m_R
Definition MMT_Hit.h:51
int getVMM() const
Definition MMT_Hit.h:31
int m_ART_ASIC
Definition MMT_Hit.h:55
bool isU() const
Definition MMT_Hit.h:42
bool isV() const
Definition MMT_Hit.h:43
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...