PandaRoot
PndHypGeHit.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmHypGeHit header file -----
3 
4 // -------------------------------------------------------------------------
5 
12 #ifndef PNDHYPGEHIT_H
13 #define PNDHYPGEHIT_H
14 
15 #include "TObject.h"
16 #include "FairHit.h"
17 class PndHypGeHit : public FairHit {
18  public:
20  PndHypGeHit();
21 
22  PndHypGeHit(Int_t trackId, Int_t detID, Double_t ener, Double_t den);
23 
25  virtual ~PndHypGeHit();
26 
28  virtual void Print(const Option_t *opt = "") const;
29 
31  virtual void SetEnergy(Double32_t ener) { fenergy = ener; };
32  virtual void SetTrackId(Int_t detID) { fTrackId = detID; };
33  virtual void SetDetectorId(Int_t detID) { fDetectorId = detID; };
34 
36  virtual Double_t GetEnergy() const { return fenergy; };
37  virtual Int_t GetTrackId() const { return fTrackId; };
38  virtual Int_t GetDetectorId() const { return fDetectorId; };
39 
40  Short_t GetCopy() const { return ((fDetectorId)); };
41 
42  protected:
43  Double_t fenergy, fden; // hit amplitude
44  Int_t fTrackId;
45  Int_t fDetectorId;
46 
47  ClassDef(PndHypGeHit, 1)
48 };
49 
50 #endif // PNDHYPGEHIT_H
virtual Int_t GetTrackId() const
Definition: PndHypGeHit.h:37
virtual Int_t GetDetectorId() const
Definition: PndHypGeHit.h:38
virtual void SetEnergy(Double32_t ener)
Definition: PndHypGeHit.h:31
virtual Double_t GetEnergy() const
Definition: PndHypGeHit.h:36
Double_t fden
Definition: PndHypGeHit.h:40
virtual void Print(const Option_t *opt="") const
Int_t fDetectorId
Definition: PndHypGeHit.h:45
virtual void SetTrackId(Int_t detID)
Definition: PndHypGeHit.h:32
Short_t GetCopy() const
Definition: PndHypGeHit.h:40
Double_t fenergy
Definition: PndHypGeHit.h:40
virtual ~PndHypGeHit()
virtual void SetDetectorId(Int_t detID)
Definition: PndHypGeHit.h:33
Int_t fTrackId
Definition: PndHypGeHit.h:44