CbmRoot
Loading...
Searching...
No Matches
CbmMuchStation.cxx
Go to the documentation of this file.
1
/* Copyright (C) 2007-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Mikhail Ryzhinskiy, Florian Uhlig, Volker Friese [committer], Evgeny Kryshen */
4
13
#include "
CbmMuchStation.h
"
14
15
#include "
CbmMuchAddress.h
"
// for CbmMuchAddress
16
#include "
CbmMuchLayer.h
"
// for CbmMuchLayer
17
18
#include <TMathBase.h>
// for Abs
19
#include <TObjArray.h>
// for TObjArray
20
21
// ----- Default constructor -------------------------------------------
22
CbmMuchStation::CbmMuchStation
()
23
: TObject()
24
,
fDetectorId
(0)
25
,
fZ
(0.)
26
,
fLayers
()
27
,
fRmin
(0.)
28
,
fRmax
(0.)
29
,
fModuleDesign
(kFALSE)
30
,
fTubeRmin
(0.)
31
,
fTubeRmax
(0.)
32
,
fTubeZ
(0.)
33
{
34
}
35
// -------------------------------------------------------------------------
36
37
// ----- Standard constructor ------------------------------------------
38
CbmMuchStation::CbmMuchStation
(
Int_t
iStation, Double_t z)
39
: TObject()
40
,
fDetectorId
(
CbmMuchAddress
::GetAddress(iStation))
41
,
fZ
(z)
42
,
fLayers
()
43
,
fRmin
(0.)
44
,
fRmax
(0.)
45
,
fModuleDesign
(kFALSE)
46
,
fTubeRmin
(0.)
47
,
fTubeRmax
(0.)
48
,
fTubeZ
(0.)
49
{
50
}
51
// -------------------------------------------------------------------------
52
53
// ----- Destructor ----------------------------------------------------
54
CbmMuchStation::~CbmMuchStation
() {}
55
// -------------------------------------------------------------------------
56
57
// ----- Public method AddSector ---------------------------------------
58
void
CbmMuchStation::AddLayer
(
CbmMuchLayer
* layer) {
fLayers
.Add(layer); }
59
// -------------------------------------------------------------------------
60
61
62
// -------------------------------------------------------------------------
63
Double_t
CbmMuchStation::GetTubeDz
()
const
64
{
65
Double_t dzmax = 0;
66
67
for
(
Int_t
l = 0; l <
GetNLayers
(); l++) {
68
CbmMuchLayer
* layer =
GetLayer
(l);
69
Double_t ldz = layer->
GetDz
();
70
Double_t z = layer->
GetZ
();
71
Double_t dz = TMath::Abs(z -
fZ
) + ldz;
72
if
(dz > dzmax) dzmax = dz;
73
}
74
75
return
dzmax;
76
}
77
// -------------------------------------------------------------------------
78
79
ClassImp
(
CbmMuchStation
)
ClassImp
ClassImp(CbmConverterManager)
CbmMuchAddress.h
CbmMuchLayer.h
CbmMuchStation.h
Int_t
int Int_t
Definition
RootTypesDef.h:16
CbmMuchAddress
Interface class to unique address for the MUCH.
Definition
CbmMuchAddress.h:55
CbmMuchLayer
Definition
CbmMuchLayer.h:25
CbmMuchLayer::GetZ
Double_t GetZ() const
Definition
CbmMuchLayer.h:60
CbmMuchLayer::GetDz
Double_t GetDz()
Definition
CbmMuchLayer.cxx:81
CbmMuchStation
Definition
CbmMuchStation.h:26
CbmMuchStation::fTubeZ
Double_t fTubeZ
Definition
CbmMuchStation.h:82
CbmMuchStation::fLayers
TObjArray fLayers
Definition
CbmMuchStation.h:76
CbmMuchStation::GetLayer
CbmMuchLayer * GetLayer(Int_t iLayer) const
Definition
CbmMuchStation.h:62
CbmMuchStation::fTubeRmin
Double_t fTubeRmin
Definition
CbmMuchStation.h:80
CbmMuchStation::CbmMuchStation
CbmMuchStation()
Definition
CbmMuchStation.cxx:22
CbmMuchStation::fRmin
Double_t fRmin
Definition
CbmMuchStation.h:77
CbmMuchStation::AddLayer
void AddLayer(CbmMuchLayer *layer)
Definition
CbmMuchStation.cxx:58
CbmMuchStation::fTubeRmax
Double_t fTubeRmax
Definition
CbmMuchStation.h:81
CbmMuchStation::fRmax
Double_t fRmax
Definition
CbmMuchStation.h:78
CbmMuchStation::fDetectorId
Int_t fDetectorId
Definition
CbmMuchStation.h:74
CbmMuchStation::fModuleDesign
Bool_t fModuleDesign
Definition
CbmMuchStation.h:79
CbmMuchStation::fZ
Double32_t fZ
Definition
CbmMuchStation.h:75
CbmMuchStation::~CbmMuchStation
virtual ~CbmMuchStation()
Definition
CbmMuchStation.cxx:54
CbmMuchStation::GetNLayers
Int_t GetNLayers() const
Definition
CbmMuchStation.h:54
CbmMuchStation::GetTubeDz
Double_t GetTubeDz() const
Definition
CbmMuchStation.cxx:63
core
detectors
much
CbmMuchStation.cxx
Generated on Fri Jan 30 2026 23:05:23 for CbmRoot by
1.13.2