CbmRoot
Loading...
Searching...
No Matches
CbmMuchSector.h
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: Evgeny Kryshen, Volker Friese [committer], Florian Uhlig */
4
14
#ifndef CBMMUCHSECTOR_H
15
#define CBMMUCHSECTOR_H 1
16
17
#include "
CbmMuchAddress.h
"
// for CbmMuchAddress
18
19
#include <Rtypes.h>
// for THashConsistencyHolder, ClassDef
20
#include <RtypesCore.h>
// for UInt_t, Int_t
21
22
#include <vector>
// for vector
23
24
class
CbmMuchPad
;
25
26
class
CbmMuchSector
{
27
public
:
28
CbmMuchSector
();
29
CbmMuchSector
(UInt_t modAddress, UInt_t index, Int_t nChannels);
30
virtual
~CbmMuchSector
() {}
31
UInt_t
GetAddress
()
const
{
return
fAddress
; }
32
UInt_t
GetSectorIndex
()
const
{
return
CbmMuchAddress::GetSectorIndex
(
fAddress
); }
33
Int_t
GetNChannels
()
const
{
return
fNChannels
; }
34
CbmMuchPad
*
GetPadByChannelIndex
(Int_t iChannel)
const
;
35
// virtual void GetPadVertices(Int_t iChannel, Double_t* xPad, Double_t* yPad) {}
36
virtual
void
AddPads
() {}
37
virtual
void
DrawPads
() {}
38
39
protected
:
40
UInt_t
fAddress
;
// Sector address
41
Int_t
fNChannels
;
// Number of channels
42
std::vector<CbmMuchPad*>
fPads
;
43
44
ClassDef
(
CbmMuchSector
, 2);
45
};
46
47
#endif
CbmMuchAddress.h
CbmMuchAddress::GetSectorIndex
static int32_t GetSectorIndex(int32_t address)
Definition
CbmMuchAddress.h:109
CbmMuchPad
Definition
CbmMuchPad.h:25
CbmMuchSector
Definition
CbmMuchSector.h:26
CbmMuchSector::GetAddress
UInt_t GetAddress() const
Definition
CbmMuchSector.h:31
CbmMuchSector::GetNChannels
Int_t GetNChannels() const
Definition
CbmMuchSector.h:33
CbmMuchSector::GetPadByChannelIndex
CbmMuchPad * GetPadByChannelIndex(Int_t iChannel) const
Definition
CbmMuchSector.cxx:27
CbmMuchSector::CbmMuchSector
CbmMuchSector()
Definition
CbmMuchSector.cxx:14
CbmMuchSector::fAddress
UInt_t fAddress
Definition
CbmMuchSector.h:40
CbmMuchSector::fPads
std::vector< CbmMuchPad * > fPads
Definition
CbmMuchSector.h:42
CbmMuchSector::AddPads
virtual void AddPads()
Definition
CbmMuchSector.h:36
CbmMuchSector::fNChannels
Int_t fNChannels
Definition
CbmMuchSector.h:41
CbmMuchSector::DrawPads
virtual void DrawPads()
Definition
CbmMuchSector.h:37
CbmMuchSector::ClassDef
ClassDef(CbmMuchSector, 2)
Vector of pads.
CbmMuchSector::~CbmMuchSector
virtual ~CbmMuchSector()
Definition
CbmMuchSector.h:30
CbmMuchSector::GetSectorIndex
UInt_t GetSectorIndex() const
Definition
CbmMuchSector.h:32
core
detectors
much
CbmMuchSector.h
Generated on Sun Dec 22 2024 23:04:09 for CbmRoot by
1.12.0