BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
CbmStsStation.h
Go to the documentation of this file.
1
// -------------------------------------------------------------------------
2
// ----- CbmStsStation header file -----
3
// ----- Created 31/03/05 by V. Friese -----
4
// -------------------------------------------------------------------------
5
6
/** CbmStsStation.h
7
*@author V.Friese <v.friese@gsi.de>
8
**
9
** This class holds the transport geometry parameters
10
** of one STS tracking station necessary for digitisation.
11
**/
12
13
#ifndef CBMSTSSTATION_H
14
#define CBMSTSSTATION_H 1
15
16
#include "
TNamed.h
"
17
#include "
TObjArray.h
"
18
#include "
TString.h
"
19
20
#include <map>
21
22
class
CbmStsSector
;
23
class
CbmStsSectorDigiPar
;
24
25
class
CbmStsStation
:
public
TNamed
26
{
27
public
:
28
/** Default constructor **/
29
CbmStsStation
();
30
31
/** Standard constructor
32
*@param name Volume name of station
33
*@param detId Detector ID
34
*@param z z position of station centre [cm]
35
*@param d thickness of station [cm]
36
*@param rl radiation length of material [cm]
37
*@param rmin Inner radius [cm]
38
*@param rmax Outer radius [cm]
39
*@param rotation Rotation angle in global c.s. [rad]
40
**/
41
CbmStsStation
(
const
char
* name,
42
Int_t
detId,
43
Double_t
z,
44
Double_t
d,
45
Double_t
rl,
46
Double_t
rmin,
47
Double_t
rmax,
48
Double_t
rotation);
49
50
/** Destructor **/
51
virtual
~CbmStsStation
();
52
53
/** Accessors **/
54
Int_t
GetDetectorId
()
const
{
return
fDetectorId
; }
55
Int_t
GetSystemId
()
const
{
return
((
fDetectorId
& (15 << 24)) >> 24); }
56
Int_t
GetStationNr
()
const
{
return
((
fDetectorId
& (255 << 16)) >> 16); }
57
Double_t
GetZ
(
Int_t
it = 0);
58
Double_t
GetD
()
const
{
return
fD
; }
59
Double_t
GetRadLength
()
const
{
return
fRadLength
; }
60
Double_t
GetRmin
()
const
{
return
fRmin
; }
61
Double_t
GetRmax
()
const
{
return
fRmax
; }
62
Int_t
GetNSectors
()
const
{
return
fSectors
->GetEntriesFast(); }
63
Int_t
GetNChannels
();
64
TObjArray
*
GetSectors
() {
return
fSectors
; }
65
CbmStsSector
*
GetSector
(
Int_t
iSector) {
return
(
CbmStsSector
*)
fSectors
->At(iSector); }
66
CbmStsSector
*
GetSectorByNr
(
Int_t
sectorNr);
67
68
/** Add one sector to the array **/
69
void
AddSector
(
CbmStsSectorDigiPar
* sectorPar);
70
void
AddSector
(
CbmStsSector
* sector);
71
72
Int_t
GetNofZ
();
73
void
SetZ
(
Double_t
z) {
fZ
=
fSensorZ
[0] = z; }
// AZ-210625
74
75
/** Reset all eventwise counters **/
76
void
Reset
();
77
78
/** Output to screen **/
79
virtual
void
Print
(
Bool_t
kLong);
80
81
protected
:
82
TString
fName
;
// Station name
83
Int_t
fDetectorId
;
// Unique detector ID
84
Double32_t
fZ
;
// z position of station centre [cm]
85
Double32_t
fD
;
// Thickness of station
86
Double32_t
fRadLength
;
// Radiation length of material [cm]
87
Double32_t
fRmin
;
// Inner radius [cm]
88
Double32_t
fRmax
;
// Outer radius [cm]
89
Double32_t
fRotation
;
// Rotation angle in global c.s [rad]
90
TObjArray
*
fSectors
;
// Array of CbmStsSectors
91
std::map<Int_t, Int_t>
fSectorMap
;
//! Map from sector number to index
92
std::map<Int_t, Int_t>
fMcIdMap
;
//! Map from McId to index
93
94
Double_t
fSensorZ
[30];
95
96
private
:
97
CbmStsStation
(
const
CbmStsStation
&);
98
CbmStsStation
operator=
(
const
CbmStsStation
&);
99
100
ClassDef
(
CbmStsStation
, 1);
101
};
102
103
#endif
Bool_t
bool Bool_t
Int_t
int Int_t
Double32_t
double Double32_t
Double_t
double Double_t
ClassDef
#define ClassDef(name, id)
TNamed.h
TObjArray.h
TString.h
CbmStsSectorDigiPar
CbmStsSectorDigiPar.h.
Definition
CbmStsSectorDigiPar.h:29
CbmStsSector
Definition
CbmStsSector.h:44
CbmStsStation::fRadLength
Double32_t fRadLength
Definition
CbmStsStation.h:86
CbmStsStation::CbmStsStation
CbmStsStation()
Default constructor.
Definition
CbmStsStation.cxx:21
CbmStsStation::GetSystemId
Int_t GetSystemId() const
Definition
CbmStsStation.h:55
CbmStsStation::GetDetectorId
Int_t GetDetectorId() const
Accessors.
Definition
CbmStsStation.h:54
CbmStsStation::GetNChannels
Int_t GetNChannels()
Definition
CbmStsStation.cxx:86
CbmStsStation::Print
virtual void Print(Bool_t kLong)
Output to screen.
Definition
CbmStsStation.cxx:223
CbmStsStation::operator=
CbmStsStation operator=(const CbmStsStation &)
CbmStsStation::GetRadLength
Double_t GetRadLength() const
Definition
CbmStsStation.h:59
CbmStsStation::fRmin
Double32_t fRmin
Definition
CbmStsStation.h:87
CbmStsStation::GetNSectors
Int_t GetNSectors() const
Definition
CbmStsStation.h:62
CbmStsStation::GetSectors
TObjArray * GetSectors()
Definition
CbmStsStation.h:64
CbmStsStation::fSectorMap
std::map< Int_t, Int_t > fSectorMap
Definition
CbmStsStation.h:91
CbmStsStation::fMcIdMap
std::map< Int_t, Int_t > fMcIdMap
Map from sector number to index.
Definition
CbmStsStation.h:92
CbmStsStation::fName
TString fName
Definition
CbmStsStation.h:82
CbmStsStation::CbmStsStation
CbmStsStation(const CbmStsStation &)
CbmStsStation::fRotation
Double32_t fRotation
Definition
CbmStsStation.h:89
CbmStsStation::fD
Double32_t fD
Definition
CbmStsStation.h:85
CbmStsStation::fZ
Double32_t fZ
Definition
CbmStsStation.h:84
CbmStsStation::fDetectorId
Int_t fDetectorId
Definition
CbmStsStation.h:83
CbmStsStation::AddSector
void AddSector(CbmStsSectorDigiPar *sectorPar)
Add one sector to the array.
Definition
CbmStsStation.cxx:111
CbmStsStation::fSectors
TObjArray * fSectors
Definition
CbmStsStation.h:90
CbmStsStation::GetD
Double_t GetD() const
Definition
CbmStsStation.h:58
CbmStsStation::Reset
void Reset()
Reset all eventwise counters.
Definition
CbmStsStation.cxx:215
CbmStsStation::GetRmin
Double_t GetRmin() const
Definition
CbmStsStation.h:60
CbmStsStation::GetZ
Double_t GetZ(Int_t it=0)
Definition
CbmStsStation.cxx:151
CbmStsStation::GetRmax
Double_t GetRmax() const
Definition
CbmStsStation.h:61
CbmStsStation::fRmax
Double32_t fRmax
Definition
CbmStsStation.h:88
CbmStsStation::GetSectorByNr
CbmStsSector * GetSectorByNr(Int_t sectorNr)
Definition
CbmStsStation.cxx:97
CbmStsStation::GetStationNr
Int_t GetStationNr() const
Definition
CbmStsStation.h:56
CbmStsStation::GetSector
CbmStsSector * GetSector(Int_t iSector)
Definition
CbmStsStation.h:65
CbmStsStation::~CbmStsStation
virtual ~CbmStsStation()
Destructor.
Definition
CbmStsStation.cxx:76
CbmStsStation::SetZ
void SetZ(Double_t z)
Definition
CbmStsStation.h:73
CbmStsStation::fSensorZ
Double_t fSensorZ[30]
Map from McId to index.
Definition
CbmStsStation.h:94
CbmStsStation::GetNofZ
Int_t GetNofZ()
Definition
CbmStsStation.cxx:184
TNamed::TNamed
TNamed()
TObjArray
TString
detectors
sts
CbmStsStation.h
Generated on
for BmnRoot by
1.17.0