Belle II Software development
VXDSensorInfoBasePar Class Reference

Namespace to provide code needed by both Vertex Detectors, PXD and SVD. More...

#include <VXDSensorInfoBasePar.h>

Inheritance diagram for VXDSensorInfoBasePar:
PXDSensorInfoPar SVDSensorInfoPar

Public Types

enum  SensorType {
  PXD = 0 ,
  SVD = 1 ,
  TEL = 2 ,
  VXD = -1
}
 Enum specifing the type of sensor the SensorInfo represents. More...
 

Public Member Functions

 VXDSensorInfoBasePar ()
 Default constructor.
 
 VXDSensorInfoBasePar (SensorType type, VxdID id, double width, double length, double thickness, int uCells, int vCells, double width2=0, double splitLength=-1, int vCells2=0)
 Constructor for a SensorInfo instance.
 
virtual ~VXDSensorInfoBasePar ()
 Virtual destructor to make class polymorph.
 
SensorType getType () const
 Return the Type of the Sensor.
 
VxdID getID () const
 Return the ID of the Sensor.
 
double getWidth2 () const
 Return forward width for a slanted sensor.
 
double getWidth () const
 Return the (backward) width of the sensor.
 
double getLength () const
 Return the length of the sensor.
 
double getSplitLength () const
 Return the splitLength of the sensor.
 
double getThickness () const
 Return the thickness of the sensor.
 
int getUCells () const
 Return number of pixel/strips in u direction.
 
int getVCells () const
 Return number of pixel/strips in v direction.
 
int getVCells1 () const
 Return number of pixel/strips in v direction for first segment.
 
int getVCells2 () const
 Return number of pixel/strips in v direction for second segment.
 

Protected Member Functions

 ClassDef (VXDSensorInfoBasePar, 6)
 ClassDef, must be the last term before the closing {}.
 

Protected Attributes

SensorType m_type
 Type of the Sensor.
 
unsigned short m_id
 ID of the Sensor.
 
double m_width
 Width of the sensor, backward width for wedge sensors.
 
double m_length
 Length of the Sensor.
 
double m_thickness
 Thickness of the Sensor.
 
double m_width2
 Forward width for wedge sensors, 0 for rectangular sensors.
 
double m_splitLength
 Length at which second pixel size starts, 0 for only one pixel size.
 
int m_uCells
 Number of strips/pixels in u direction.
 
int m_vCells
 Number of strips/pixels in v direction (up to splitLength for two pixel sizes)
 
int m_vCells2
 Number of strips/pixels in v direction after splitLength, 0 for only one pixel size.
 

Detailed Description

Namespace to provide code needed by both Vertex Detectors, PXD and SVD.

Data containter to carry Sensor Information for PXD and SVD to/from the database.. The data are sensor type, sensor id, width/length/thickness, number of cells.

Definition at line 25 of file VXDSensorInfoBasePar.h.

Member Enumeration Documentation

◆ SensorType

enum SensorType

Enum specifing the type of sensor the SensorInfo represents.

Enumerator
PXD 

PXD Sensor.

SVD 

SVD Sensor.

TEL 

Testbeam telescope sensor.

VXD 

Any type of VXD Sensor.

Definition at line 29 of file VXDSensorInfoBasePar.h.

29 {
30 PXD = 0,
31 SVD = 1,
32 TEL = 2,
33 VXD = -1,
34 };
@ VXD
Any type of VXD Sensor.
@ TEL
Testbeam telescope sensor.

Constructor & Destructor Documentation

◆ VXDSensorInfoBasePar() [1/2]

Default constructor.

Definition at line 37 of file VXDSensorInfoBasePar.h.

37{}

◆ VXDSensorInfoBasePar() [2/2]

VXDSensorInfoBasePar ( SensorType  type,
VxdID  id,
double  width,
double  length,
double  thickness,
int  uCells,
int  vCells,
double  width2 = 0,
double  splitLength = -1,
int  vCells2 = 0 
)
inline

Constructor for a SensorInfo instance.

this class holds all the information to calculate pixel/strip positions and ids. it can accomodate rectangular and trapezoidal shapes and also has the possibility to segment the strip/pixelsize once in v, thus having two different pixel sizes in one sensor: vcells pixels from start to splitLength and vcells2 pixels from splitLength to length.

Parameters
typeType of the Sensor, one of PXD or SVD
idVxdID of the Sensor
widthWidth of the Sensor in default units
lengthLength of the Sensor in default units
thicknessThickness of the Sensor in default units
uCellsNumber of Pixels/Strips in u direction (local x)
vCellsNumber of Pixels/Strips in v direction (local y)
width2Width of trapezoidal sensor on positive side, <=0 means rectangular
splitLengthLength at which the pixel size changes, starting at 0. <=0 means only one pixel/strip size in v
vCells2Number of pixels in v direction after split length.

Definition at line 60 of file VXDSensorInfoBasePar.h.

61 :
62 m_type(type), m_id(id), m_width(width), m_length(length), m_thickness(thickness),
63 m_width2(width2), m_splitLength(splitLength), m_uCells(uCells), m_vCells(vCells), m_vCells2(vCells2)
64 {}
double m_width2
Forward width for wedge sensors, 0 for rectangular sensors.
double m_width
Width of the sensor, backward width for wedge sensors.
double m_thickness
Thickness of the Sensor.
int m_vCells
Number of strips/pixels in v direction (up to splitLength for two pixel sizes)
unsigned short m_id
ID of the Sensor.
SensorType m_type
Type of the Sensor.
double m_length
Length of the Sensor.
int m_vCells2
Number of strips/pixels in v direction after splitLength, 0 for only one pixel size.
int m_uCells
Number of strips/pixels in u direction.
double m_splitLength
Length at which second pixel size starts, 0 for only one pixel size.

◆ ~VXDSensorInfoBasePar()

virtual ~VXDSensorInfoBasePar ( )
inlinevirtual

Virtual destructor to make class polymorph.

Definition at line 67 of file VXDSensorInfoBasePar.h.

67{}

Member Function Documentation

◆ getID()

VxdID getID ( ) const
inline

Return the ID of the Sensor.

Definition at line 73 of file VXDSensorInfoBasePar.h.

73{ return m_id; }

◆ getLength()

double getLength ( ) const
inline

Return the length of the sensor.

Definition at line 79 of file VXDSensorInfoBasePar.h.

79{ return m_length; }

◆ getSplitLength()

double getSplitLength ( ) const
inline

Return the splitLength of the sensor.

Definition at line 81 of file VXDSensorInfoBasePar.h.

81{ return m_splitLength; }

◆ getThickness()

double getThickness ( ) const
inline

Return the thickness of the sensor.

Definition at line 83 of file VXDSensorInfoBasePar.h.

83{ return m_thickness; }

◆ getType()

SensorType getType ( ) const
inline

Return the Type of the Sensor.

Definition at line 71 of file VXDSensorInfoBasePar.h.

71{ return m_type; }

◆ getUCells()

int getUCells ( ) const
inline

Return number of pixel/strips in u direction.

Definition at line 85 of file VXDSensorInfoBasePar.h.

85{ return m_uCells; }

◆ getVCells()

int getVCells ( ) const
inline

Return number of pixel/strips in v direction.

Definition at line 87 of file VXDSensorInfoBasePar.h.

87{ return m_vCells + m_vCells2; }

◆ getVCells1()

int getVCells1 ( ) const
inline

Return number of pixel/strips in v direction for first segment.

Definition at line 89 of file VXDSensorInfoBasePar.h.

89{ return m_vCells; }

◆ getVCells2()

int getVCells2 ( ) const
inline

Return number of pixel/strips in v direction for second segment.

Definition at line 91 of file VXDSensorInfoBasePar.h.

91{ return m_vCells2; }

◆ getWidth()

double getWidth ( ) const
inline

Return the (backward) width of the sensor.

Definition at line 77 of file VXDSensorInfoBasePar.h.

77{ return m_width; }

◆ getWidth2()

double getWidth2 ( ) const
inline

Return forward width for a slanted sensor.

Definition at line 75 of file VXDSensorInfoBasePar.h.

75{ return m_width2; }

Member Data Documentation

◆ m_id

unsigned short m_id
protected

ID of the Sensor.

Definition at line 98 of file VXDSensorInfoBasePar.h.

◆ m_length

double m_length
protected

Length of the Sensor.

Definition at line 102 of file VXDSensorInfoBasePar.h.

◆ m_splitLength

double m_splitLength
protected

Length at which second pixel size starts, 0 for only one pixel size.

Definition at line 108 of file VXDSensorInfoBasePar.h.

◆ m_thickness

double m_thickness
protected

Thickness of the Sensor.

Definition at line 104 of file VXDSensorInfoBasePar.h.

◆ m_type

SensorType m_type
protected

Type of the Sensor.

Definition at line 96 of file VXDSensorInfoBasePar.h.

◆ m_uCells

int m_uCells
protected

Number of strips/pixels in u direction.

Definition at line 110 of file VXDSensorInfoBasePar.h.

◆ m_vCells

int m_vCells
protected

Number of strips/pixels in v direction (up to splitLength for two pixel sizes)

Definition at line 112 of file VXDSensorInfoBasePar.h.

◆ m_vCells2

int m_vCells2
protected

Number of strips/pixels in v direction after splitLength, 0 for only one pixel size.

Definition at line 114 of file VXDSensorInfoBasePar.h.

◆ m_width

double m_width
protected

Width of the sensor, backward width for wedge sensors.

Definition at line 100 of file VXDSensorInfoBasePar.h.

◆ m_width2

double m_width2
protected

Forward width for wedge sensors, 0 for rectangular sensors.

Definition at line 106 of file VXDSensorInfoBasePar.h.


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