R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BHit.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2019-2025 Members of R3B Collaboration *
4 * *
5 * This software is distributed under the terms of the *
6 * GNU General Public Licence (GPL) version 3, *
7 * copied verbatim in the file "LICENSE". *
8 * *
9 * In applying this license GSI does not waive the privileges and immunities *
10 * granted to it by virtue of its status as an Intergovernmental Organization *
11 * or submit itself to any jurisdiction. *
12 ******************************************************************************/
13
14// -----------------------------------------------------------------------------
15// ----- R3BHit -----
16// ----- Created on 01.03.2018 by D.Kresan -----
17// -----------------------------------------------------------------------------
18
19#ifndef R3BHIT_H
20#define R3BHIT_H
21
22#include "TObject.h"
23
24class R3BHit : public TObject
25{
26 public:
27 R3BHit();
28 R3BHit(Int_t detId, Double_t x, Double_t y, Double_t eloss, Double_t time, Int_t hitId = -1);
29 virtual ~R3BHit();
30
31 inline const Int_t& GetDetId() const { return fDetId; }
32 inline const Double_t& GetX() const { return fX; }
33 inline const Double_t& GetY() const { return fY; }
34 inline const Double_t& GetEloss() const { return fEloss; }
35 inline const Double_t& GetTime() const { return fTime; }
36 inline const Int_t& GetHitId() const { return fHitId; }
37
38 inline void SetEloss(const Double_t& eloss) { fEloss = eloss; }
39 inline void SetTime(const Double_t& time) { fTime = time; }
40 inline void SetHitId(const Int_t& hitId) { fHitId = hitId; }
41
42 protected:
43 Int_t fDetId;
44 Double_t fX;
45 Double_t fY;
46 Double_t fEloss;
47 Double_t fTime;
48 Int_t fHitId;
49
50 public:
51 ClassDef(R3BHit, 1)
52};
53
54#endif
const Double_t & GetTime() const
Definition R3BHit.h:35
void SetTime(const Double_t &time)
Definition R3BHit.h:39
Double_t fTime
Definition R3BHit.h:47
Double_t fY
Definition R3BHit.h:45
Double_t fX
Definition R3BHit.h:44
Int_t fDetId
Definition R3BHit.h:43
const Double_t & GetEloss() const
Definition R3BHit.h:34
const Double_t & GetX() const
Definition R3BHit.h:32
const Double_t & GetY() const
Definition R3BHit.h:33
void SetHitId(const Int_t &hitId)
Definition R3BHit.h:40
const Int_t & GetHitId() const
Definition R3BHit.h:36
Double_t fEloss
Definition R3BHit.h:46
R3BHit()
Definition R3BHit.cxx:21
Int_t fHitId
Definition R3BHit.h:48
virtual ~R3BHit()
Definition R3BHit.cxx:41
const Int_t & GetDetId() const
Definition R3BHit.h:31
void SetEloss(const Double_t &eloss)
Definition R3BHit.h:38