Belle II Software development
SVDGeometryPar Class Reference

The Class for VXD geometry. More...

#include <SVDGeometryPar.h>

Inheritance diagram for SVDGeometryPar:
VXDGeometryPar

Public Member Functions

 SVDGeometryPar ()
 Default constructor.
 
const std::vector< VXDRotationSolidPar > & getRotationSolids () const
 get SVD halfshell Rotation Solids
 
std::vector< VXDRotationSolidPar > & getRotationSolids ()
 get SVD halfshell Rotation Solids
 
const std::map< int, SVDEndringsPar > & getEndrings () const
 get endrings
 
std::map< int, SVDEndringsPar > & getEndrings ()
 get endrings
 
const std::map< int, SVDCoolingPipesPar > & getCoolingPipes () const
 get cooling pipes
 
std::map< int, SVDCoolingPipesPar > & getCoolingPipes ()
 get cooling pipes
 
const std::map< int, SVDSupportRibsPar > & getSupportRibs () const
 get support ribs
 
std::map< int, SVDSupportRibsPar > & getSupportRibs ()
 get support ribs
 
const SVDSupportRibsPargetSupportRibs (int) const
 get SVD Support Ribs
 
const SVDEndringsPargetEndrings (int) const
 get SVD Endrings
 
const SVDCoolingPipesPargetCoolingPipes (int) const
 get SVD Cooling Pipes
 
bool getSupportRibsExist (int) const
 return if SVD Support Ribs exist
 
bool getEndringsExist (int) const
 return if endrings exist
 
bool getCoolingPipesExist (int) const
 return if endrings exist
 
std::vector< SVDSensorInfoPar * > & getSensorInfos ()
 get sensorInfos
 
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 (SVDGeometryPar, 5)
 ClassDef, must be the last term before the closing {}.
 

Private Attributes

std::vector< SVDSensorInfoPar * > m_SensorInfo
 Vector of pointers to SensorInfo objects.
 
std::vector< VXDRotationSolidParm_halfShell
 SVD Half Shell parameters.
 
std::map< int, SVDEndringsParm_endrings
 SVD Endrings parameters.
 
std::map< int, SVDCoolingPipesParm_coolingPipes
 SVD Cooling Pipes parameters.
 
std::map< int, SVDSupportRibsParm_supportRibs
 SVD SupportRibs parameters.
 
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 29 of file SVDGeometryPar.h.

Constructor & Destructor Documentation

◆ SVDGeometryPar()

SVDGeometryPar ( )
inline

Default constructor.

Definition at line 33 of file SVDGeometryPar.h.

33{}

Member Function Documentation

◆ getAlignment()

VXDAlignmentPar getAlignment ( std::string  name) const
inherited

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 ( )
inlineinherited

get alignmant map

Definition at line 58 of file VXDGeometryPar.h.

58{return m_alignment;}

◆ getComponent()

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

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 ( )
inlineinherited

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
inlineinherited

get component insert order

Definition at line 86 of file VXDGeometryPar.h.

◆ getComponentMap() [1/2]

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

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
inlineinherited

get component maps

Definition at line 78 of file VXDGeometryPar.h.

78{return m_componentCache; }

◆ getCoolingPipes() [1/3]

std::map< int, SVDCoolingPipesPar > & getCoolingPipes ( )
inline

get cooling pipes

Definition at line 51 of file SVDGeometryPar.h.

51{return m_coolingPipes;}
std::map< int, SVDCoolingPipesPar > m_coolingPipes
SVD Cooling Pipes parameters.

◆ getCoolingPipes() [2/3]

const std::map< int, SVDCoolingPipesPar > & getCoolingPipes ( ) const
inline

get cooling pipes

Definition at line 48 of file SVDGeometryPar.h.

48{return m_coolingPipes;}

◆ getCoolingPipes() [3/3]

const SVDCoolingPipesPar & getCoolingPipes ( int  layer) const

get SVD Cooling Pipes

Definition at line 67 of file SVDGeometryPar.cc.

68{
69 //Check if sensorType already exists
70 std::map<int, SVDCoolingPipesPar>::const_iterator cached = m_coolingPipes.find(layer);
71 if (cached == m_coolingPipes.end()) {
72 B2FATAL("No CoolingPipes found for layer " << std::to_string(layer));
73 }
74 return cached->second;
75}

◆ getCoolingPipesExist()

bool getCoolingPipesExist ( int  layer) const

return if endrings exist

Definition at line 36 of file SVDGeometryPar.cc.

37{
38 //Check if sensorType already exists
39 std::map<int, SVDCoolingPipesPar>::const_iterator cached = m_coolingPipes.find(layer);
40 if (cached == m_coolingPipes.end()) {
41 return false;
42 }
43 return true;
44}

◆ getEndrings() [1/3]

std::map< int, SVDEndringsPar > & getEndrings ( )
inline

get endrings

Definition at line 45 of file SVDGeometryPar.h.

45{return m_endrings;}
std::map< int, SVDEndringsPar > m_endrings
SVD Endrings parameters.

◆ getEndrings() [2/3]

const std::map< int, SVDEndringsPar > & getEndrings ( ) const
inline

get endrings

Definition at line 42 of file SVDGeometryPar.h.

42{return m_endrings;}

◆ getEndrings() [3/3]

const SVDEndringsPar & getEndrings ( int  layer) const

get SVD Endrings

Definition at line 57 of file SVDGeometryPar.cc.

58{
59 //Check if sensorType already exists
60 std::map<int, SVDEndringsPar>::const_iterator cached = m_endrings.find(layer);
61 if (cached == m_endrings.end()) {
62 B2FATAL("No Endrings found for layer " << std::to_string(layer));
63 }
64 return cached->second;
65}

◆ getEndringsExist()

bool getEndringsExist ( int  layer) const

return if endrings exist

Definition at line 26 of file SVDGeometryPar.cc.

27{
28 //Check if sensorType already exists
29 std::map<int, SVDEndringsPar>::const_iterator cached = m_endrings.find(layer);
30 if (cached == m_endrings.end()) {
31 return false;
32 }
33 return true;
34}

◆ getEnvelope()

const VXDEnvelopePar & getEnvelope ( ) const
inlineinherited

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
inlineinherited

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 ( )
inlineinherited

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
inlineinherited

get half-shell

Definition at line 62 of file VXDGeometryPar.h.

62{return m_halfShells;}

◆ getLadder()

const VXDGeoLadderPar & getLadder ( int  layerID) const
inherited

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 ( )
inlineinherited

get ladder map

Definition at line 66 of file VXDGeometryPar.h.

66{ return m_ladders; }

◆ getPrefix()

std::string getPrefix ( ) const
inlineinherited

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
inlineinherited

get radiation sensor parameters

Definition at line 54 of file VXDGeometryPar.h.

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

◆ getRotationSolids() [1/2]

std::vector< VXDRotationSolidPar > & getRotationSolids ( )
inline

get SVD halfshell Rotation Solids

Definition at line 39 of file SVDGeometryPar.h.

39{return m_halfShell;}
std::vector< VXDRotationSolidPar > m_halfShell
SVD Half Shell parameters.

◆ getRotationSolids() [2/2]

const std::vector< VXDRotationSolidPar > & getRotationSolids ( ) const
inline

get SVD halfshell Rotation Solids

Definition at line 36 of file SVDGeometryPar.h.

36{return m_halfShell;}

◆ getSensitiveChipID()

int getSensitiveChipID ( std::string  name) const
inherited

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 ( )
inlineinherited

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
inherited

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.

◆ getSensorInfos()

std::vector< SVDSensorInfoPar * > & getSensorInfos ( )
inline

get sensorInfos

Definition at line 78 of file SVDGeometryPar.h.

78{return m_SensorInfo;}
std::vector< SVDSensorInfoPar * > m_SensorInfo
Vector of pointers to SensorInfo objects.

◆ getSensorMap() [1/2]

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

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
inlineinherited

get sensor map

Definition at line 74 of file VXDGeometryPar.h.

74{return m_sensorMap;}

◆ getSupportRibs() [1/3]

std::map< int, SVDSupportRibsPar > & getSupportRibs ( )
inline

get support ribs

Definition at line 57 of file SVDGeometryPar.h.

57{return m_supportRibs;}
std::map< int, SVDSupportRibsPar > m_supportRibs
SVD SupportRibs parameters.

◆ getSupportRibs() [2/3]

const std::map< int, SVDSupportRibsPar > & getSupportRibs ( ) const
inline

get support ribs

Definition at line 54 of file SVDGeometryPar.h.

54{return m_supportRibs;}

◆ getSupportRibs() [3/3]

const SVDSupportRibsPar & getSupportRibs ( int  layer) const

get SVD Support Ribs

Definition at line 47 of file SVDGeometryPar.cc.

48{
49 //Check if sensorType already exists
50 std::map<int, SVDSupportRibsPar>::const_iterator cached = m_supportRibs.find(layer);
51 if (cached == m_supportRibs.end()) {
52 B2FATAL("No SupportRibs found for layer " << std::to_string(layer));
53 }
54 return cached->second;
55}

◆ getSupportRibsExist()

bool getSupportRibsExist ( int  layer) const

return if SVD Support Ribs exist

Definition at line 16 of file SVDGeometryPar.cc.

17{
18 //Check if sensorType already exists
19 std::map<int, SVDSupportRibsPar>::const_iterator cached = m_supportRibs.find(layer);
20 if (cached == m_supportRibs.end()) {
21 return false;
22 }
23 return true;
24}

◆ setEnvelope()

void setEnvelope ( const VXDEnvelopePar envelope)
inlineinherited

set envelope parameters

Definition at line 52 of file VXDGeometryPar.h.

52{m_envelope = envelope;}

◆ setGlobalParams()

void setGlobalParams ( const VXDGlobalPar globals)
inlineinherited

set global parameters

Definition at line 48 of file VXDGeometryPar.h.

48{ m_globals = globals;}

◆ setPrefix()

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

set prefix

Definition at line 44 of file VXDGeometryPar.h.

44{ m_prefix = prefix;}

◆ setRadiationSensors()

void setRadiationSensors ( const VXDGeoRadiationSensorsPar diamonds)
inlineinherited

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
privateinherited

Alignment parameters for all components.

Definition at line 97 of file VXDGeometryPar.h.

◆ m_componentCache

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

Cache of all previously created components.

Definition at line 103 of file VXDGeometryPar.h.

◆ m_componentInsertOrder

std::vector<std::string> m_componentInsertOrder
privateinherited

Vector remembering the order of insertions into component cache.

Definition at line 105 of file VXDGeometryPar.h.

◆ m_coolingPipes

std::map<int, SVDCoolingPipesPar> m_coolingPipes
private

SVD Cooling Pipes parameters.

Definition at line 92 of file SVDGeometryPar.h.

◆ m_endrings

std::map<int, SVDEndringsPar> m_endrings
private

SVD Endrings parameters.

Definition at line 89 of file SVDGeometryPar.h.

◆ m_envelope

VXDEnvelopePar m_envelope
privateinherited

Envelope parameters.

Definition at line 99 of file VXDGeometryPar.h.

◆ m_globals

VXDGlobalPar m_globals
privateinherited

Container for a few general parameters.

Definition at line 95 of file VXDGeometryPar.h.

◆ m_halfShell

std::vector<VXDRotationSolidPar> m_halfShell
private

SVD Half Shell parameters.

Definition at line 86 of file SVDGeometryPar.h.

◆ m_halfShells

std::vector<VXDHalfShellPar> m_halfShells
privateinherited

Cache for half shells

Definition at line 101 of file VXDGeometryPar.h.

◆ m_ladders

std::map<int, VXDGeoLadderPar> m_ladders
privateinherited

Parameters of the detector ladders.

Definition at line 111 of file VXDGeometryPar.h.

◆ m_prefix

std::string m_prefix {""}
privateinherited

Prefix to prepend to all volume names.

Definition at line 93 of file VXDGeometryPar.h.

◆ m_radiationsensors

VXDGeoRadiationSensorsPar m_radiationsensors
privateinherited

Diamond radiation sensors.

Definition at line 109 of file VXDGeometryPar.h.

◆ m_sensitiveIDCache

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

Cache of all Bkg sensitive chip Ids.

Definition at line 113 of file VXDGeometryPar.h.

◆ m_SensorInfo

std::vector<SVDSensorInfoPar*> m_SensorInfo
private

Vector of pointers to SensorInfo objects.

Definition at line 83 of file SVDGeometryPar.h.

◆ m_sensorMap

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

Map containing Information about all defined sensor types.

Definition at line 107 of file VXDGeometryPar.h.

◆ m_supportRibs

std::map<int, SVDSupportRibsPar> m_supportRibs
private

SVD SupportRibs parameters.

Definition at line 95 of file SVDGeometryPar.h.


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