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