ATLAS Offline Software
StripOfflineData.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 STRIPOFFLINEDATA_H
6 #define STRIPOFFLINEDATA_H
7 
8 // Identifier includes
9 #include "Identifier/Identifier.h"
12 // local includes
14 #include <string.h>
15 
16 // namespace for the NSW LVL1 related classes
17 
18 namespace NSWL1 {
19 
20 
34  class StripOfflineData: public StripData {
35 
36  private:
37  const Identifier m_id;
39  int m_trig_bcid{};
41  float m_strip_charge{};
42  float m_strip_time{};
45  int m_band_id{};
46  int m_phi_id{};
47  float m_x{},m_y{},m_z{};
48  float m_lx{},m_ly{},m_lz{};
49  bool m_read_strip{};
50 
51  int m_sideId{};
52  int m_sectorType{};
53  int m_sectorId{};
54  int m_moduleId{};
55  int m_wedgeId{};
56  int m_layerId{};
57 
58  public:
61 
62  void setTrigBCID(int bcid);
63  void setTrigIndex(int );
64  void setStripCharge(float charge);
65  void setStripCharge_6bit(int charge);
66  void setStripCharge_10bit(int charge);
67  void setBandId(int band_id);
68  void setPhiId(int phi_id);
69  void set_readStrip(bool readStrip);
70 
71  void setSideId(int);
72  void setSectorType(int);
73  void setSectorId(int);
74  void setModuleId(int);
75  void setWedgeId(int);
76  void setLayerId(int);
77 
78 
79 
81  uint32_t id() const;
82  float time() const;
83  Identifier Identity() const;
84  int BCID() const;
85  int trigIndex() const;
86  float charge() const;
87  int trig_BCID() const;
88  float strip_charge() const;
89  int strip_charge_6bit() const;
90  int strip_charge_10bit() const;
91  bool readStrip() const;
92  int bandId() const;
93  int phiId() const;
94 
96  int sideId() const;
97  int isSmall() const;
98  int moduleId() const;
99  int sectorId() const;
100  int sectorType() const;
101  int wedge() const;
102  int layer() const;
103  int channelId() const;
104  float globX() const;
105  float globY() const;
106  float globZ() const;
107  float etaCenter() const; // in ATLAS global / eta of strip center
108  void set_globX(float pos);
109  void set_globY(float pos);
110  void set_globZ(float pos);
111  char type() const;
112  std::string stationName() const;
113  float locX() const;
114  float locY() const;
115  float locZ() const;
116  void set_locX(float pos);
117  void set_locY(float pos);
118  void set_locZ(float pos);
119  };
120 
121 } // namespace NSWL1
122 
123 #endif
NSWL1::StripOfflineData::setLayerId
void setLayerId(int)
Definition: StripOfflineData.cxx:207
NSWL1::StripOfflineData::m_trig_bcid
int m_trig_bcid
Definition: StripOfflineData.h:39
NSWL1::StripOfflineData::globY
float globY() const
global Y pos
Definition: StripOfflineData.cxx:140
NSWL1::StripOfflineData::m_y
float m_y
Definition: StripOfflineData.h:47
sTgcIdHelper.h
NSWL1::StripOfflineData::m_padTrigIndex
int m_padTrigIndex
Definition: StripOfflineData.h:40
NSWL1::StripOfflineData
class modeling the strip hit fragment for the NSW L1 offline simulation
Definition: StripOfflineData.h:34
NSWL1::StripOfflineData::sideId
int sideId() const
helper methods decoding the hit fragment position within the NSW detector
Definition: StripOfflineData.cxx:72
NSWL1::StripOfflineData::bandId
int bandId() const
get the band id
Definition: StripOfflineData.cxx:68
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
NSWL1::StripOfflineData::setSectorId
void setSectorId(int)
Definition: StripOfflineData.cxx:198
NSWL1::StripOfflineData::~StripOfflineData
~StripOfflineData()
Definition: StripOfflineData.cxx:24
NSWL1::StripOfflineData::charge
float charge() const
NSWL1::StripOfflineData::setPhiId
void setPhiId(int phi_id)
get the band id
Definition: StripOfflineData.cxx:52
NSWL1::StripOfflineData::setTrigBCID
void setTrigBCID(int bcid)
Definition: StripOfflineData.cxx:28
NSWL1::StripOfflineData::set_locZ
void set_locZ(float pos)
Definition: StripOfflineData.cxx:188
NSWL1::StripOfflineData::locY
float locY() const
local Y pos
Definition: StripOfflineData.cxx:165
NSWL1::StripOfflineData::m_lx
float m_lx
Definition: StripOfflineData.h:48
NSWL1::StripOfflineData::channelId
int channelId() const
get the channel
Definition: StripOfflineData.cxx:132
NSWL1::StripOfflineData::m_sectorType
int m_sectorType
Definition: StripOfflineData.h:52
checkRpcDigits.digit
digit
Definition: checkRpcDigits.py:186
NSWL1::StripOfflineData::m_strip_charge
float m_strip_charge
Definition: StripOfflineData.h:41
NSWL1::StripOfflineData::globX
float globX() const
Use this for clustering.
Definition: StripOfflineData.cxx:137
NSWL1::StripOfflineData::m_band_id
int m_band_id
Definition: StripOfflineData.h:45
NSWL1::StripData
abstract class to interface the data hit fragment output from the Strip TDS
Definition: TrigT1NSWSimTools/TrigT1NSWSimTools/StripData.h:30
NSWL1::StripOfflineData::set_locY
void set_locY(float pos)
Definition: StripOfflineData.cxx:185
NSWL1::StripOfflineData::m_layerId
int m_layerId
Definition: StripOfflineData.h:56
runBeamSpotCalibration.helper
helper
Definition: runBeamSpotCalibration.py:112
sTgcDigit
Definition: sTgcDigit.h:20
NSWL1::StripOfflineData::layer
int layer() const
get the gas gap (ranging from 0 to 3, 1 is at lowest |z|)
Definition: StripOfflineData.cxx:127
NSWL1::StripOfflineData::setModuleId
void setModuleId(int)
Definition: StripOfflineData.cxx:201
NSWL1::StripOfflineData::sectorType
int sectorType() const
helper methods decoding the hit fragment position within the NSW detector
Definition: StripOfflineData.cxx:107
NSWL1::StripOfflineData::locZ
float locZ() const
local Z pos
Definition: StripOfflineData.cxx:168
NSWL1::StripOfflineData::etaCenter
float etaCenter() const
Definition: StripOfflineData.cxx:147
NSWL1::StripOfflineData::set_globX
void set_globX(float pos)
Definition: StripOfflineData.cxx:152
NSWL1::StripOfflineData::moduleId
int moduleId() const
get the physics module (ranging from 0 at lowest R to 3 at highest R)
Definition: StripOfflineData.cxx:77
NSWL1::StripOfflineData::type
char type() const
Definition: StripOfflineData.cxx:98
NSWL1::StripOfflineData::isSmall
int isSmall() const
get the side (0==sideC, 1==sideA)
Definition: StripOfflineData.cxx:112
NSWL1::StripOfflineData::setBandId
void setBandId(int band_id)
get the band id
Definition: StripOfflineData.cxx:48
NSWL1::StripOfflineData::set_locX
void set_locX(float pos)
Definition: StripOfflineData.cxx:182
NSWL1::StripOfflineData::locX
float locX() const
local X pos
Definition: StripOfflineData.cxx:162
NSWL1::StripOfflineData::trigIndex
int trigIndex() const
Definition: StripOfflineData.cxx:62
NSWL1::StripOfflineData::m_wedgeId
int m_wedgeId
Definition: StripOfflineData.h:55
NSWL1::StripOfflineData::id
uint32_t id() const
methods for retrieving the bare data
Definition: StripOfflineData.cxx:58
NSWL1::StripOfflineData::setWedgeId
void setWedgeId(int)
Definition: StripOfflineData.cxx:204
NSWL1::StripOfflineData::StripOfflineData
StripOfflineData(Identifier id, const sTgcIdHelper *helper, const sTgcDigit *digit)
Definition: StripOfflineData.cxx:14
NSWL1::StripOfflineData::set_globZ
void set_globZ(float pos)
Definition: StripOfflineData.cxx:158
NSWL1::StripOfflineData::m_sideId
int m_sideId
Definition: StripOfflineData.h:51
NSWL1::StripOfflineData::trig_BCID
int trig_BCID() const
get the trigger BCID
Definition: StripOfflineData.cxx:61
NSWL1::StripOfflineData::strip_charge
float strip_charge() const
get the strip charge
Definition: StripOfflineData.cxx:64
StripData.h
NSWL1::StripOfflineData::m_strip_charge_10bit
int m_strip_charge_10bit
Definition: StripOfflineData.h:43
NSWL1::StripOfflineData::m_strip_charge_6bit
int m_strip_charge_6bit
Definition: StripOfflineData.h:44
NSWL1::StripOfflineData::m_x
float m_x
Definition: StripOfflineData.h:47
sTgcIdHelper
Definition: sTgcIdHelper.h:55
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
NSWL1::StripOfflineData::Identity
Identifier Identity() const
return indentifier
Definition: StripOfflineData.cxx:60
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
NSWL1::StripOfflineData::setStripCharge_6bit
void setStripCharge_6bit(int charge)
Definition: StripOfflineData.cxx:34
NSWL1::StripOfflineData::m_moduleId
int m_moduleId
Definition: StripOfflineData.h:54
NSWL1::StripOfflineData::setSideId
void setSideId(int)
Definition: StripOfflineData.cxx:192
NSWL1::StripOfflineData::setSectorType
void setSectorType(int)
Definition: StripOfflineData.cxx:195
NSWL1::StripOfflineData::m_id
const Identifier m_id
offline identifier of the strip hit
Definition: StripOfflineData.h:37
NSWL1::StripOfflineData::phiId
int phiId() const
get the phi id
Definition: StripOfflineData.cxx:69
NSWL1::StripOfflineData::m_strip_time
float m_strip_time
Definition: StripOfflineData.h:42
NSWL1::StripOfflineData::setTrigIndex
void setTrigIndex(int)
Definition: StripOfflineData.cxx:31
sTgcDigit.h
NSWL1::StripOfflineData::m_ly
float m_ly
Definition: StripOfflineData.h:48
NSWL1::StripOfflineData::m_lz
float m_lz
Definition: StripOfflineData.h:48
NSWL1::StripOfflineData::time
float time() const
global X pos
Definition: StripOfflineData.cxx:59
NSWL1::StripOfflineData::m_sectorId
int m_sectorId
Definition: StripOfflineData.h:53
NSWL1::StripOfflineData::set_globY
void set_globY(float pos)
Definition: StripOfflineData.cxx:155
NSWL1::StripOfflineData::wedge
int wedge() const
get the multiplet (ranging from 0 to 1, 1 is at lowest |z|)
Definition: StripOfflineData.cxx:122
NSWL1::StripOfflineData::strip_charge_6bit
int strip_charge_6bit() const
get the strip charge in 6 bit
Definition: StripOfflineData.cxx:65
NSWL1
A trigger trigger candidate for a stgc sector.
Definition: NSWL1Simulation.cxx:9
NSWL1::StripOfflineData::sectorId
int sectorId() const
get the sector (ranging from 0 to 15)
Definition: StripOfflineData.cxx:82
NSWL1::StripOfflineData::m_z
float m_z
Definition: StripOfflineData.h:47
NSWL1::StripOfflineData::m_phi_id
int m_phi_id
Definition: StripOfflineData.h:46
NSWL1::StripOfflineData::setStripCharge
void setStripCharge(float charge)
Definition: StripOfflineData.cxx:42
NSWL1::StripOfflineData::BCID
int BCID() const
NSWL1::StripOfflineData::readStrip
bool readStrip() const
Check if strip should be read.
Definition: StripOfflineData.cxx:173
NSWL1::StripOfflineData::m_helper
const sTgcIdHelper * m_helper
helper for the identifier decoding
Definition: StripOfflineData.h:38
NSWL1::StripOfflineData::set_readStrip
void set_readStrip(bool readStrip)
Definition: StripOfflineData.cxx:177
NSWL1::StripOfflineData::stationName
std::string stationName() const
Definition: StripOfflineData.cxx:91
NSWL1::StripOfflineData::setStripCharge_10bit
void setStripCharge_10bit(int charge)
Definition: StripOfflineData.cxx:38
NSWL1::StripOfflineData::strip_charge_10bit
int strip_charge_10bit() const
get the strip charge in 10 bit
Definition: StripOfflineData.cxx:66
NSWL1::StripOfflineData::m_read_strip
bool m_read_strip
Definition: StripOfflineData.h:49
NSWL1::StripOfflineData::globZ
float globZ() const
globzl Z pos
Definition: StripOfflineData.cxx:143
Identifier
Definition: IdentifierFieldParser.cxx:14