PandaRoot
PndHypGeHit.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // -------------------------------------------------------------------------
14 // ----- CbmHypGeHit header file -----
15 
16 // -------------------------------------------------------------------------
17 
24 #ifndef PNDHYPGEHIT_H
25 #define PNDHYPGEHIT_H
26 
27 #include "TObject.h"
28 #include "FairHit.h"
29 class PndHypGeHit : public FairHit {
30  public:
32  PndHypGeHit();
33 
34  PndHypGeHit(Int_t trackId, Int_t detID, Double_t ener, Double_t den);
35 
37  virtual ~PndHypGeHit();
38 
40  virtual void Print(const Option_t *opt = "") const;
41 
43  virtual void SetEnergy(Double32_t ener) { fenergy = ener; };
44  virtual void SetTrackId(Int_t detID) { fTrackId = detID; };
45  virtual void SetDetectorId(Int_t detID) { fDetectorId = detID; };
46 
48  virtual Double_t GetEnergy() const { return fenergy; };
49  virtual Int_t GetTrackId() const { return fTrackId; };
50  virtual Int_t GetDetectorId() const { return fDetectorId; };
51 
52  Short_t GetCopy() const { return ((fDetectorId)); };
53 
54  protected:
55  Double_t fenergy, fden; // hit amplitude
56  Int_t fTrackId;
57  Int_t fDetectorId;
58 
59  ClassDef(PndHypGeHit, 1)
60 };
61 
62 #endif // PNDHYPGEHIT_H
virtual Int_t GetTrackId() const
Definition: PndHypGeHit.h:49
virtual Int_t GetDetectorId() const
Definition: PndHypGeHit.h:50
virtual void SetEnergy(Double32_t ener)
Definition: PndHypGeHit.h:43
virtual Double_t GetEnergy() const
Definition: PndHypGeHit.h:48
Double_t fden
Definition: PndHypGeHit.h:52
virtual void Print(const Option_t *opt="") const
Int_t fDetectorId
Definition: PndHypGeHit.h:57
virtual void SetTrackId(Int_t detID)
Definition: PndHypGeHit.h:44
Short_t GetCopy() const
Definition: PndHypGeHit.h:52
Double_t fenergy
Definition: PndHypGeHit.h:52
virtual ~PndHypGeHit()
virtual void SetDetectorId(Int_t detID)
Definition: PndHypGeHit.h:45
Int_t fTrackId
Definition: PndHypGeHit.h:56