CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
mkfit::ModuleInfo Struct Reference

#include <TrackerInfo.h>

Public Member Functions

SVector3 calc_ydir () const
 
 ModuleInfo ()=default
 
 ModuleInfo (SVector3 p, SVector3 zd, SVector3 xd, unsigned int did, unsigned short sid)
 

Public Attributes

unsigned int detid
 
SVector3 pos
 
unsigned short shapeid
 
SVector3 xdir
 
SVector3 zdir
 

Detailed Description

Definition at line 52 of file TrackerInfo.h.

Constructor & Destructor Documentation

◆ ModuleInfo() [1/2]

mkfit::ModuleInfo::ModuleInfo ( )
default

◆ ModuleInfo() [2/2]

mkfit::ModuleInfo::ModuleInfo ( SVector3  p,
SVector3  zd,
SVector3  xd,
unsigned int  did,
unsigned short  sid 
)
inline

Definition at line 60 of file TrackerInfo.h.

61  : pos(p), zdir(zd), xdir(xd), detid(did), shapeid(sid) {}
unsigned short shapeid
Definition: TrackerInfo.h:57
unsigned int detid
Definition: TrackerInfo.h:56

Member Function Documentation

◆ calc_ydir()

SVector3 mkfit::ModuleInfo::calc_ydir ( ) const
inline

Definition at line 63 of file TrackerInfo.h.

References xdir, and zdir.

63  {
64  return {zdir[1] * xdir[2] - zdir[2] * xdir[1],
65  zdir[2] * xdir[0] - zdir[0] * xdir[2],
66  zdir[0] * zdir[1] - zdir[1] * xdir[0]};
67  }

Member Data Documentation

◆ detid

unsigned int mkfit::ModuleInfo::detid

Definition at line 56 of file TrackerInfo.h.

Referenced by mkfit::TrackerInfo::print_tracker().

◆ pos

SVector3 mkfit::ModuleInfo::pos

◆ shapeid

unsigned short mkfit::ModuleInfo::shapeid

Definition at line 57 of file TrackerInfo.h.

Referenced by mkfit::TrackerInfo::print_tracker().

◆ xdir

SVector3 mkfit::ModuleInfo::xdir

◆ zdir

SVector3 mkfit::ModuleInfo::zdir