ATLAS Offline Software
Loading...
Searching...
No Matches
MMT_Hit.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2025 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 isNoise() const { return m_isNoise; }
42 bool isX() const { return m_isX; }
43 bool isU() const { return m_isU; }
44 bool isV() const { return m_isV; }
45 bool infSlope() const { return std::isinf(m_RZslope); }
46
47 // Setters
48 void setAge(int age) { m_age = age; }
49 void setAsNoise() { m_isNoise = true; }
50
51 private:
52 double m_RZslope{-1}, m_Rp{-1};
53 double m_Z{-1}, m_R{-1};
54 double m_PitchOverZ{-1}, m_shift{-1};
55 float m_time;
64 int m_age;
66 bool m_isNoise{false};
67 bool m_isX{false};
68 bool m_isU{false};
69 bool m_isV{false};
70};
71#endif
bool infSlope() const
Definition MMT_Hit.h:45
double getRp() const
Definition MMT_Hit.h:37
int m_BC_time
Definition MMT_Hit.h:63
int getStationEta() const
Definition MMT_Hit.h:33
double getZ() const
Definition MMT_Hit.h:38
int m_plane
Definition MMT_Hit.h:58
void setAge(int age)
Definition MMT_Hit.h:48
int m_station_eta
Definition MMT_Hit.h:59
double m_Rp
Definition MMT_Hit.h:52
double getR() const
Definition MMT_Hit.h:36
float m_time
Definition MMT_Hit.h:55
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:56
char getSector() const
Definition MMT_Hit.h:29
bool isX() const
Definition MMT_Hit.h:42
double getRZSlope() const
Definition MMT_Hit.h:30
double m_RZslope
Definition MMT_Hit.h:52
bool m_isNoise
Definition MMT_Hit.h:66
void setAsNoise()
Definition MMT_Hit.h:49
int m_sector_phi
Definition MMT_Hit.h:61
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:54
int m_strip
Definition MMT_Hit.h:62
char m_sector
Definition MMT_Hit.h:65
double m_Z
Definition MMT_Hit.h:53
double m_PitchOverZ
Definition MMT_Hit.h:54
int getAge() const
Definition MMT_Hit.h:25
int getSectorPhi() const
Definition MMT_Hit.h:35
bool m_isX
Definition MMT_Hit.h:67
bool m_isV
Definition MMT_Hit.h:69
~MMT_Hit()=default
bool m_isU
Definition MMT_Hit.h:68
double getPitchOverZ() const
Definition MMT_Hit.h:39
int m_station_phi
Definition MMT_Hit.h:60
float getTime() const
Definition MMT_Hit.h:40
int m_age
Definition MMT_Hit.h:64
int getPlane() const
Definition MMT_Hit.h:28
double m_R
Definition MMT_Hit.h:53
int getVMM() const
Definition MMT_Hit.h:31
int m_ART_ASIC
Definition MMT_Hit.h:57
bool isU() const
Definition MMT_Hit.h:43
bool isV() const
Definition MMT_Hit.h:44
bool isNoise() const
Definition MMT_Hit.h:41
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...