Belle II Software development
VXDGeometryPar Class Reference

The Class for VXD geometry. More...

#include <VXDGeometryPar.h>

Inheritance diagram for VXDGeometryPar:
PXDGeometryPar SVDGeometryPar

Public Member Functions

 VXDGeometryPar ()
 Default constructor.
 
std::string getPrefix () const
 get prefix
 
void setPrefix (const std::string &prefix)
 set prefix
 
const VXDGlobalPargetGlobalParams () const
 get global parameters
 
void setGlobalParams (const VXDGlobalPar &globals)
 set global parameters
 
const VXDEnvelopePargetEnvelope () const
 get envelope parameters
 
void setEnvelope (const VXDEnvelopePar &envelope)
 set envelope parameters
 
const VXDGeoRadiationSensorsPargetRadiationSensors () const
 get radiation sensor parameters
 
void setRadiationSensors (const VXDGeoRadiationSensorsPar &diamonds)
 set radiation sensor parameters
 
std::map< std::string, VXDAlignmentPar > & getAlignmentMap ()
 get alignmant map
 
VXDAlignmentPar getAlignment (std::string name) const
 get alignment parameters for component name
 
const std::vector< VXDHalfShellPar > & getHalfShells () const
 get half-shell
 
std::vector< VXDHalfShellPar > & getHalfShells ()
 get half-shell
 
std::map< int, VXDGeoLadderPar > & getLadderMap ()
 get ladder map
 
const VXDGeoLadderPargetLadder (int layerID) const
 get ladder for given layer
 
const VXDGeoSensorPargetSensor (std::string sensorTypeID) const
 get sensor type
 
const VXDGeoComponentPargetComponent (std::string name) const
 get component
 
const std::map< std::string, VXDGeoSensorPar > & getSensorMap () const
 get sensor map
 
std::map< std::string, VXDGeoSensorPar > & getSensorMap ()
 get sensor map
 
const std::map< std::string, VXDGeoComponentPar > & getComponentMap () const
 get component maps
 
std::map< std::string, VXDGeoComponentPar > & getComponentMap ()
 get component maps
 
int getSensitiveChipID (std::string name) const
 get Bkg sensitive chip Id
 
std::map< std::string, int > & getSensitiveChipIdMap ()
 get sensitive chip id map
 
const std::vector< std::string > & getComponentInsertOder () const
 get component insert order
 
std::vector< std::string > & getComponentInsertOder ()
 get component insert order
 

Private Member Functions

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

Private Attributes

std::string m_prefix {""}
 Prefix to prepend to all volume names.
 
VXDGlobalPar m_globals
 Container for a few general parameters.
 
std::map< std::string, VXDAlignmentParm_alignment
 Alignment parameters for all components.
 
VXDEnvelopePar m_envelope
 Envelope parameters.
 
std::vector< VXDHalfShellParm_halfShells
 Cache for half shells

 
std::map< std::string, VXDGeoComponentParm_componentCache
 Cache of all previously created components.
 
std::vector< std::string > m_componentInsertOrder
 Vector remembering the order of insertions into component cache.
 
std::map< std::string, VXDGeoSensorParm_sensorMap
 Map containing Information about all defined sensor types.
 
VXDGeoRadiationSensorsPar m_radiationsensors
 Diamond radiation sensors.
 
std::map< int, VXDGeoLadderParm_ladders
 Parameters of the detector ladders.
 
std::map< std::string, int > m_sensitiveIDCache
 Cache of all Bkg sensitive chip Ids.
 

Detailed Description

The Class for VXD geometry.

Definition at line 36 of file VXDGeometryPar.h.

Constructor & Destructor Documentation

◆ VXDGeometryPar()

VXDGeometryPar ( )
inline

Default constructor.

Definition at line 39 of file VXDGeometryPar.h.

39{}

Member Function Documentation

◆ getAlignment()

VXDAlignmentPar getAlignment ( std::string  name) const

get alignment parameters for component name

Definition at line 62 of file VXDGeometryPar.cc.

63{
64 //Check if component already exists
65 map<string, VXDAlignmentPar>::const_iterator cached = m_alignment.find(name);
66 if (cached == m_alignment.end()) {
67 B2FATAL("Could not find alignment parameters for component " << name);
68 }
69 return cached->second;
70}
std::map< std::string, VXDAlignmentPar > m_alignment
Alignment parameters for all components.

◆ getAlignmentMap()

std::map< std::string, VXDAlignmentPar > & getAlignmentMap ( )
inline

get alignmant map

Definition at line 58 of file VXDGeometryPar.h.

58{return m_alignment;}

◆ getComponent()

const VXDGeoComponentPar & getComponent ( std::string  name) const

get component

Definition at line 17 of file VXDGeometryPar.cc.

18{
19 //Check if component already exists
20 std::map<string, VXDGeoComponentPar>::const_iterator cached = m_componentCache.find(name);
21 if (cached == m_componentCache.end()) {
22 B2FATAL("Could not find component " << name);
23 }
24 return cached->second;
25}
std::map< std::string, VXDGeoComponentPar > m_componentCache
Cache of all previously created components.

◆ getComponentInsertOder() [1/2]

std::vector< std::string > & getComponentInsertOder ( )
inline

get component insert order

Definition at line 88 of file VXDGeometryPar.h.

std::vector< std::string > m_componentInsertOrder
Vector remembering the order of insertions into component cache.

◆ getComponentInsertOder() [2/2]

const std::vector< std::string > & getComponentInsertOder ( ) const
inline

get component insert order

Definition at line 86 of file VXDGeometryPar.h.

◆ getComponentMap() [1/2]

std::map< std::string, VXDGeoComponentPar > & getComponentMap ( )
inline

get component maps

Definition at line 80 of file VXDGeometryPar.h.

80{return m_componentCache; }

◆ getComponentMap() [2/2]

const std::map< std::string, VXDGeoComponentPar > & getComponentMap ( ) const
inline

get component maps

Definition at line 78 of file VXDGeometryPar.h.

78{return m_componentCache; }

◆ getEnvelope()

const VXDEnvelopePar & getEnvelope ( ) const
inline

get envelope parameters

Definition at line 50 of file VXDGeometryPar.h.

50{return m_envelope;}
VXDEnvelopePar m_envelope
Envelope parameters.

◆ getGlobalParams()

const VXDGlobalPar & getGlobalParams ( ) const
inline

get global parameters

Definition at line 46 of file VXDGeometryPar.h.

46{return m_globals;}
VXDGlobalPar m_globals
Container for a few general parameters.

◆ getHalfShells() [1/2]

std::vector< VXDHalfShellPar > & getHalfShells ( )
inline

get half-shell

Definition at line 64 of file VXDGeometryPar.h.

64{return m_halfShells;}
std::vector< VXDHalfShellPar > m_halfShells
Cache for half shells

◆ getHalfShells() [2/2]

const std::vector< VXDHalfShellPar > & getHalfShells ( ) const
inline

get half-shell

Definition at line 62 of file VXDGeometryPar.h.

62{return m_halfShells;}

◆ getLadder()

const VXDGeoLadderPar & getLadder ( int  layerID) const

get ladder for given layer

Definition at line 51 of file VXDGeometryPar.cc.

52{
53 //Check if component already exists
54 map<int, VXDGeoLadderPar>::const_iterator cached = m_ladders.find(layer);
55 if (cached == m_ladders.end()) {
56 B2FATAL("Could not find ladder for layer " << (boost::format("%1%") % layer).str());
57 }
58 return cached->second;
59}
std::map< int, VXDGeoLadderPar > m_ladders
Parameters of the detector ladders.

◆ getLadderMap()

std::map< int, VXDGeoLadderPar > & getLadderMap ( )
inline

get ladder map

Definition at line 66 of file VXDGeometryPar.h.

66{ return m_ladders; }

◆ getPrefix()

std::string getPrefix ( ) const
inline

get prefix

Definition at line 42 of file VXDGeometryPar.h.

42{return m_prefix;}
std::string m_prefix
Prefix to prepend to all volume names.

◆ getRadiationSensors()

const VXDGeoRadiationSensorsPar & getRadiationSensors ( ) const
inline

get radiation sensor parameters

Definition at line 54 of file VXDGeometryPar.h.

54{return m_radiationsensors;}
VXDGeoRadiationSensorsPar m_radiationsensors
Diamond radiation sensors.

◆ getSensitiveChipID()

int getSensitiveChipID ( std::string  name) const

get Bkg sensitive chip Id

Definition at line 29 of file VXDGeometryPar.cc.

30{
31 //Check if sensorType already exists
32 std::map<string, int>::const_iterator cached = m_sensitiveIDCache.find(name);
33 if (cached == m_sensitiveIDCache.end()) {
34 return -1;
35 }
36 return cached->second;
37}
std::map< std::string, int > m_sensitiveIDCache
Cache of all Bkg sensitive chip Ids.

◆ getSensitiveChipIdMap()

std::map< std::string, int > & getSensitiveChipIdMap ( )
inline

get sensitive chip id map

Definition at line 84 of file VXDGeometryPar.h.

84{return m_sensitiveIDCache;}

◆ getSensor()

const VXDGeoSensorPar & getSensor ( std::string  sensorTypeID) const

get sensor type

Definition at line 41 of file VXDGeometryPar.cc.

42{
43 //Check if sensorType already exists
44 std::map<string, VXDGeoSensorPar>::const_iterator cached = m_sensorMap.find(sensorTypeID);
45 if (cached == m_sensorMap.end()) {
46 B2FATAL("Invalid SensorTypeID " << sensorTypeID);
47 }
48 return cached->second;
49}
std::map< std::string, VXDGeoSensorPar > m_sensorMap
Map containing Information about all defined sensor types.

◆ getSensorMap() [1/2]

std::map< std::string, VXDGeoSensorPar > & getSensorMap ( )
inline

get sensor map

Definition at line 76 of file VXDGeometryPar.h.

76{return m_sensorMap;}

◆ getSensorMap() [2/2]

const std::map< std::string, VXDGeoSensorPar > & getSensorMap ( ) const
inline

get sensor map

Definition at line 74 of file VXDGeometryPar.h.

74{return m_sensorMap;}

◆ setEnvelope()

void setEnvelope ( const VXDEnvelopePar envelope)
inline

set envelope parameters

Definition at line 52 of file VXDGeometryPar.h.

52{m_envelope = envelope;}

◆ setGlobalParams()

void setGlobalParams ( const VXDGlobalPar globals)
inline

set global parameters

Definition at line 48 of file VXDGeometryPar.h.

48{ m_globals = globals;}

◆ setPrefix()

void setPrefix ( const std::string &  prefix)
inline

set prefix

Definition at line 44 of file VXDGeometryPar.h.

44{ m_prefix = prefix;}

◆ setRadiationSensors()

void setRadiationSensors ( const VXDGeoRadiationSensorsPar diamonds)
inline

set radiation sensor parameters

Definition at line 56 of file VXDGeometryPar.h.

56{m_radiationsensors = diamonds;}

Member Data Documentation

◆ m_alignment

std::map<std::string, VXDAlignmentPar> m_alignment
private

Alignment parameters for all components.

Definition at line 97 of file VXDGeometryPar.h.

◆ m_componentCache

std::map<std::string, VXDGeoComponentPar> m_componentCache
private

Cache of all previously created components.

Definition at line 103 of file VXDGeometryPar.h.

◆ m_componentInsertOrder

std::vector<std::string> m_componentInsertOrder
private

Vector remembering the order of insertions into component cache.

Definition at line 105 of file VXDGeometryPar.h.

◆ m_envelope

VXDEnvelopePar m_envelope
private

Envelope parameters.

Definition at line 99 of file VXDGeometryPar.h.

◆ m_globals

VXDGlobalPar m_globals
private

Container for a few general parameters.

Definition at line 95 of file VXDGeometryPar.h.

◆ m_halfShells

std::vector<VXDHalfShellPar> m_halfShells
private

Cache for half shells

Definition at line 101 of file VXDGeometryPar.h.

◆ m_ladders

std::map<int, VXDGeoLadderPar> m_ladders
private

Parameters of the detector ladders.

Definition at line 111 of file VXDGeometryPar.h.

◆ m_prefix

std::string m_prefix {""}
private

Prefix to prepend to all volume names.

Definition at line 93 of file VXDGeometryPar.h.

◆ m_radiationsensors

VXDGeoRadiationSensorsPar m_radiationsensors
private

Diamond radiation sensors.

Definition at line 109 of file VXDGeometryPar.h.

◆ m_sensitiveIDCache

std::map<std::string, int> m_sensitiveIDCache
private

Cache of all Bkg sensitive chip Ids.

Definition at line 113 of file VXDGeometryPar.h.

◆ m_sensorMap

std::map<std::string, VXDGeoSensorPar> m_sensorMap
private

Map containing Information about all defined sensor types.

Definition at line 107 of file VXDGeometryPar.h.


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