ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
Trk::TargetSurface Struct Reference

target surface info ( navigation ) More...

#include <TargetSurfaces.h>

Collaboration diagram for Trk::TargetSurface:

Public Member Functions

 TargetSurface (const Surface *sf, BoundaryCheck bc, SurfNavigType stype, int ind, const TrackingVolume *tVol, TVNavigType vtype)
 Constructor. More...
 
 ~TargetSurface ()=default
 Destructor. More...
 
void setDistance (double dAlongPath, double dMin, float sign)
 Distance info. More...
 
void setPosition (Amg::Vector3D intPos)
 Intersection info. More...
 
void setStatus (int st)
 Navigation status info. More...
 
void fastDistanceUpdate (double step)
 fast approximative update ( real distance > distance estimate ) More...
 

Public Attributes

const Surfacesurf
 
BoundaryCheck bcheck
 
SurfNavigType sfType
 
unsigned int index
 
const TrackingVolumeassocVol
 
TVNavigType volType
 
double distanceAlongPath
 
double distance
 
float signAbsDist
 
Amg::Vector3D intersection
 
int status
 

Detailed Description

target surface info ( navigation )

Definition at line 55 of file TargetSurfaces.h.

Constructor & Destructor Documentation

◆ TargetSurface()

Trk::TargetSurface::TargetSurface ( const Surface sf,
BoundaryCheck  bc,
SurfNavigType  stype,
int  ind,
const TrackingVolume tVol,
TVNavigType  vtype 
)
inline

Constructor.

Definition at line 71 of file TargetSurfaces.h.

77  : surf(sf)
78  , bcheck(std::move(bc))
79  , sfType(stype)
80  , index(ind)
81  , assocVol(tVol)
82  , volType(vtype)
84  , distance(0)
85  , signAbsDist(0)
86  , intersection(0, 0, 0)
87  , status(0)
88  {
89  }

◆ ~TargetSurface()

Trk::TargetSurface::~TargetSurface ( )
default

Destructor.

Member Function Documentation

◆ fastDistanceUpdate()

void Trk::TargetSurface::fastDistanceUpdate ( double  step)
inline

fast approximative update ( real distance > distance estimate )

Definition at line 109 of file TargetSurfaces.h.

110  {
111  // temporary check ( remove after development finished )
112  // if ( fabs(distance) < step ) std::cout <<"fast distance update
113  // inappropriate " << std::endl; end temporary
114 
115  distance = distance > 0 ? distance - step : distance + step;
118  }

◆ setDistance()

void Trk::TargetSurface::setDistance ( double  dAlongPath,
double  dMin,
float  sign 
)
inline

Distance info.

Definition at line 95 of file TargetSurfaces.h.

96  {
97  distanceAlongPath = dAlongPath;
98  distance = dMin;
99  signAbsDist = sign;
100  }

◆ setPosition()

void Trk::TargetSurface::setPosition ( Amg::Vector3D  intPos)
inline

Intersection info.

Definition at line 103 of file TargetSurfaces.h.

103 { intersection = std::move(intPos); }

◆ setStatus()

void Trk::TargetSurface::setStatus ( int  st)
inline

Navigation status info.

Definition at line 106 of file TargetSurfaces.h.

106 { status = st; }

Member Data Documentation

◆ assocVol

const TrackingVolume* Trk::TargetSurface::assocVol

Definition at line 62 of file TargetSurfaces.h.

◆ bcheck

BoundaryCheck Trk::TargetSurface::bcheck

Definition at line 59 of file TargetSurfaces.h.

◆ distance

double Trk::TargetSurface::distance

Definition at line 65 of file TargetSurfaces.h.

◆ distanceAlongPath

double Trk::TargetSurface::distanceAlongPath

Definition at line 64 of file TargetSurfaces.h.

◆ index

unsigned int Trk::TargetSurface::index

Definition at line 61 of file TargetSurfaces.h.

◆ intersection

Amg::Vector3D Trk::TargetSurface::intersection

Definition at line 67 of file TargetSurfaces.h.

◆ sfType

SurfNavigType Trk::TargetSurface::sfType

Definition at line 60 of file TargetSurfaces.h.

◆ signAbsDist

float Trk::TargetSurface::signAbsDist

Definition at line 66 of file TargetSurfaces.h.

◆ status

int Trk::TargetSurface::status

Definition at line 68 of file TargetSurfaces.h.

◆ surf

const Surface* Trk::TargetSurface::surf

Definition at line 58 of file TargetSurfaces.h.

◆ volType

TVNavigType Trk::TargetSurface::volType

Definition at line 63 of file TargetSurfaces.h.


The documentation for this struct was generated from the following file:
Trk::TargetSurface::bcheck
BoundaryCheck bcheck
Definition: TargetSurfaces.h:59
Trk::TargetSurface::distanceAlongPath
double distanceAlongPath
Definition: TargetSurfaces.h:64
Trk::TargetSurface::assocVol
const TrackingVolume * assocVol
Definition: TargetSurfaces.h:62
Trk::TargetSurface::sfType
SurfNavigType sfType
Definition: TargetSurfaces.h:60
Trk::TargetSurface::intersection
Amg::Vector3D intersection
Definition: TargetSurfaces.h:67
sign
int sign(int a)
Definition: TRT_StrawNeighbourSvc.h:107
Trk::TargetSurface::status
int status
Definition: TargetSurfaces.h:68
Trk::TargetSurface::volType
TVNavigType volType
Definition: TargetSurfaces.h:63
mapkey::sf
@ sf
Definition: TElectronEfficiencyCorrectionTool.cxx:38
Trk::TargetSurface::surf
const Surface * surf
Definition: TargetSurfaces.h:58
LArCellBinning.step
step
Definition: LArCellBinning.py:158
Trk::TargetSurface::distance
double distance
Definition: TargetSurfaces.h:65
Trk::TargetSurface::signAbsDist
float signAbsDist
Definition: TargetSurfaces.h:66
checkFileSG.ind
list ind
Definition: checkFileSG.py:118
Trk::TargetSurface::index
unsigned int index
Definition: TargetSurfaces.h:61