CbmRoot
CbmMuchLayerSide.cxx
Go to the documentation of this file.
1
9
#include "
CbmMuchLayerSide.h
"
10
11
#include "
CbmMuchAddress.h
"
// for CbmMuchAddress
12
#include "
CbmMuchModule.h
"
// for CbmMuchModule
13
14
#include <TObjArray.h>
// for TObjArray
15
16
// ----- Default constructor -------------------------------------------
17
CbmMuchLayerSide::CbmMuchLayerSide
()
18
: TObject(), fDetectorId(0), fZ(0.), fModules() {}
19
// -------------------------------------------------------------------------
20
21
// ----- Standard constructor ------------------------------------------
22
CbmMuchLayerSide::CbmMuchLayerSide
(Int_t detId, Double_t z)
23
: TObject(), fDetectorId(detId), fZ(z), fModules() {}
24
// -------------------------------------------------------------------------
25
26
// ----- Standard constructor ------------------------------------------
27
CbmMuchLayerSide::CbmMuchLayerSide
(Int_t iStation,
28
Int_t iLayer,
29
Bool_t iSide,
30
Double_t z)
31
: TObject()
32
, fDetectorId(
CbmMuchAddress
::
GetAddress
(iStation, iLayer, iSide))
33
, fZ(z)
34
, fModules() {}
35
// -------------------------------------------------------------------------
36
37
// ----- Destructor ----------------------------------------------------
38
CbmMuchLayerSide::~CbmMuchLayerSide
() {}
39
// -------------------------------------------------------------------------
40
41
// ----- Public method AddModule ---------------------------------------
42
void
CbmMuchLayerSide::AddModule
(
CbmMuchModule
* module) {
43
fModules
.Add(module);
44
}
45
// -------------------------------------------------------------------------
46
47
void
CbmMuchLayerSide::DrawModules
(Color_t color,
48
Bool_t modulesVisible,
49
Bool_t) {
50
for
(Int_t
m
= 0;
m
<
GetNModules
();
m
++) {
51
CbmMuchModule
* module =
GetModule
(
m
);
52
if
(modulesVisible) {
53
module->SetFillColor(color);
54
module->SetFillStyle(3001);
55
module->Draw(
"f"
);
56
}
57
module->
DrawModule
(color);
58
}
59
}
60
ClassImp
(
CbmMuchLayerSide
)
CbmMuchLayerSide::AddModule
void AddModule(CbmMuchModule *module)
Definition:
CbmMuchLayerSide.cxx:42
CbmMuchAddress
Interface class to unique address for the MUCH.
Definition:
CbmMuchAddress.h:49
CbmMuchLayerSide.h
CbmMuchModule.h
CbmStsAddress::GetAddress
Int_t GetAddress(UInt_t unit=0, UInt_t ladder=0, UInt_t halfladder=0, UInt_t module=0, UInt_t sensor=0, UInt_t side=0, UInt_t version=kCurrentVersion)
Construct address.
Definition:
CbmStsAddress.cxx:90
CbmMuchLayerSide::fModules
TObjArray fModules
Definition:
CbmMuchLayerSide.h:68
CbmMuchModule::DrawModule
virtual void DrawModule(Color_t)
Definition:
CbmMuchModule.h:58
CbmMuchLayerSide::GetModule
CbmMuchModule * GetModule(Int_t iModule) const
Definition:
CbmMuchLayerSide.h:52
CbmMuchLayerSide::CbmMuchLayerSide
CbmMuchLayerSide()
Definition:
CbmMuchLayerSide.cxx:17
CbmMuchLayerSide
Definition:
CbmMuchLayerSide.h:22
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition:
CbmConverterManager.cxx:12
CbmMuchModule
Definition:
CbmMuchModule.h:24
CbmMuchAddress.h
CbmMuchLayerSide::DrawModules
void DrawModules(Color_t color=kYellow, Bool_t modulesVisible=true, Bool_t sectorsVisible=true)
Definition:
CbmMuchLayerSide.cxx:47
m
__m128 m
Definition:
L1/vectors/P4_F32vec4.h:26
CbmMuchLayerSide::~CbmMuchLayerSide
virtual ~CbmMuchLayerSide()
Definition:
CbmMuchLayerSide.cxx:38
CbmMuchLayerSide::GetNModules
Int_t GetNModules() const
Definition:
CbmMuchLayerSide.h:47
core
detectors
much
CbmMuchLayerSide.cxx
Generated on Wed Oct 28 2020 15:11:42 for CbmRoot by
1.8.18