ATLAS Offline Software
Loading...
Searching...
No Matches
FPGATrackSimHit Class Reference

#include <FPGATrackSimHit.h>

Collaboration diagram for FPGATrackSimHit:

Public Member Functions

 FPGATrackSimHit ()=default
virtual ~FPGATrackSimHit ()=default
void setHitType (HitType type)
void setDetType (SiliconTech detType)
void setDetectorZone (DetectorZone detZone)
HitType getHitType () const
SiliconTech getDetType () const
DetectorZone getDetectorZone () const
bool isMapped () const
bool isClustered () const
bool isReal () const
bool isPixel () const
bool isStrip () const
bool isBarrel () const
unsigned getDim () const
int getRoadID () const
void setIdentifier (unsigned int v)
void setIdentifierHash (unsigned v)
void setRdoIdentifier (Identifier::value_type v)
void setLayerDisk (unsigned v)
void setSide (unsigned v)
void setPhysLayer (unsigned v)
void setEtaModule (int v)
void setPhiModule (unsigned v)
void setEtaWidth (unsigned v)
void setPhiWidth (unsigned v)
unsigned int getIdentifier () const
unsigned getIdentifierHash () const
Identifier::value_type getRdoIdentifier () const
unsigned getLayerDisk (bool old=false) const
unsigned getSide () const
unsigned getPhysLayer (bool old=false) const
unsigned getEtaWidth () const
unsigned getPhiWidth () const
int getEtaModule (bool old=false) const
unsigned getPhiModule () const
void setLayer (unsigned v)
void setSection (unsigned v)
int getLayer () const
unsigned getSection () const
void setRoadID (int roadID)
void setPhiIndex (unsigned v)
void setEtaIndex (unsigned v)
void setCentroidPhiIndex (float v)
void setCentroidEtaIndex (float v)
void setPhiCoord (float v)
void setEtaCoord (float v)
unsigned getPhiIndex () const
unsigned getEtaIndex () const
float getCentroidPhiIndex () const
float getCentroidEtaIndex () const
float getPhiCoord () const
float getEtaCoord () const
void setMaxPhiIndex (int v)
void setMinPhiIndex (int v)
void setMaxEtaIndex (int v)
void setMinEtaIndex (int v)
int getMaxPhiIndex () const
int getMinPhiIndex () const
int getMaxEtaIndex () const
int getMinEtaIndex () const
float getPhiWindow () const
void makeSpacepoint (float x, float y, float z, float window, FPGATrackSimHit &other, FPGATrackSimMultiTruth &new_truth)
const FPGATrackSimHit getOriginalHit () const
int getPairedEtaModule () const
unsigned getPairedPhiModule () const
unsigned getPairedSection () const
unsigned getPairedLayer () const
unsigned getPairedPhysLayer () const
DetectorZone getPairedDetZone () const
SiliconTech getPairedDetType () const
void setPairedLayer (unsigned v)
void setPairedSection (unsigned v)
void setX (float v)
void setY (float v)
void setZ (float v)
float getX () const
float getY () const
float getZ () const
float getR () const
float getGPhi () const
float getGCotTheta () const
void setToT (unsigned v)
void setBarcode (const HepMcParticleLink::barcode_type &v)
void setUniqueID (const HepMcParticleLink::barcode_type &v)
void setBarcodePt (float v)
void setEventIndex (long v)
void setParentageMask (unsigned long v)
void setTruth (const FPGATrackSimMultiTruth &v)
unsigned getToT () const
HepMcParticleLink::barcode_type getBarcode () const
HepMcParticleLink::barcode_type getUniqueID () const
long getEventIndex () const
float getBarcodePt () const
unsigned long getParentageMask () const
const FPGATrackSimMultiTruthgetTruth () const
bool isValidForITkHit () const
int getStripRowIDForITk () const
int getStripChipIDForITk () const
int getStripHitMapForITk () const
void setisValidForITkHit (bool v)
void setStripRowIDForITk (int v)
void setStripChipIDForITk (int v)
void setStripHitMapForITk (int v)
int getCluster1ID () const
void setCluster1ID (int v)
int getCluster2ID () const
void setCluster2ID (int v)
const std::vector< int > & getPhiIndexVec () const
const std::vector< int > & getEtaIndexVec () const
const std::vector< unsigned > & getIDHashVec () const
void addPhiIndexToVec (int phi)
void addEtaIndexToVec (int eta)
void addIDHashToVec (unsigned id)
bool isRemapped () const
void setRemap ()

Protected Member Functions

 ClassDefNV (FPGATrackSimHit, 15)

Protected Attributes

HitType m_hitType = HitType::undefined
DetectorZone m_detectorZone = DetectorZone::undefined
SiliconTech m_detType = SiliconTech::undefined
unsigned int m_identifier = 0
unsigned m_identifierHash = 0
Identifier::value_type m_rdoIdentifier = 0
unsigned m_layer_disk = 0
unsigned m_layer_disk_old = 0
unsigned m_side = 0
unsigned m_side_old = 0
int m_etaModule = 0
int m_etaModule_old = 0
unsigned m_phiModule = 0
unsigned m_etaWidth = 0
unsigned m_phiWidth = 0
int m_layer = -1
int m_section = -1
bool m_isRemapped = false
int m_phiIndex = -1
int m_etaIndex = -1
float m_centroidPhiIndex = -1
float m_centroidEtaIndex = -1
float m_phiCoord = -999
float m_etaCoord = -999
int m_maxPhiIndex = std::numeric_limits<int>::min()
int m_minPhiIndex = std::numeric_limits<int>::max()
int m_maxEtaIndex = std::numeric_limits<int>::min()
int m_minEtaIndex = std::numeric_limits<int>::max()
float m_x = 0
float m_y = 0
float m_z = 0
float m_originalX = 0
float m_originalY = 0
float m_originalZ = 0
float m_phiWindow = 0
unsigned m_pairedPhiModule = -1
int m_pairedEtaModule = -1
DetectorZone m_pairedDetZone = DetectorZone::undefined
SiliconTech m_pairedDetType = SiliconTech::undefined
unsigned m_pairedPhysLayer = 0
unsigned m_pairedSection = 0
unsigned m_pairedLayer = 0
unsigned m_hw_word = 0
unsigned m_ToT = 0
long m_eventindex = 0
HepMcParticleLink::barcode_type m_barcode = 0
HepMcParticleLink::barcode_type m_uniqueID = 0
float m_barcode_pt = 0
unsigned long m_parentage_mask = 0
FPGATrackSimMultiTruth m_truth
int m_clusterIndex1ForFPGA = -1
int m_clusterIndex2ForFPGA = -1
bool m_isValidForITK = false
int m_stripRowinITKEDM = -1
int m_stripChipinITKEDM = -1
int m_stripHitMapinITKEDM = -1
int m_roadID = 0
std::vector< unsigned > m_IDhashVec
std::vector< int > m_PhiIndexVec
std::vector< int > m_EtaIndexVec

Friends

std::ostream & operator<< (std::ostream &out, const FPGATrackSimHit &hit)

Detailed Description

Definition at line 41 of file FPGATrackSimHit.h.

Constructor & Destructor Documentation

◆ FPGATrackSimHit()

FPGATrackSimHit::FPGATrackSimHit ( )
default

◆ ~FPGATrackSimHit()

virtual FPGATrackSimHit::~FPGATrackSimHit ( )
virtualdefault

Member Function Documentation

◆ addEtaIndexToVec()

void FPGATrackSimHit::addEtaIndexToVec ( int eta)
inline

Definition at line 205 of file FPGATrackSimHit.h.

205{m_EtaIndexVec.push_back(eta);}
Scalar eta() const
pseudorapidity method
std::vector< int > m_EtaIndexVec

◆ addIDHashToVec()

void FPGATrackSimHit::addIDHashToVec ( unsigned id)
inline

Definition at line 206 of file FPGATrackSimHit.h.

206{m_IDhashVec.push_back(id);}
std::vector< unsigned > m_IDhashVec

◆ addPhiIndexToVec()

void FPGATrackSimHit::addPhiIndexToVec ( int phi)
inline

Definition at line 204 of file FPGATrackSimHit.h.

204{m_PhiIndexVec.push_back(phi);}
Scalar phi() const
phi method
std::vector< int > m_PhiIndexVec

◆ ClassDefNV()

FPGATrackSimHit::ClassDefNV ( FPGATrackSimHit ,
15  )
protected

◆ getBarcode()

HepMcParticleLink::barcode_type FPGATrackSimHit::getBarcode ( ) const
inline

Definition at line 168 of file FPGATrackSimHit.h.

168{ return m_barcode; }
HepMcParticleLink::barcode_type m_barcode

◆ getBarcodePt()

float FPGATrackSimHit::getBarcodePt ( ) const
inline

Definition at line 171 of file FPGATrackSimHit.h.

171{ return m_barcode_pt; }

◆ getCentroidEtaIndex()

float FPGATrackSimHit::getCentroidEtaIndex ( ) const
inline

Definition at line 113 of file FPGATrackSimHit.h.

113{ return m_centroidEtaIndex; }

◆ getCentroidPhiIndex()

float FPGATrackSimHit::getCentroidPhiIndex ( ) const
inline

Definition at line 112 of file FPGATrackSimHit.h.

112{ return m_centroidPhiIndex; }

◆ getCluster1ID()

int FPGATrackSimHit::getCluster1ID ( ) const
inline

Definition at line 193 of file FPGATrackSimHit.h.

◆ getCluster2ID()

int FPGATrackSimHit::getCluster2ID ( ) const
inline

Definition at line 196 of file FPGATrackSimHit.h.

◆ getDetectorZone()

DetectorZone FPGATrackSimHit::getDetectorZone ( ) const
inline

Definition at line 60 of file FPGATrackSimHit.h.

60{ return m_detectorZone; }
DetectorZone m_detectorZone

◆ getDetType()

SiliconTech FPGATrackSimHit::getDetType ( ) const
inline

Definition at line 59 of file FPGATrackSimHit.h.

59{ return m_detType; }
SiliconTech m_detType

◆ getDim()

unsigned FPGATrackSimHit::getDim ( ) const
inline

Definition at line 68 of file FPGATrackSimHit.h.

68{ return isPixel() ? 2 : 1; } // TODO all calls of this should be replaced with a call to plane map
bool isPixel() const

◆ getEtaCoord()

float FPGATrackSimHit::getEtaCoord ( ) const
inline

Definition at line 115 of file FPGATrackSimHit.h.

115{ return m_etaCoord; }

◆ getEtaIndex()

unsigned FPGATrackSimHit::getEtaIndex ( ) const
inline

Definition at line 111 of file FPGATrackSimHit.h.

111{ return m_etaIndex; }

◆ getEtaIndexVec()

const std::vector< int > & FPGATrackSimHit::getEtaIndexVec ( ) const
inline

Definition at line 201 of file FPGATrackSimHit.h.

201{ return m_EtaIndexVec;}

◆ getEtaModule()

int FPGATrackSimHit::getEtaModule ( bool old = false) const
inline

Definition at line 90 of file FPGATrackSimHit.h.

90{ if (old && isRemapped()) return m_etaModule_old; else return m_etaModule; }
bool isRemapped() const

◆ getEtaWidth()

unsigned FPGATrackSimHit::getEtaWidth ( ) const
inline

Definition at line 88 of file FPGATrackSimHit.h.

88{ return m_etaWidth; }

◆ getEventIndex()

long FPGATrackSimHit::getEventIndex ( ) const
inline

Definition at line 170 of file FPGATrackSimHit.h.

170{ return m_eventindex; }

◆ getGCotTheta()

float FPGATrackSimHit::getGCotTheta ( ) const
inline

Definition at line 157 of file FPGATrackSimHit.h.

157{ return m_z / getR(); } // cot(theta) = z/r
float getR() const

◆ getGPhi()

float FPGATrackSimHit::getGPhi ( ) const
inline

Definition at line 156 of file FPGATrackSimHit.h.

156{ return TMath::ATan2(m_y, m_x); }

◆ getHitType()

HitType FPGATrackSimHit::getHitType ( ) const
inline

Definition at line 58 of file FPGATrackSimHit.h.

58{ return m_hitType; }

◆ getIdentifier()

unsigned int FPGATrackSimHit::getIdentifier ( ) const
inline

Definition at line 82 of file FPGATrackSimHit.h.

82{ return m_identifier; } // 32 bit (short) module identifier
unsigned int m_identifier

◆ getIdentifierHash()

unsigned FPGATrackSimHit::getIdentifierHash ( ) const
inline

Definition at line 83 of file FPGATrackSimHit.h.

83{ return m_identifierHash; } // TODO note this might break things in the same way as getSide() a few lines below. If so, recomment.
unsigned m_identifierHash

◆ getIDHashVec()

const std::vector< unsigned > & FPGATrackSimHit::getIDHashVec ( ) const
inline

Definition at line 202 of file FPGATrackSimHit.h.

202{ return m_IDhashVec;}

◆ getLayer()

int FPGATrackSimHit::getLayer ( ) const

Definition at line 87 of file FPGATrackSimHit.cxx.

88{
89 return m_layer;
90}

◆ getLayerDisk()

unsigned FPGATrackSimHit::getLayerDisk ( bool old = false) const
inline

Definition at line 85 of file FPGATrackSimHit.h.

85{ if (old && isRemapped()) return m_layer_disk_old; else return m_layer_disk;} // ITk layer number
unsigned m_layer_disk_old

◆ getMaxEtaIndex()

int FPGATrackSimHit::getMaxEtaIndex ( ) const
inline

Definition at line 123 of file FPGATrackSimHit.h.

123{ return m_maxEtaIndex; }

◆ getMaxPhiIndex()

int FPGATrackSimHit::getMaxPhiIndex ( ) const
inline

Definition at line 121 of file FPGATrackSimHit.h.

121{ return m_maxPhiIndex; }

◆ getMinEtaIndex()

int FPGATrackSimHit::getMinEtaIndex ( ) const
inline

Definition at line 124 of file FPGATrackSimHit.h.

124{ return m_minEtaIndex; }

◆ getMinPhiIndex()

int FPGATrackSimHit::getMinPhiIndex ( ) const
inline

Definition at line 122 of file FPGATrackSimHit.h.

122{ return m_minPhiIndex; }

◆ getOriginalHit()

const FPGATrackSimHit FPGATrackSimHit::getOriginalHit ( ) const

Definition at line 131 of file FPGATrackSimHit.cxx.

131 {
132 // Only works for spacepoints. TODO: subclass...
133 FPGATrackSimHit original = *(this);
135 return *this;
136 }
137
138 // Restore the x/y/z coordinates. That should be all we have to do!
139 original.setX(m_originalX);
140 original.setY(m_originalY);
141 original.setZ(m_originalZ);
142
143 // Change the type... is "clustered" the right type?
145
146 // Technically, we could also restore the original truth.
147
148 return original;
149}
void setHitType(HitType type)
void setZ(float v)
FPGATrackSimHit()=default
void setX(float v)
void setY(float v)
HitType getHitType() const

◆ getPairedDetType()

SiliconTech FPGATrackSimHit::getPairedDetType ( ) const
inline

Definition at line 142 of file FPGATrackSimHit.h.

142{ return m_pairedDetType; }
SiliconTech m_pairedDetType

◆ getPairedDetZone()

DetectorZone FPGATrackSimHit::getPairedDetZone ( ) const
inline

Definition at line 141 of file FPGATrackSimHit.h.

141{ return m_pairedDetZone; }
DetectorZone m_pairedDetZone

◆ getPairedEtaModule()

int FPGATrackSimHit::getPairedEtaModule ( ) const
inline

Definition at line 136 of file FPGATrackSimHit.h.

136{ return m_pairedEtaModule; }

◆ getPairedLayer()

unsigned FPGATrackSimHit::getPairedLayer ( ) const
inline

Definition at line 139 of file FPGATrackSimHit.h.

139{ return m_pairedLayer; }

◆ getPairedPhiModule()

unsigned FPGATrackSimHit::getPairedPhiModule ( ) const
inline

Definition at line 137 of file FPGATrackSimHit.h.

137{ return m_pairedPhiModule; }
unsigned m_pairedPhiModule

◆ getPairedPhysLayer()

unsigned FPGATrackSimHit::getPairedPhysLayer ( ) const
inline

Definition at line 140 of file FPGATrackSimHit.h.

140{ return m_pairedPhysLayer; }
unsigned m_pairedPhysLayer

◆ getPairedSection()

unsigned FPGATrackSimHit::getPairedSection ( ) const
inline

Definition at line 138 of file FPGATrackSimHit.h.

138{ return m_pairedSection; }

◆ getParentageMask()

unsigned long FPGATrackSimHit::getParentageMask ( ) const
inline

Definition at line 172 of file FPGATrackSimHit.h.

172{ return m_parentage_mask; }
unsigned long m_parentage_mask

◆ getPhiCoord()

float FPGATrackSimHit::getPhiCoord ( ) const
inline

Definition at line 114 of file FPGATrackSimHit.h.

114{ return m_phiCoord; }

◆ getPhiIndex()

unsigned FPGATrackSimHit::getPhiIndex ( ) const
inline

Definition at line 110 of file FPGATrackSimHit.h.

110{ return m_phiIndex; }

◆ getPhiIndexVec()

const std::vector< int > & FPGATrackSimHit::getPhiIndexVec ( ) const
inline

Definition at line 200 of file FPGATrackSimHit.h.

200{ return m_PhiIndexVec;}

◆ getPhiModule()

unsigned FPGATrackSimHit::getPhiModule ( ) const
inline

Definition at line 91 of file FPGATrackSimHit.h.

91{ return m_phiModule; }

◆ getPhiWidth()

unsigned FPGATrackSimHit::getPhiWidth ( ) const
inline

Definition at line 89 of file FPGATrackSimHit.h.

89{ return m_phiWidth; }

◆ getPhiWindow()

float FPGATrackSimHit::getPhiWindow ( ) const
inline

Definition at line 126 of file FPGATrackSimHit.h.

126{ return m_phiWindow; }

◆ getPhysLayer()

unsigned FPGATrackSimHit::getPhysLayer ( bool old = false) const

Definition at line 72 of file FPGATrackSimHit.cxx.

73{
74 if (old && isRemapped()) {
76 return 2 * m_layer_disk_old + m_side_old;
77 return m_layer_disk_old;
78 }
79 else {
81 return 2 * m_layer_disk + m_side;
82 return m_layer_disk;
83 }
84}

◆ getR()

float FPGATrackSimHit::getR ( ) const
inline

Definition at line 155 of file FPGATrackSimHit.h.

155{ return TMath::Sqrt(m_x * m_x + m_y * m_y); } // This is cylindrical radius

◆ getRdoIdentifier()

Identifier::value_type FPGATrackSimHit::getRdoIdentifier ( ) const
inline

Definition at line 84 of file FPGATrackSimHit.h.

84{ return m_rdoIdentifier; } // this returns the entire 64 bit hit identifier. TODO instead of storing it, calculate it based on the module ID and eta/phi index
Identifier::value_type m_rdoIdentifier

◆ getRoadID()

int FPGATrackSimHit::getRoadID ( ) const
inline

Definition at line 69 of file FPGATrackSimHit.h.

69{ return m_roadID; }

◆ getSection()

unsigned FPGATrackSimHit::getSection ( ) const

Definition at line 92 of file FPGATrackSimHit.cxx.

93{
94 if (isMapped()) return m_section;
95 throw std::domain_error("FPGATrackSimHit::getSection() called on a hit with invalid type");
96}
bool isMapped() const

◆ getSide()

unsigned FPGATrackSimHit::getSide ( ) const
inline

Definition at line 86 of file FPGATrackSimHit.h.

86{ return m_side; } // strip side TODO note this has been uncommented on 4/20/21. If wrappers suddenly break, recomment this. Same for getIdentifierHash above.

◆ getStripChipIDForITk()

int FPGATrackSimHit::getStripChipIDForITk ( ) const
inline

Definition at line 185 of file FPGATrackSimHit.h.

◆ getStripHitMapForITk()

int FPGATrackSimHit::getStripHitMapForITk ( ) const
inline

Definition at line 186 of file FPGATrackSimHit.h.

◆ getStripRowIDForITk()

int FPGATrackSimHit::getStripRowIDForITk ( ) const
inline

Definition at line 184 of file FPGATrackSimHit.h.

◆ getToT()

unsigned FPGATrackSimHit::getToT ( ) const
inline

Definition at line 167 of file FPGATrackSimHit.h.

167{ return m_ToT ;}

◆ getTruth()

const FPGATrackSimMultiTruth & FPGATrackSimHit::getTruth ( ) const
inline

Definition at line 173 of file FPGATrackSimHit.h.

173{ return m_truth; }
FPGATrackSimMultiTruth m_truth

◆ getUniqueID()

HepMcParticleLink::barcode_type FPGATrackSimHit::getUniqueID ( ) const
inline

Definition at line 169 of file FPGATrackSimHit.h.

169{ return m_uniqueID; }
HepMcParticleLink::barcode_type m_uniqueID

◆ getX()

float FPGATrackSimHit::getX ( ) const
inline

Definition at line 152 of file FPGATrackSimHit.h.

152{ return m_x; }

◆ getY()

float FPGATrackSimHit::getY ( ) const
inline

Definition at line 153 of file FPGATrackSimHit.h.

153{ return m_y; }

◆ getZ()

float FPGATrackSimHit::getZ ( ) const
inline

Definition at line 154 of file FPGATrackSimHit.h.

154{ return m_z; }

◆ isBarrel()

bool FPGATrackSimHit::isBarrel ( ) const
inline

Definition at line 67 of file FPGATrackSimHit.h.

◆ isClustered()

bool FPGATrackSimHit::isClustered ( ) const

Definition at line 28 of file FPGATrackSimHit.cxx.

29{
30 switch (m_hitType)
31 {
32 case HitType::clustered: // TODO do wildcard and guessed hits have cluster info too?
34 return true;
35 default:
36 return false;
37 }
38}

◆ isMapped()

bool FPGATrackSimHit::isMapped ( ) const

Definition at line 13 of file FPGATrackSimHit.cxx.

14{
15 if(m_layer>=0){
16 return true;
17 }
18 return false;
19}

◆ isPixel()

bool FPGATrackSimHit::isPixel ( ) const
inline

Definition at line 65 of file FPGATrackSimHit.h.

◆ isReal()

bool FPGATrackSimHit::isReal ( ) const

Definition at line 40 of file FPGATrackSimHit.cxx.

41{
42 switch (m_hitType)
43 {
45 case HitType::mapped:
48 return true;
49 default:
50 return false;
51 }
52}

◆ isRemapped()

bool FPGATrackSimHit::isRemapped ( ) const

Definition at line 20 of file FPGATrackSimHit.cxx.

21{
22 return m_isRemapped;
23}

◆ isStrip()

bool FPGATrackSimHit::isStrip ( ) const
inline

Definition at line 66 of file FPGATrackSimHit.h.

66{ return m_detType == SiliconTech::strip; }

◆ isValidForITkHit()

bool FPGATrackSimHit::isValidForITkHit ( ) const
inline

Definition at line 183 of file FPGATrackSimHit.h.

183{return m_isValidForITK;}

◆ makeSpacepoint()

void FPGATrackSimHit::makeSpacepoint ( float x,
float y,
float z,
float window,
FPGATrackSimHit & other,
FPGATrackSimMultiTruth & new_truth )

Definition at line 98 of file FPGATrackSimHit.cxx.

98 {
99 // Update coordinates. This keeps a copy of the old ones.
100 setX(x);
101 setY(y);
102 setZ(z);
103
104 // Store the phi window.
105 m_phiWindow = window;
106
107 // Update the truth, so we can do truth matching.
108 setTruth(new_truth);
109
110 // Store the local coordinates of the inner hit.
111 // the need for a subclass in the futer should be considered.
112 const FPGATrackSimHit* inner = ((getPhysLayer() % 2) == 0) ? this : &other;
115
116 // If the hit is unmapped we need to store the physical
117 // layer coordinates, and when the hit *becomes* mapped, update the paired logical layer too.
118 if (isMapped()) {
119 m_pairedSection = inner->getSection();
120 m_pairedLayer = inner->getLayer();
121 }
122 if ( m_hitType == HitType::spacepoint) m_layer = inner->getLayer();
124 m_pairedDetType = inner->getDetType();
126
127 // Update the type.
129}
#define y
#define x
#define z
int getEtaModule(bool old=false) const
unsigned getPhiModule() const
unsigned getPhysLayer(bool old=false) const
SiliconTech getDetType() const
DetectorZone getDetectorZone() const
unsigned getSection() const
void setTruth(const FPGATrackSimMultiTruth &v)

◆ setBarcode()

void FPGATrackSimHit::setBarcode ( const HepMcParticleLink::barcode_type & v)
inline

Definition at line 161 of file FPGATrackSimHit.h.

◆ setBarcodePt()

void FPGATrackSimHit::setBarcodePt ( float v)
inline

Definition at line 163 of file FPGATrackSimHit.h.

163{ m_barcode_pt = v; }

◆ setCentroidEtaIndex()

void FPGATrackSimHit::setCentroidEtaIndex ( float v)
inline

Definition at line 107 of file FPGATrackSimHit.h.

◆ setCentroidPhiIndex()

void FPGATrackSimHit::setCentroidPhiIndex ( float v)
inline

Definition at line 106 of file FPGATrackSimHit.h.

◆ setCluster1ID()

void FPGATrackSimHit::setCluster1ID ( int v)
inline

Definition at line 194 of file FPGATrackSimHit.h.

◆ setCluster2ID()

void FPGATrackSimHit::setCluster2ID ( int v)
inline

Definition at line 197 of file FPGATrackSimHit.h.

◆ setDetectorZone()

void FPGATrackSimHit::setDetectorZone ( DetectorZone detZone)
inline

Definition at line 57 of file FPGATrackSimHit.h.

57{ m_detectorZone = detZone; }

◆ setDetType()

void FPGATrackSimHit::setDetType ( SiliconTech detType)
inline

Definition at line 56 of file FPGATrackSimHit.h.

56{ m_detType = detType; }

◆ setEtaCoord()

void FPGATrackSimHit::setEtaCoord ( float v)
inline

Definition at line 109 of file FPGATrackSimHit.h.

109{ m_etaCoord = v; }

◆ setEtaIndex()

void FPGATrackSimHit::setEtaIndex ( unsigned v)
inline

Definition at line 105 of file FPGATrackSimHit.h.

105{ m_etaIndex = v; }

◆ setEtaModule()

void FPGATrackSimHit::setEtaModule ( int v)
inline

Definition at line 78 of file FPGATrackSimHit.h.

◆ setEtaWidth()

void FPGATrackSimHit::setEtaWidth ( unsigned v)
inline

Definition at line 80 of file FPGATrackSimHit.h.

80{ m_etaWidth = v; }

◆ setEventIndex()

void FPGATrackSimHit::setEventIndex ( long v)
inline

Definition at line 164 of file FPGATrackSimHit.h.

164{ m_eventindex = v; }

◆ setHitType()

void FPGATrackSimHit::setHitType ( HitType type)
inline

◆ setIdentifier()

void FPGATrackSimHit::setIdentifier ( unsigned int v)
inline

Definition at line 72 of file FPGATrackSimHit.h.

72{ m_identifier = v; } // 32 bit (short) module identifier

◆ setIdentifierHash()

void FPGATrackSimHit::setIdentifierHash ( unsigned v)
inline

Definition at line 73 of file FPGATrackSimHit.h.

◆ setisValidForITkHit()

void FPGATrackSimHit::setisValidForITkHit ( bool v)
inline

Definition at line 188 of file FPGATrackSimHit.h.

188{ m_isValidForITK = v;}

◆ setLayer()

void FPGATrackSimHit::setLayer ( unsigned v)
inline

Definition at line 95 of file FPGATrackSimHit.h.

95{ m_layer = v; } // This is the logical layer

◆ setLayerDisk()

void FPGATrackSimHit::setLayerDisk ( unsigned v)
inline

Definition at line 75 of file FPGATrackSimHit.h.

75{ m_layer_disk = v; } // ITk layer number

◆ setMaxEtaIndex()

void FPGATrackSimHit::setMaxEtaIndex ( int v)
inline

Definition at line 119 of file FPGATrackSimHit.h.

119{ m_maxEtaIndex = v; }

◆ setMaxPhiIndex()

void FPGATrackSimHit::setMaxPhiIndex ( int v)
inline

Definition at line 117 of file FPGATrackSimHit.h.

117{ m_maxPhiIndex = v; }

◆ setMinEtaIndex()

void FPGATrackSimHit::setMinEtaIndex ( int v)
inline

Definition at line 120 of file FPGATrackSimHit.h.

120{ m_minEtaIndex = v; }

◆ setMinPhiIndex()

void FPGATrackSimHit::setMinPhiIndex ( int v)
inline

Definition at line 118 of file FPGATrackSimHit.h.

118{ m_minPhiIndex = v; }

◆ setPairedLayer()

void FPGATrackSimHit::setPairedLayer ( unsigned v)
inline

Definition at line 145 of file FPGATrackSimHit.h.

145{ m_pairedLayer = v; }

◆ setPairedSection()

void FPGATrackSimHit::setPairedSection ( unsigned v)
inline

Definition at line 146 of file FPGATrackSimHit.h.

146{ m_pairedSection = v; }

◆ setParentageMask()

void FPGATrackSimHit::setParentageMask ( unsigned long v)
inline

Definition at line 165 of file FPGATrackSimHit.h.

165{ m_parentage_mask = v; }

◆ setPhiCoord()

void FPGATrackSimHit::setPhiCoord ( float v)
inline

Definition at line 108 of file FPGATrackSimHit.h.

108{ m_phiCoord = v; }

◆ setPhiIndex()

void FPGATrackSimHit::setPhiIndex ( unsigned v)
inline

Definition at line 104 of file FPGATrackSimHit.h.

104{ m_phiIndex = v; }

◆ setPhiModule()

void FPGATrackSimHit::setPhiModule ( unsigned v)
inline

Definition at line 79 of file FPGATrackSimHit.h.

79{ m_phiModule = v; }

◆ setPhiWidth()

void FPGATrackSimHit::setPhiWidth ( unsigned v)
inline

Definition at line 81 of file FPGATrackSimHit.h.

81{ m_phiWidth = v; }

◆ setPhysLayer()

void FPGATrackSimHit::setPhysLayer ( unsigned v)

Definition at line 55 of file FPGATrackSimHit.cxx.

56{
58 {
61 m_layer_disk = v / 2;
62 m_side = v % 2;
63 }
64 else
65 {
68 }
69}

◆ setRdoIdentifier()

void FPGATrackSimHit::setRdoIdentifier ( Identifier::value_type v)
inline

Definition at line 74 of file FPGATrackSimHit.h.

74{ m_rdoIdentifier = v; } // this stores the entire 64 bit hit identifier

◆ setRemap()

void FPGATrackSimHit::setRemap ( )

Definition at line 24 of file FPGATrackSimHit.cxx.

25{
26 m_isRemapped=true;
27}

◆ setRoadID()

void FPGATrackSimHit::setRoadID ( int roadID)
inline

Definition at line 99 of file FPGATrackSimHit.h.

99{ m_roadID = roadID; }

◆ setSection()

void FPGATrackSimHit::setSection ( unsigned v)
inline

Definition at line 96 of file FPGATrackSimHit.h.

96{ m_section = v; }

◆ setSide()

void FPGATrackSimHit::setSide ( unsigned v)
inline

Definition at line 76 of file FPGATrackSimHit.h.

76{ m_side = v; }

◆ setStripChipIDForITk()

void FPGATrackSimHit::setStripChipIDForITk ( int v)
inline

Definition at line 190 of file FPGATrackSimHit.h.

◆ setStripHitMapForITk()

void FPGATrackSimHit::setStripHitMapForITk ( int v)
inline

Definition at line 191 of file FPGATrackSimHit.h.

◆ setStripRowIDForITk()

void FPGATrackSimHit::setStripRowIDForITk ( int v)
inline

Definition at line 189 of file FPGATrackSimHit.h.

◆ setToT()

void FPGATrackSimHit::setToT ( unsigned v)
inline

Definition at line 160 of file FPGATrackSimHit.h.

160{ m_ToT = v; }

◆ setTruth()

void FPGATrackSimHit::setTruth ( const FPGATrackSimMultiTruth & v)
inline

Definition at line 166 of file FPGATrackSimHit.h.

166{ m_truth = v; }

◆ setUniqueID()

void FPGATrackSimHit::setUniqueID ( const HepMcParticleLink::barcode_type & v)
inline

Definition at line 162 of file FPGATrackSimHit.h.

162{ m_uniqueID = v; }

◆ setX()

void FPGATrackSimHit::setX ( float v)
inline

Definition at line 149 of file FPGATrackSimHit.h.

149{ m_originalX = m_x; m_x = v; }

◆ setY()

void FPGATrackSimHit::setY ( float v)
inline

Definition at line 150 of file FPGATrackSimHit.h.

150{ m_originalY = m_y; m_y = v; }

◆ setZ()

void FPGATrackSimHit::setZ ( float v)
inline

Definition at line 151 of file FPGATrackSimHit.h.

151{ m_originalZ = m_z; m_z = v; }

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const FPGATrackSimHit & hit )
friend

Definition at line 151 of file FPGATrackSimHit.cxx.

152{
153 out << "type=" << hit.m_hitType
154 << " tech=" << hit.m_detType
155 << " zone=" << hit.m_detectorZone
156 << " etamod=" << hit.getEtaModule()
157 << " phimod=" << hit.getPhiModule()
158 << " physLayer=" << hit.getPhysLayer()
159 << " eta=" << hit.getEtaCoord()
160 << " phi=" << hit.getPhiCoord();
161
162 return out;
163}
float getPhiCoord() const
float getEtaCoord() const

Member Data Documentation

◆ m_barcode

HepMcParticleLink::barcode_type FPGATrackSimHit::m_barcode = 0
protected

Definition at line 288 of file FPGATrackSimHit.h.

◆ m_barcode_pt

float FPGATrackSimHit::m_barcode_pt = 0
protected

Definition at line 290 of file FPGATrackSimHit.h.

◆ m_centroidEtaIndex

float FPGATrackSimHit::m_centroidEtaIndex = -1
protected

Definition at line 248 of file FPGATrackSimHit.h.

◆ m_centroidPhiIndex

float FPGATrackSimHit::m_centroidPhiIndex = -1
protected

Definition at line 247 of file FPGATrackSimHit.h.

◆ m_clusterIndex1ForFPGA

int FPGATrackSimHit::m_clusterIndex1ForFPGA = -1
protected

Definition at line 300 of file FPGATrackSimHit.h.

◆ m_clusterIndex2ForFPGA

int FPGATrackSimHit::m_clusterIndex2ForFPGA = -1
protected

Definition at line 301 of file FPGATrackSimHit.h.

◆ m_detectorZone

DetectorZone FPGATrackSimHit::m_detectorZone = DetectorZone::undefined
protected

Definition at line 220 of file FPGATrackSimHit.h.

◆ m_detType

SiliconTech FPGATrackSimHit::m_detType = SiliconTech::undefined
protected

Definition at line 221 of file FPGATrackSimHit.h.

◆ m_etaCoord

float FPGATrackSimHit::m_etaCoord = -999
protected

Definition at line 250 of file FPGATrackSimHit.h.

◆ m_etaIndex

int FPGATrackSimHit::m_etaIndex = -1
protected

Definition at line 246 of file FPGATrackSimHit.h.

◆ m_EtaIndexVec

std::vector<int> FPGATrackSimHit::m_EtaIndexVec
protected

Definition at line 313 of file FPGATrackSimHit.h.

◆ m_etaModule

int FPGATrackSimHit::m_etaModule = 0
protected

Definition at line 231 of file FPGATrackSimHit.h.

◆ m_etaModule_old

int FPGATrackSimHit::m_etaModule_old = 0
protected

Definition at line 232 of file FPGATrackSimHit.h.

◆ m_etaWidth

unsigned FPGATrackSimHit::m_etaWidth = 0
protected

Definition at line 234 of file FPGATrackSimHit.h.

◆ m_eventindex

long FPGATrackSimHit::m_eventindex = 0
protected

Definition at line 287 of file FPGATrackSimHit.h.

◆ m_hitType

HitType FPGATrackSimHit::m_hitType = HitType::undefined
protected

Definition at line 219 of file FPGATrackSimHit.h.

◆ m_hw_word

unsigned FPGATrackSimHit::m_hw_word = 0
protected

Definition at line 285 of file FPGATrackSimHit.h.

◆ m_identifier

unsigned int FPGATrackSimHit::m_identifier = 0
protected

Definition at line 224 of file FPGATrackSimHit.h.

◆ m_identifierHash

unsigned FPGATrackSimHit::m_identifierHash = 0
protected

Definition at line 225 of file FPGATrackSimHit.h.

◆ m_IDhashVec

std::vector<unsigned> FPGATrackSimHit::m_IDhashVec
protected

Definition at line 311 of file FPGATrackSimHit.h.

◆ m_isRemapped

bool FPGATrackSimHit::m_isRemapped = false
protected

Definition at line 243 of file FPGATrackSimHit.h.

◆ m_isValidForITK

bool FPGATrackSimHit::m_isValidForITK = false
protected

Definition at line 303 of file FPGATrackSimHit.h.

◆ m_layer

int FPGATrackSimHit::m_layer = -1
protected

Definition at line 239 of file FPGATrackSimHit.h.

◆ m_layer_disk

unsigned FPGATrackSimHit::m_layer_disk = 0
protected

Definition at line 227 of file FPGATrackSimHit.h.

◆ m_layer_disk_old

unsigned FPGATrackSimHit::m_layer_disk_old = 0
protected

Definition at line 228 of file FPGATrackSimHit.h.

◆ m_maxEtaIndex

int FPGATrackSimHit::m_maxEtaIndex = std::numeric_limits<int>::min()
protected

Definition at line 255 of file FPGATrackSimHit.h.

◆ m_maxPhiIndex

int FPGATrackSimHit::m_maxPhiIndex = std::numeric_limits<int>::min()
protected

Definition at line 253 of file FPGATrackSimHit.h.

◆ m_minEtaIndex

int FPGATrackSimHit::m_minEtaIndex = std::numeric_limits<int>::max()
protected

Definition at line 256 of file FPGATrackSimHit.h.

◆ m_minPhiIndex

int FPGATrackSimHit::m_minPhiIndex = std::numeric_limits<int>::max()
protected

Definition at line 254 of file FPGATrackSimHit.h.

◆ m_originalX

float FPGATrackSimHit::m_originalX = 0
protected

Definition at line 264 of file FPGATrackSimHit.h.

◆ m_originalY

float FPGATrackSimHit::m_originalY = 0
protected

Definition at line 265 of file FPGATrackSimHit.h.

◆ m_originalZ

float FPGATrackSimHit::m_originalZ = 0
protected

Definition at line 266 of file FPGATrackSimHit.h.

◆ m_pairedDetType

SiliconTech FPGATrackSimHit::m_pairedDetType = SiliconTech::undefined
protected

Definition at line 277 of file FPGATrackSimHit.h.

◆ m_pairedDetZone

DetectorZone FPGATrackSimHit::m_pairedDetZone = DetectorZone::undefined
protected

Definition at line 276 of file FPGATrackSimHit.h.

◆ m_pairedEtaModule

int FPGATrackSimHit::m_pairedEtaModule = -1
protected

Definition at line 273 of file FPGATrackSimHit.h.

◆ m_pairedLayer

unsigned FPGATrackSimHit::m_pairedLayer = 0
protected

Definition at line 282 of file FPGATrackSimHit.h.

◆ m_pairedPhiModule

unsigned FPGATrackSimHit::m_pairedPhiModule = -1
protected

Definition at line 272 of file FPGATrackSimHit.h.

◆ m_pairedPhysLayer

unsigned FPGATrackSimHit::m_pairedPhysLayer = 0
protected

Definition at line 278 of file FPGATrackSimHit.h.

◆ m_pairedSection

unsigned FPGATrackSimHit::m_pairedSection = 0
protected

Definition at line 281 of file FPGATrackSimHit.h.

◆ m_parentage_mask

unsigned long FPGATrackSimHit::m_parentage_mask = 0
protected

Definition at line 292 of file FPGATrackSimHit.h.

◆ m_phiCoord

float FPGATrackSimHit::m_phiCoord = -999
protected

Definition at line 249 of file FPGATrackSimHit.h.

◆ m_phiIndex

int FPGATrackSimHit::m_phiIndex = -1
protected

Definition at line 245 of file FPGATrackSimHit.h.

◆ m_PhiIndexVec

std::vector<int> FPGATrackSimHit::m_PhiIndexVec
protected

Definition at line 312 of file FPGATrackSimHit.h.

◆ m_phiModule

unsigned FPGATrackSimHit::m_phiModule = 0
protected

Definition at line 233 of file FPGATrackSimHit.h.

◆ m_phiWidth

unsigned FPGATrackSimHit::m_phiWidth = 0
protected

Definition at line 235 of file FPGATrackSimHit.h.

◆ m_phiWindow

float FPGATrackSimHit::m_phiWindow = 0
protected

Definition at line 269 of file FPGATrackSimHit.h.

◆ m_rdoIdentifier

Identifier::value_type FPGATrackSimHit::m_rdoIdentifier = 0
protected

Definition at line 226 of file FPGATrackSimHit.h.

◆ m_roadID

int FPGATrackSimHit::m_roadID = 0
protected

Definition at line 309 of file FPGATrackSimHit.h.

◆ m_section

int FPGATrackSimHit::m_section = -1
protected

Definition at line 240 of file FPGATrackSimHit.h.

◆ m_side

unsigned FPGATrackSimHit::m_side = 0
protected

Definition at line 229 of file FPGATrackSimHit.h.

◆ m_side_old

unsigned FPGATrackSimHit::m_side_old = 0
protected

Definition at line 230 of file FPGATrackSimHit.h.

◆ m_stripChipinITKEDM

int FPGATrackSimHit::m_stripChipinITKEDM = -1
protected

Definition at line 305 of file FPGATrackSimHit.h.

◆ m_stripHitMapinITKEDM

int FPGATrackSimHit::m_stripHitMapinITKEDM = -1
protected

Definition at line 306 of file FPGATrackSimHit.h.

◆ m_stripRowinITKEDM

int FPGATrackSimHit::m_stripRowinITKEDM = -1
protected

Definition at line 304 of file FPGATrackSimHit.h.

◆ m_ToT

unsigned FPGATrackSimHit::m_ToT = 0
protected

Definition at line 286 of file FPGATrackSimHit.h.

◆ m_truth

FPGATrackSimMultiTruth FPGATrackSimHit::m_truth
protected

Definition at line 294 of file FPGATrackSimHit.h.

◆ m_uniqueID

HepMcParticleLink::barcode_type FPGATrackSimHit::m_uniqueID = 0
protected

Definition at line 289 of file FPGATrackSimHit.h.

◆ m_x

float FPGATrackSimHit::m_x = 0
protected

Definition at line 259 of file FPGATrackSimHit.h.

◆ m_y

float FPGATrackSimHit::m_y = 0
protected

Definition at line 260 of file FPGATrackSimHit.h.

◆ m_z

float FPGATrackSimHit::m_z = 0
protected

Definition at line 261 of file FPGATrackSimHit.h.


The documentation for this class was generated from the following files: