Belle II Software  release-08-01-10
VXDGeoSensorPar Class Reference

The Class for VXD Sensor payload. More...

#include <VXDGeoSensorPar.h>

Inheritance diagram for VXDGeoSensorPar:
Collaboration diagram for VXDGeoSensorPar:

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 More...
 
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. More...
 
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.

Member Function Documentation

◆ 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  }
VXDGeoPlacementPar m_activePlacement
Position of the active area.
VXDGeoComponentPar m_activeArea
Paramerers of the active area.

◆ 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.


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