Belle II Software development
VXDHoughState Class Reference

Simple container for hit information to be used during intercept finding. More...

#include <VXDHoughState.h>

Classes

struct  DataCache
 Cache containing the most important information of this state which will often be needed. More...
 

Public Member Functions

 VXDHoughState ()=default
 Default constructor.
 
 VXDHoughState (VXDHoughState &&)=default
 Move constructor needed for STL containers.
 
 VXDHoughState (const VXDHoughState &)=delete
 No copy constructor.
 
VXDHoughStateoperator= (const VXDHoughState &)=delete
 No copy constructor.
 
VXDHoughStateoperator= (VXDHoughState &&)=default
 Move assignment constructor.
 
 ~VXDHoughState ()=default
 Destructor.
 
 VXDHoughState (const SpacePoint *hit, const B2Vector3D &BeamSpotPosition)
 Initialize the state as non-root with a related hit (and with a seed)
 
const SpacePointgetHit () const
 Return the SP this state is related to. May be nullptr.
 
TrackFindingCDC::AutomatonCellgetAutomatonCell ()
 Getter for the automaton cell.
 
const DataCache getDataCache () const
 Get the cached data of this state.
 

Protected Attributes

DataCache m_dataCache
 Cache the most important data of this state for better runtime performance.
 

Private Attributes

const SpacePointm_hit = nullptr
 Pointer to hit.
 
TrackFindingCDC::AutomatonCell m_automatonCell
 Memory for the automaton cell.
 

Detailed Description

Simple container for hit information to be used during intercept finding.

Definition at line 24 of file VXDHoughState.h.

Constructor & Destructor Documentation

◆ VXDHoughState()

VXDHoughState ( const SpacePoint hit,
const B2Vector3D BeamSpotPosition 
)
inlineexplicit

Initialize the state as non-root with a related hit (and with a seed)

Definition at line 40 of file VXDHoughState.h.

40 : m_hit(hit)
41 {
42 m_dataCache.sensorID = hit->getVxdID();
43 m_dataCache.layer = hit->getVxdID().getLayerNumber();
44 m_dataCache.ladder = hit->getVxdID().getLadderNumber();
45 const VXD::SensorInfoBase& sensorInfo = VXD::GeoCache::getInstance().getSensorInfo(hit->getVxdID());
46 m_dataCache.x = hit->X();
47 m_dataCache.y = hit->Y();
48 m_dataCache.z = hit->Z();
49 const double conformalTransform = 2. / ((hit->X() - BeamSpotPosition.X()) * (hit->X() - BeamSpotPosition.X()) +
50 (hit->Y() - BeamSpotPosition.Y()) * (hit->Y() - BeamSpotPosition.Y()));
51 m_dataCache.xConformal = hit->X() * conformalTransform;
52 m_dataCache.yConformal = hit->Y() * conformalTransform;
53 m_dataCache.localNormalizedu = hit->getNormalizedLocalU();
54 m_dataCache.localNormalizedv = hit->getNormalizedLocalV();
55 m_dataCache.sensorCenterPhi = sensorInfo.pointToGlobal(ROOT::Math::XYZVector(0., 0., 0.), true).Phi();
56 m_dataCache.phi = hit->getPosition().Phi();
57 m_dataCache.theta = hit->getPosition().Theta();
58 m_dataCache.uTime = hit->TimeU();
59 m_dataCache.vTime = hit->TimeV();
60 }
const SensorInfoBase & getSensorInfo(Belle2::VxdID id) const
Return a referecne to the SensorInfo of a given SensorID.
Definition: GeoCache.cc:67
static GeoCache & getInstance()
Return a reference to the singleton instance.
Definition: GeoCache.cc:214
const SpacePoint * m_hit
Pointer to hit.
DataCache m_dataCache
Cache the most important data of this state for better runtime performance.
float sensorCenterPhi
Phi value of SpacePoint.
Definition: VXDHoughState.h:86
float yConformal
conformal transformed y coordinate of this hit
Definition: VXDHoughState.h:80
float localNormalizedu
Local normalized uCoordinate of this state, only set if based on SpacePoint.
Definition: VXDHoughState.h:82
unsigned short layer
Geometrical Layer this state is based on.
Definition: VXDHoughState.h:96
float xConformal
conformal transformed x coordinate of this hit
Definition: VXDHoughState.h:78
float uTime
Time of the u-side cluster.
Definition: VXDHoughState.h:92
unsigned short ladder
Ladder this state is based on (only use for SpacePoint based states)
Definition: VXDHoughState.h:98
float vTime
Time of the v-side cluster.
Definition: VXDHoughState.h:94
float localNormalizedv
Local normalized vCoordinate of this state, only set if based on SpacePoint.
Definition: VXDHoughState.h:84

Member Function Documentation

◆ getAutomatonCell()

TrackFindingCDC::AutomatonCell & getAutomatonCell ( )
inline

Getter for the automaton cell.

Definition at line 66 of file VXDHoughState.h.

66{ return m_automatonCell; }
TrackFindingCDC::AutomatonCell m_automatonCell
Memory for the automaton cell.

◆ getDataCache()

const DataCache getDataCache ( ) const
inline

Get the cached data of this state.

Definition at line 103 of file VXDHoughState.h.

103{ return m_dataCache; }

◆ getHit()

const SpacePoint * getHit ( ) const
inline

Return the SP this state is related to. May be nullptr.

Definition at line 63 of file VXDHoughState.h.

63{ return m_hit; }

Member Data Documentation

◆ m_automatonCell

TrackFindingCDC::AutomatonCell m_automatonCell
private

Memory for the automaton cell.

Definition at line 113 of file VXDHoughState.h.

◆ m_dataCache

DataCache m_dataCache
protected

Cache the most important data of this state for better runtime performance.

Definition at line 107 of file VXDHoughState.h.

◆ m_hit

const SpacePoint* m_hit = nullptr
private

Pointer to hit.

Definition at line 111 of file VXDHoughState.h.


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