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
24class CbmMuchPad;
25
27public:
29 CbmMuchSector(UInt_t modAddress, UInt_t index, Int_t nChannels);
30 virtual ~CbmMuchSector() {}
31 UInt_t GetAddress() const { return 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
39protected:
40 UInt_t fAddress; // Sector address
41 Int_t fNChannels; // Number of channels
42 std::vector<CbmMuchPad*> fPads;
43
45};
46
47#endif
static int32_t GetSectorIndex(int32_t address)
UInt_t GetAddress() const
Int_t GetNChannels() const
CbmMuchPad * GetPadByChannelIndex(Int_t iChannel) const
std::vector< CbmMuchPad * > fPads
virtual void AddPads()
virtual void DrawPads()
ClassDef(CbmMuchSector, 2)
Vector of pads.
virtual ~CbmMuchSector()
UInt_t GetSectorIndex() const