BmnRoot
Loading...
Searching...
No Matches
CbmStsSensorFactory Class Reference

Creates available sensor types for STS geometry. More...

#include <CbmStsSensorFactory.h>

Inheritance diagram for CbmStsSensorFactory:
[legend]
Collaboration diagram for CbmStsSensorFactory:
[legend]

Public Member Functions

virtual ~CbmStsSensorFactory ()
 
Int_t DefineSensors ()
 
Int_t GetNofSensors () const
 
TGeoVolume * GetSensor (Int_t index)
 

Static Public Member Functions

static CbmStsSensorFactoryInstance ()
 

Detailed Description

Creates available sensor types for STS geometry.

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Since
18.11.2014
Version
1.0

Singleton factory class as first step towards a STS sensor database. At present, it comprises only the geometric parameters of the sensors, to be used when creating the geometry. The idea is to extend the scheme also to parameters describing the internal configuration of the sensor as needed by digitisation, such as strip pitch, size of active area etc.

Definition at line 25 of file CbmStsSensorFactory.h.

Constructor & Destructor Documentation

◆ ~CbmStsSensorFactory()

virtual CbmStsSensorFactory::~CbmStsSensorFactory ( )
inlinevirtual

Destructor (empty)

Definition at line 30 of file CbmStsSensorFactory.h.

Member Function Documentation

◆ DefineSensors()

Int_t CbmStsSensorFactory::DefineSensors ( )

Define the available sensor types. Parameters are hard-coded here.

Definition at line 70 of file CbmStsSensorFactory.cxx.

◆ GetNofSensors()

Int_t CbmStsSensorFactory::GetNofSensors ( ) const
inline

Number of sensors in database

Returns
Number of available sensor types

Definition at line 40 of file CbmStsSensorFactory.h.

◆ GetSensor()

TGeoVolume * CbmStsSensorFactory::GetSensor ( Int_t  index)
inline

Get a sensor type from the database

Parameters
indexRunning index of sensor type in the database
Returns
Pointer to sensor volume

Definition at line 47 of file CbmStsSensorFactory.h.

◆ Instance()

CbmStsSensorFactory * CbmStsSensorFactory::Instance ( )
static

Static instance

Returns
Pointer to static instance of this class

Definition at line 155 of file CbmStsSensorFactory.cxx.


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