Belle II Software development
VXDGeoSensorPar Class Reference

The Class for VXD Sensor payload. More...

#include <VXDGeoSensorPar.h>

Inheritance diagram for VXDGeoSensorPar:
VXDGeoComponentPar

Public Member Functions

 VXDGeoSensorPar (const std::string &material="", const std::string &color="", double width=0, double width2=0, double length=0, double height=0, double angle=0, bool slanted=false)
 Constructor.
 
 ~VXDGeoSensorPar ()
 Destructor.
 
void setActive (const VXDGeoComponentPar &area, const VXDGeoPlacementPar &placement)
 set the active area
 
const VXDGeoComponentPargetActiveArea () const
 get the component description for the active area
 
const VXDGeoPlacementPargetActivePlacement () const
 get the placement description for the active area
 
void setComponents (const std::vector< VXDGeoPlacementPar > &component)
 set the list of sub components to be placed
 
const std::vector< VXDGeoPlacementPar > & getComponents () const
 get the list of sub components
 
void setSensorInfo (VXDSensorInfoBasePar *info)
 set the pointer to the SensorInfo class
 
const VXDSensorInfoBasePargetSensorInfo () const
 get the pointer to the SensorInfo class
 
bool getSlanted () const
 return wether or not the sensor is slanted (usually only the first sensor in layers 4-6)
 
void setSlanted (bool slanted)
 set wether or not the sensor is slanted (usually only the first sensor in layers 4-6)
 
const std::string & getMaterial () const
 get the name of the Material for the component
 
void setMaterial (const std::string &material)
 set the name of the Material for the component
 
const std::string & getColor () const
 get the name of the color for the component
 
void setColor (const std::string &color)
 set the name of the color for the component
 
double getWidth () const
 get the width of the component
 
void setWidth (double width)
 set the width of the component.
 
double getWidth2 () const
 get the forward width of the component, 0 for rectangular
 
void setWidth2 (double width2)
 set the width2 of the component
 
double getLength () const
 get the length of the component
 
void setLength (double length)
 set the length of the component
 
double getHeight () const
 get the height of the component
 
double & getHeight ()
 get the height of the component
 
void setHeight (double height)
 set the height of the component
 
double getAngle () const
 get the angle of the component
 
void setAngle (double angle)
 set the angle of the component
 
const std::vector< VXDGeoPlacementPar > & getSubComponents () const
 get sub components
 
void setSubComponents (const std::vector< VXDGeoPlacementPar > &components)
 set sub components
 

Private Member Functions

 ClassDef (VXDGeoSensorPar, 5)
 ClassDef, must be the last term before the closing {}.
 

Private Attributes

VXDGeoComponentPar m_activeArea
 Paramerers of the active area.
 
VXDGeoPlacementPar m_activePlacement
 Position of the active area.
 
VXDSensorInfoBaseParm_info
 Sensor Information instance.
 
bool m_slanted
 Indication wether this is a slanted sensor.
 
std::vector< VXDGeoPlacementParm_components
 list of all components to be placed
 
std::string m_material {""}
 Name of the material of the component.
 
std::string m_color {""}
 Name of the color of the component.
 
double m_width {0.}
 width of the component
 
double m_width2 {0.}
 forward width of the component, 0 for recangular
 
double m_length {0.}
 length of the component
 
double m_height {0.}
 height of the component
 
double m_angle {0.}
 angle of the component
 
std::vector< VXDGeoPlacementParm_subComponents
 list of subcomponents
 

Detailed Description

The Class for VXD Sensor payload.

Definition at line 29 of file VXDGeoSensorPar.h.

Constructor & Destructor Documentation

◆ VXDGeoSensorPar()

VXDGeoSensorPar ( const std::string &  material = "",
const std::string &  color = "",
double  width = 0,
double  width2 = 0,
double  length = 0,
double  height = 0,
double  angle = 0,
bool  slanted = false 
)
inline

Constructor.

Definition at line 32 of file VXDGeoSensorPar.h.

33 :
34 VXDGeoComponentPar(material, color, width, width2, length, height, angle), m_info(0), m_slanted(slanted) {}
VXDGeoComponentPar(const std::string &material="", const std::string &color="", double width=0, double width2=0, double length=0, double height=0, double angle=0)
Constructor.
VXDSensorInfoBasePar * m_info
Sensor Information instance.
bool m_slanted
Indication wether this is a slanted sensor.

◆ ~VXDGeoSensorPar()

~VXDGeoSensorPar ( )
inline

Destructor.

Definition at line 36 of file VXDGeoSensorPar.h.

36{}

Member Function Documentation

◆ getActiveArea()

const VXDGeoComponentPar & getActiveArea ( ) const
inline

get the component description for the active area

Definition at line 46 of file VXDGeoSensorPar.h.

46{ return m_activeArea; }
VXDGeoComponentPar m_activeArea
Paramerers of the active area.

◆ getActivePlacement()

const VXDGeoPlacementPar & getActivePlacement ( ) const
inline

get the placement description for the active area

Definition at line 48 of file VXDGeoSensorPar.h.

48{ return m_activePlacement; }
VXDGeoPlacementPar m_activePlacement
Position of the active area.

◆ getAngle()

double getAngle ( ) const
inlineinherited

get the angle of the component

Definition at line 65 of file VXDGeoComponentPar.h.

65{ return m_angle; }
double m_angle
angle of the component

◆ getColor()

const std::string & getColor ( ) const
inlineinherited

get the name of the color for the component

Definition at line 43 of file VXDGeoComponentPar.h.

43{ return m_color; }
std::string m_color
Name of the color of the component.

◆ getComponents()

const std::vector< VXDGeoPlacementPar > & getComponents ( ) const
inline

get the list of sub components

Definition at line 52 of file VXDGeoSensorPar.h.

52{ return m_components; }
std::vector< VXDGeoPlacementPar > m_components
list of all components to be placed

◆ getHeight() [1/2]

double & getHeight ( )
inlineinherited

get the height of the component

Definition at line 61 of file VXDGeoComponentPar.h.

61{ return m_height; }
double m_height
height of the component

◆ getHeight() [2/2]

double getHeight ( ) const
inlineinherited

get the height of the component

Definition at line 59 of file VXDGeoComponentPar.h.

59{ return m_height; }

◆ getLength()

double getLength ( ) const
inlineinherited

get the length of the component

Definition at line 55 of file VXDGeoComponentPar.h.

55{ return m_length; }
double m_length
length of the component

◆ getMaterial()

const std::string & getMaterial ( ) const
inlineinherited

get the name of the Material for the component

Definition at line 39 of file VXDGeoComponentPar.h.

39{ return m_material; }
std::string m_material
Name of the material of the component.

◆ getSensorInfo()

const VXDSensorInfoBasePar * getSensorInfo ( ) const
inline

get the pointer to the SensorInfo class

Definition at line 56 of file VXDGeoSensorPar.h.

56{ return m_info; }

◆ getSlanted()

bool getSlanted ( ) const
inline

return wether or not the sensor is slanted (usually only the first sensor in layers 4-6)

Definition at line 58 of file VXDGeoSensorPar.h.

58{ return m_slanted; }

◆ getSubComponents()

const std::vector< VXDGeoPlacementPar > & getSubComponents ( ) const
inlineinherited

get sub components

Definition at line 69 of file VXDGeoComponentPar.h.

69{return m_subComponents;}
std::vector< VXDGeoPlacementPar > m_subComponents
list of subcomponents

◆ getWidth()

double getWidth ( ) const
inlineinherited

get the width of the component

Definition at line 47 of file VXDGeoComponentPar.h.

47{ return m_width; }
double m_width
width of the component

◆ getWidth2()

double getWidth2 ( ) const
inlineinherited

get the forward width of the component, 0 for rectangular

Definition at line 51 of file VXDGeoComponentPar.h.

51{ return m_width2; }
double m_width2
forward width of the component, 0 for recangular

◆ setActive()

void setActive ( const VXDGeoComponentPar area,
const VXDGeoPlacementPar placement 
)
inline

set the active area

Parameters
areacomponent description of the active area
placementplacement description of the active area

Definition at line 41 of file VXDGeoSensorPar.h.

42 {
43 m_activeArea = area; m_activePlacement = placement;
44 }

◆ setAngle()

void setAngle ( double  angle)
inlineinherited

set the angle of the component

Definition at line 67 of file VXDGeoComponentPar.h.

67{ m_angle = angle; }

◆ setColor()

void setColor ( const std::string &  color)
inlineinherited

set the name of the color for the component

Definition at line 45 of file VXDGeoComponentPar.h.

45{m_color = color; }

◆ setComponents()

void setComponents ( const std::vector< VXDGeoPlacementPar > &  component)
inline

set the list of sub components to be placed

Definition at line 50 of file VXDGeoSensorPar.h.

50{ m_components = component; }

◆ setHeight()

void setHeight ( double  height)
inlineinherited

set the height of the component

Definition at line 63 of file VXDGeoComponentPar.h.

63{ m_height = height; }

◆ setLength()

void setLength ( double  length)
inlineinherited

set the length of the component

Definition at line 57 of file VXDGeoComponentPar.h.

57{ m_length = length; }

◆ setMaterial()

void setMaterial ( const std::string &  material)
inlineinherited

set the name of the Material for the component

Definition at line 41 of file VXDGeoComponentPar.h.

41{ m_material = material; }

◆ setSensorInfo()

void setSensorInfo ( VXDSensorInfoBasePar info)
inline

set the pointer to the SensorInfo class

Definition at line 54 of file VXDGeoSensorPar.h.

54{ m_info = info; }

◆ setSlanted()

void setSlanted ( bool  slanted)
inline

set wether or not the sensor is slanted (usually only the first sensor in layers 4-6)

Definition at line 60 of file VXDGeoSensorPar.h.

60{ m_slanted = slanted; }

◆ setSubComponents()

void setSubComponents ( const std::vector< VXDGeoPlacementPar > &  components)
inlineinherited

set sub components

Definition at line 71 of file VXDGeoComponentPar.h.

71{ m_subComponents = components; }

◆ setWidth()

void setWidth ( double  width)
inlineinherited

set the width of the component.

This will automatically set width2 to zero

Definition at line 49 of file VXDGeoComponentPar.h.

49{ m_width = width; m_width2 = 0; }

◆ setWidth2()

void setWidth2 ( double  width2)
inlineinherited

set the width2 of the component

Definition at line 53 of file VXDGeoComponentPar.h.

53{m_width2 = width2; }

Member Data Documentation

◆ m_activeArea

VXDGeoComponentPar m_activeArea
private

Paramerers of the active area.

Definition at line 63 of file VXDGeoSensorPar.h.

◆ m_activePlacement

VXDGeoPlacementPar m_activePlacement
private

Position of the active area.

Definition at line 65 of file VXDGeoSensorPar.h.

◆ m_angle

double m_angle {0.}
privateinherited

angle of the component

Definition at line 90 of file VXDGeoComponentPar.h.

◆ m_color

std::string m_color {""}
privateinherited

Name of the color of the component.

Definition at line 80 of file VXDGeoComponentPar.h.

◆ m_components

std::vector<VXDGeoPlacementPar> m_components
private

list of all components to be placed

Definition at line 71 of file VXDGeoSensorPar.h.

◆ m_height

double m_height {0.}
privateinherited

height of the component

Definition at line 88 of file VXDGeoComponentPar.h.

◆ m_info

VXDSensorInfoBasePar* m_info
private

Sensor Information instance.

Definition at line 67 of file VXDGeoSensorPar.h.

◆ m_length

double m_length {0.}
privateinherited

length of the component

Definition at line 86 of file VXDGeoComponentPar.h.

◆ m_material

std::string m_material {""}
privateinherited

Name of the material of the component.

Definition at line 78 of file VXDGeoComponentPar.h.

◆ m_slanted

bool m_slanted
private

Indication wether this is a slanted sensor.

Definition at line 69 of file VXDGeoSensorPar.h.

◆ m_subComponents

std::vector<VXDGeoPlacementPar> m_subComponents
privateinherited

list of subcomponents

Definition at line 92 of file VXDGeoComponentPar.h.

◆ m_width

double m_width {0.}
privateinherited

width of the component

Definition at line 82 of file VXDGeoComponentPar.h.

◆ m_width2

double m_width2 {0.}
privateinherited

forward width of the component, 0 for recangular

Definition at line 84 of file VXDGeoComponentPar.h.


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