CbmRoot
Loading...
Searching...
No Matches
CbmTofCell.h
Go to the documentation of this file.
1/* Copyright (C) 2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
5#ifndef CBMTOFCELL_H
6#define CBMTOFCELL_H 1
7
8#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
9#include <RtypesCore.h> // for Double_t, Int_t, Option_t
10#include <TNamed.h> // for TNamed
11
12class CbmTofCell : public TNamed {
13
14 public:
16 CbmTofCell();
17
18
28 CbmTofCell(Int_t detId, Double_t x, Double_t y, Double_t z, Double_t sizex, Double_t sizey);
29
31 virtual ~CbmTofCell();
32
34 Int_t GetDetectorId() const { return fDetectorId; }
35 Double_t GetX() const { return fX; }
36 Double_t GetY() const { return fY; }
37 Double_t GetZ() const { return fZ; }
38
39 Double_t GetSizex() const { return fSizex; }
40 Double_t GetSizey() const { return fSizey; }
41
42 void Print(Option_t* = "") const;
43
44 private:
47 Int_t fDetectorId; // Unique detector ID
48 Double_t fX; // center of module in global c.s. [cm]
49 Double_t fY; // center of module in global c.s. [cm]
50 Double_t fZ; // center of module in global c.s. [cm]
51 Double_t fSizex; // module size in x [cm]
52 Double_t fSizey; // module size in y [cm]
53
58};
59
60
61#endif
Double_t fY
Definition CbmTofCell.h:49
Double_t fZ
Definition CbmTofCell.h:50
Double_t fSizex
Definition CbmTofCell.h:51
Int_t GetDetectorId() const
Definition CbmTofCell.h:34
Double_t GetSizey() const
Definition CbmTofCell.h:40
Double_t GetY() const
Definition CbmTofCell.h:36
Double_t GetSizex() const
Definition CbmTofCell.h:39
Double_t GetX() const
Definition CbmTofCell.h:35
ClassDef(CbmTofCell, 1)
void Print(Option_t *="") const
Double_t fSizey
Definition CbmTofCell.h:52
Double_t GetZ() const
Definition CbmTofCell.h:37
Int_t fDetectorId
Definition CbmTofCell.h:47
Double_t fX
Definition CbmTofCell.h:48
virtual ~CbmTofCell()