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

Struct holding all parameters for a completeVXD Sensor. More...

#include <GeoVXDComponents.h>

Inheritance diagram for VXDGeoSensor:
Collaboration diagram for VXDGeoSensor:

Public Member Functions

 VXDGeoSensor (const std::string &material="", const std::string &color="", double width=0, double width2=0, double length=0, double height=0, bool slanted=false)
 Constructor.
 
void setActive (const VXDGeoComponent &area, const VXDGeoPlacement &placement)
 set the active area More...
 
VXDGeoComponentgetActiveArea ()
 get the component description for the active area
 
const VXDGeoPlacementgetActivePlacement ()
 get the placement description for the active area
 
void setComponents (const std::vector< VXDGeoPlacement > &component)
 set the list of sub components to be placed
 
const std::vector< VXDGeoPlacement > & getComponents () const
 get the list of sub components
 
void setSensorInfo (VXD::SensorInfoBase *info)
 set the pointer to the SensorInfo class
 
const VXD::SensorInfoBasegetSensorInfo () 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)
 
G4LogicalVolume * getVolume () const
 get the pointer to the logical volume, NULL if not yet created
 
void setVolume (G4LogicalVolume *volume)
 set the pointer to the logical volume
 
const std::string & getMaterial () const
 get the name of the Material for the component
 
const std::string & getColor () const
 get 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
 
double getLength () const
 get the length of the component
 
void setLength (double length)
 set the length of the component
 
double & getHeight ()
 get the height of the component
 
double getHeight () const
 get the height of the component
 

Private Attributes

VXDGeoComponent m_activeArea
 Paramerers of the active area.
 
VXDGeoPlacement m_activePlacement
 Position of the active area.
 
VXD::SensorInfoBasem_info
 Sensor Information instance.
 
bool m_slanted
 Indication wether this is a slanted sensor.
 
std::vector< VXDGeoPlacementm_components
 List of all components to be placed.
 
G4LogicalVolume * m_volume
 Pointer to the Logical volume if already created

 
std::string m_material
 transient member, owned by Geant4 More...
 
std::string m_color
 Name of the color of the component.
 
double m_width
 width of the component
 
double m_width2
 forward width of the component, 0 for recangular
 
double m_length
 length of the component
 
double m_height
 height of the component
 

Detailed Description

Struct holding all parameters for a completeVXD Sensor.

Definition at line 109 of file GeoVXDComponents.h.

Member Function Documentation

◆ setActive()

void setActive ( const VXDGeoComponent area,
const VXDGeoPlacement placement 
)
inline

set the active area

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

Definition at line 119 of file GeoVXDComponents.h.

◆ setWidth()

void setWidth ( double  width)
inlineinherited

set the width of the component.

This will automatically set width2 to zero

Definition at line 80 of file GeoVXDComponents.h.

Member Data Documentation

◆ m_material

std::string m_material
privateinherited

transient member, owned by Geant4

Name of the material of the component

Definition at line 95 of file GeoVXDComponents.h.


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