Belle II Software development
VXDGeoSensor Class Reference

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

#include <GeoVXDComponents.h>

Inheritance diagram for VXDGeoSensor:
VXDGeoComponent

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

Constructor & Destructor Documentation

◆ VXDGeoSensor()

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

Constructor.

Definition at line 112 of file GeoVXDComponents.h.

113 :
114 VXDGeoComponent(material, color, width, width2, length, height), m_info(0), m_slanted(slanted) {}
VXDGeoComponent(const std::string &material="", const std::string &color="", double width=0, double width2=0, double length=0, double height=0)
Constructor.
VXD::SensorInfoBase * m_info
Sensor Information instance.
bool m_slanted
Indication wether this is a slanted sensor.

Member Function Documentation

◆ getActiveArea()

VXDGeoComponent & getActiveArea ( )
inline

get the component description for the active area

Definition at line 124 of file GeoVXDComponents.h.

124{ return m_activeArea; }
VXDGeoComponent m_activeArea
Paramerers of the active area.

◆ getActivePlacement()

const VXDGeoPlacement & getActivePlacement ( )
inline

get the placement description for the active area

Definition at line 126 of file GeoVXDComponents.h.

126{ return m_activePlacement; }
VXDGeoPlacement m_activePlacement
Position of the active area.

◆ getColor()

const std::string & getColor ( ) const
inlineinherited

get the name of the color for the component

Definition at line 76 of file GeoVXDComponents.h.

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

◆ getComponents()

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

get the list of sub components

Definition at line 130 of file GeoVXDComponents.h.

130{ return m_components; }
std::vector< VXDGeoPlacement > m_components
List of all components to be placed.

◆ getHeight() [1/2]

double & getHeight ( )
inlineinherited

get the height of the component

Definition at line 88 of file GeoVXDComponents.h.

88{ 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 90 of file GeoVXDComponents.h.

90{ return m_height; }

◆ getLength()

double getLength ( ) const
inlineinherited

get the length of the component

Definition at line 84 of file GeoVXDComponents.h.

84{ 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 74 of file GeoVXDComponents.h.

74{ return m_material; }
std::string m_material
transient member, owned by Geant4

◆ getSensorInfo()

const VXD::SensorInfoBase * getSensorInfo ( ) const
inline

get the pointer to the SensorInfo class

Definition at line 134 of file GeoVXDComponents.h.

134{ 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 136 of file GeoVXDComponents.h.

136{ return m_slanted; }

◆ getVolume()

G4LogicalVolume * getVolume ( ) const
inlineinherited

get the pointer to the logical volume, NULL if not yet created

Definition at line 70 of file GeoVXDComponents.h.

70{ return m_volume; }
G4LogicalVolume * m_volume
Pointer to the Logical volume if already created

◆ getWidth()

double getWidth ( ) const
inlineinherited

get the width of the component

Definition at line 78 of file GeoVXDComponents.h.

78{ 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 82 of file GeoVXDComponents.h.

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

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

120 {
121 m_activeArea = area; m_activePlacement = placement;
122 }

◆ setComponents()

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

set the list of sub components to be placed

Definition at line 128 of file GeoVXDComponents.h.

128{ m_components = component; }

◆ setLength()

void setLength ( double  length)
inlineinherited

set the length of the component

Definition at line 86 of file GeoVXDComponents.h.

86{ m_length = length; }

◆ setSensorInfo()

void setSensorInfo ( VXD::SensorInfoBase info)
inline

set the pointer to the SensorInfo class

Definition at line 132 of file GeoVXDComponents.h.

132{ m_info = info; }

◆ setVolume()

void setVolume ( G4LogicalVolume *  volume)
inlineinherited

set the pointer to the logical volume

Definition at line 72 of file GeoVXDComponents.h.

72{ m_volume = volume; }

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

80{ m_width = width; m_width2 = 0; }

Member Data Documentation

◆ m_activeArea

VXDGeoComponent m_activeArea
private

Paramerers of the active area.

Definition at line 139 of file GeoVXDComponents.h.

◆ m_activePlacement

VXDGeoPlacement m_activePlacement
private

Position of the active area.

Definition at line 141 of file GeoVXDComponents.h.

◆ m_color

std::string m_color
privateinherited

Name of the color of the component.

Definition at line 97 of file GeoVXDComponents.h.

◆ m_components

std::vector<VXDGeoPlacement> m_components
private

List of all components to be placed.

Definition at line 147 of file GeoVXDComponents.h.

◆ m_height

double m_height
privateinherited

height of the component

Definition at line 105 of file GeoVXDComponents.h.

◆ m_info

VXD::SensorInfoBase* m_info
private

Sensor Information instance.

Definition at line 143 of file GeoVXDComponents.h.

◆ m_length

double m_length
privateinherited

length of the component

Definition at line 103 of file GeoVXDComponents.h.

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

◆ m_slanted

bool m_slanted
private

Indication wether this is a slanted sensor.

Definition at line 145 of file GeoVXDComponents.h.

◆ m_volume

G4LogicalVolume* m_volume
privateinherited

Pointer to the Logical volume if already created

Definition at line 93 of file GeoVXDComponents.h.

◆ m_width

double m_width
privateinherited

width of the component

Definition at line 99 of file GeoVXDComponents.h.

◆ m_width2

double m_width2
privateinherited

forward width of the component, 0 for recangular

Definition at line 101 of file GeoVXDComponents.h.


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