BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
16class CbmStsModule;
17class CbmStsPoint;
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
27class CbmStsSenzor : public TNamed
28{
29
30 public:
31 /** Constructor **/
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 **/
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
74
76};
77
78#endif
@ kStsSensor
Sensor.
int Int_t
unsigned int UInt_t
#define ClassDef(name, id)
static Int_t GetElementId(UInt_t address, Int_t level)
Get the index of an element.
Class representing an instance of a readout unit in the CBM-STS.
Abstract base class for description of the functional behaviour of sensors in the STS.
void SetModule(CbmStsModule *module)
Set a pointer to the mother module.
CbmStsSenzor & operator=(const CbmStsSenzor &)
void ProcessPoint(CbmStsPoint *point) const
Produce charge in the sensor and send it to the module.
CbmStsModule * fModule
Pointer to mother module.
CbmStsSenzor()
Constructor.
CbmStsSenzor(const CbmStsSenzor &)
CbmStsSensorType * GetType() const
Pointer to sensor type.
UInt_t GetAddress() const
Get sensor address.
UInt_t fAddress
Unique identifier.
Int_t GetSensorId() const
Get the sensor Id within the module.
TGeoPhysicalNode * fNode
Pointer to node in the geometry.
void SetAddress(UInt_t address)
Set the sensor address.
virtual ~CbmStsSenzor()
Destructor.
CbmStsModule * GetModule() const
Get mother module.
CbmStsSensorType * fType
Pointer to sensor type.