PandaRoot
PndDrcHit.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndDrcHit header file -----
3 // ----- Created 11/10/06 by Annalisa Cecchi -----
4 // ----- -----
5 // -------------------------------------------------------------------------
6 
7 #ifndef PNDDRCHIT_H
8 #define PNDDRCHIT_H
9 
10 #include "FairHit.h"
11 
12 class PndDrcHit : public FairHit {
13 
14  public:
16  PndDrcHit();
17 
18  PndDrcHit(Int_t detID, Int_t sensorId, TVector3 &pos, TVector3 &dpos, Double_t thetaC, Double_t errThetaC, Int_t index);
19 
21  // PndDrcHit(const PndDrcHit& hit) { *this = hit; }; // not needed
22 
24  virtual ~PndDrcHit();
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(PndDrcHit, 1)
44 };
45 
46 #endif // PNDDRCHIT_H
TVector3 GetPosition() const
Definition: PndDrcHit.h:37
virtual ~PndDrcHit()
Double_t fThetaC
Definition: PndDrcHit.h:41
Double_t fErrThetaC
Definition: PndDrcHit.h:41
virtual void Print(const Option_t *opt="") const
virtual Double_t GetErrThetaC()
Definition: PndDrcHit.h:33
Int_t fSensorId
Definition: PndDrcHit.h:40
Int_t GetSensorId()
Definition: PndDrcHit.h:35
virtual Int_t GetRefIndex()
Definition: PndDrcHit.h:34
virtual Double_t GetThetaC()
Definition: PndDrcHit.h:32