BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
CbmStsSenzor.h
Go to the documentation of this file.
1
/** @file CbmStsSensor.h
2
** @author Volker Friese <v.friese@gsi.de>
3
** @date 03.05.2013
4
**
5
** This class is to replace the CbmStsSensor, at which point it will be
6
** renamed to spell correctly.
7
**/
8
9
#ifndef CBMSTSSENZOR_H
10
#define CBMSTSSENZOR_H 1
11
12
#include "
CbmStsAddress.h
"
13
#include "
TGeoPhysicalNode.h
"
14
#include "
TNamed.h
"
15
16
class
CbmStsModule
;
17
class
CbmStsPoint
;
18
class
CbmStsSensorType
;
19
20
/** @class CbmStsSenzor
21
** @brief Class representing an instance of a sensor in the CBM-STS.
22
** @author V.Friese <v.friese@gsi.de>
23
** @version 2.0
24
**
25
**/
26
27
class
CbmStsSenzor
:
public
TNamed
28
{
29
30
public
:
31
/** Constructor **/
32
CbmStsSenzor
();
33
34
/** Destructor **/
35
virtual
~CbmStsSenzor
() {};
36
37
/** Get sensor address **/
38
UInt_t
GetAddress
()
const
{
return
fAddress
; }
39
40
/** Get mother module **/
41
CbmStsModule
*
GetModule
()
const
{
return
fModule
; }
42
43
/** Get the sensor Id within the module **/
44
Int_t
GetSensorId
()
const
{
return
CbmStsAddress::GetElementId
(
fAddress
,
kStsSensor
); }
45
46
/** Pointer to sensor type **/
47
CbmStsSensorType
*
GetType
()
const
{
return
fType
; }
48
49
/** Produce charge in the sensor and send it to the module.
50
**
51
** Perform the appropriate action for a particle trajectory in the
52
** sensor characterised by the CbmStsPoint object
53
**/
54
void
ProcessPoint
(
CbmStsPoint
* point)
const
;
55
56
/** Set the sensor address
57
** @param address Sensor address
58
**/
59
void
SetAddress
(
UInt_t
address) {
fAddress
= address; }
60
61
/** Set a pointer to the mother module
62
** @param module Pointer to mother module
63
**/
64
void
SetModule
(
CbmStsModule
* module) {
fModule
=
module
; }
65
66
private
:
67
UInt_t
fAddress
;
///< Unique identifier
68
TGeoPhysicalNode
*
fNode
;
///< Pointer to node in the geometry
69
CbmStsSensorType
*
fType
;
///< Pointer to sensor type
70
CbmStsModule
*
fModule
;
///< Pointer to mother module
71
72
CbmStsSenzor
(
const
CbmStsSenzor
&);
73
CbmStsSenzor
&
operator=
(
const
CbmStsSenzor
&);
74
75
ClassDef
(
CbmStsSenzor
, 1);
76
};
77
78
#endif
CbmStsAddress.h
kStsSensor
@ kStsSensor
Sensor.
Definition
CbmStsAddress.h:26
Int_t
int Int_t
UInt_t
unsigned int UInt_t
ClassDef
#define ClassDef(name, id)
TGeoPhysicalNode.h
TNamed.h
CbmStsAddress::GetElementId
static Int_t GetElementId(UInt_t address, Int_t level)
Get the index of an element.
Definition
CbmStsAddress.h:99
CbmStsModule
Class representing an instance of a readout unit in the CBM-STS.
Definition
CbmStsModule.h:37
CbmStsPoint
Definition
CbmStsPoint.h:23
CbmStsSensorType
Abstract base class for description of the functional behaviour of sensors in the STS.
Definition
CbmStsSensorType.h:27
CbmStsSenzor::SetModule
void SetModule(CbmStsModule *module)
Set a pointer to the mother module.
Definition
CbmStsSenzor.h:64
CbmStsSenzor::operator=
CbmStsSenzor & operator=(const CbmStsSenzor &)
CbmStsSenzor::ProcessPoint
void ProcessPoint(CbmStsPoint *point) const
Produce charge in the sensor and send it to the module.
Definition
CbmStsSenzor.cxx:26
CbmStsSenzor::fModule
CbmStsModule * fModule
Pointer to mother module.
Definition
CbmStsSenzor.h:70
CbmStsSenzor::CbmStsSenzor
CbmStsSenzor()
Constructor.
Definition
CbmStsSenzor.cxx:16
CbmStsSenzor::CbmStsSenzor
CbmStsSenzor(const CbmStsSenzor &)
CbmStsSenzor::GetType
CbmStsSensorType * GetType() const
Pointer to sensor type.
Definition
CbmStsSenzor.h:47
CbmStsSenzor::GetAddress
UInt_t GetAddress() const
Get sensor address.
Definition
CbmStsSenzor.h:38
CbmStsSenzor::fAddress
UInt_t fAddress
Unique identifier.
Definition
CbmStsSenzor.h:67
CbmStsSenzor::GetSensorId
Int_t GetSensorId() const
Get the sensor Id within the module.
Definition
CbmStsSenzor.h:44
CbmStsSenzor::fNode
TGeoPhysicalNode * fNode
Pointer to node in the geometry.
Definition
CbmStsSenzor.h:68
CbmStsSenzor::SetAddress
void SetAddress(UInt_t address)
Set the sensor address.
Definition
CbmStsSenzor.h:59
CbmStsSenzor::~CbmStsSenzor
virtual ~CbmStsSenzor()
Destructor.
Definition
CbmStsSenzor.h:35
CbmStsSenzor::GetModule
CbmStsModule * GetModule() const
Get mother module.
Definition
CbmStsSenzor.h:41
CbmStsSenzor::fType
CbmStsSensorType * fType
Pointer to sensor type.
Definition
CbmStsSenzor.h:69
TGeoPhysicalNode
TNamed::TNamed
TNamed()
detectors
sts
setup
CbmStsSenzor.h
Generated on
for BmnRoot by
1.17.0