PandaRoot
PndRichHit.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndRichHit header file -----
3 // ----- Created 11/10/06 by Annalisa Cecchi -----
4 // ----- -----
5 // -------------------------------------------------------------------------
6 
7 #ifndef PNDRICHHIT_H
8 #define PNDRICHHIT_H
9 
10 #include "FairHit.h"
11 
12 class PndRichHit : public FairHit {
13 
14  public:
16  PndRichHit();
17 
18  PndRichHit(Int_t detID, Int_t sensorId, TVector3 &pos, TVector3 &dpos, Double_t thetaC, Double_t errThetaC, Int_t index);
19 
21  // PndRichHit(const PndRichHit& hit) { *this = hit; }; // not needed
22 
24  virtual ~PndRichHit();
25 
27  virtual void Print(const Option_t *opt = "") const;
28 
32  virtual Double_t GetThetaC() { return fThetaC; }
33  virtual Double_t GetErrThetaC() { return fErrThetaC; }
34  virtual Int_t GetRefIndex() { return fRefIndex; }
35  Int_t GetSensorId() { return fSensorId; }
36 
37  TVector3 GetPosition() const { return TVector3(fX, fY, fZ); }
38 
39  protected:
40  Int_t fSensorId;
41  Double_t fThetaC, fErrThetaC;
42 
43  ClassDef(PndRichHit, 1)
44 };
45 
46 #endif // PNDRICHHIT_H
virtual Int_t GetRefIndex()
Definition: PndRichHit.h:34
Double_t fErrThetaC
Definition: PndRichHit.h:41
virtual Double_t GetErrThetaC()
Definition: PndRichHit.h:33
virtual Double_t GetThetaC()
Definition: PndRichHit.h:32
virtual ~PndRichHit()
Int_t GetSensorId()
Definition: PndRichHit.h:35
Int_t fSensorId
Definition: PndRichHit.h:40
Double_t fThetaC
Definition: PndRichHit.h:41
virtual void Print(const Option_t *opt="") const
TVector3 GetPosition() const
Definition: PndRichHit.h:37