FairRoot/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 
8 #ifndef PNDDRCHIT_H
9 #define PNDDRCHIT_H
10 
11 #include "FairHit.h"
12 
13 class PndDrcHit : public FairHit {
14 
15 public:
16 
18  PndDrcHit();
19 
20  PndDrcHit(Int_t detID,
21  Int_t sensorId,
22  TVector3& pos,
23  TVector3& dpos,
25  Double_t errThetaC,
26  Int_t index);
27 
28 
30  //PndDrcHit(const PndDrcHit& hit) { *this = hit; }; // not needed
31 
33  virtual ~PndDrcHit();
34 
36  virtual void Print(const Option_t* opt ="") const;
37 
42  virtual Double_t GetThetaC() {return fThetaC;}
43  virtual Double_t GetErrThetaC() {return fErrThetaC;}
44  virtual Int_t GetRefIndex() {return fRefIndex;}
45  Int_t GetSensorId() {return fSensorId;}
46 
47  TVector3 GetPosition() const { return TVector3(fX, fY, fZ); }
48 
49  protected:
50 
51  Int_t fSensorId;
53 
54  ClassDef(PndDrcHit,1)
55 };
56 
57 #endif //PNDDRCHIT_H
TVector3 pos
TVector3 GetPosition() const
Definition: PndDrcHit.h:47
virtual ~PndDrcHit()
Definition: PndDrcHit.cxx:42
Double_t fX
Definition: PndCaloDraw.cxx:34
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t fThetaC
Definition: PndDrcHit.h:52
Double_t fErrThetaC
Definition: PndDrcHit.h:52
Double_t
virtual Double_t GetErrThetaC()
Definition: PndDrcHit.h:43
Int_t fSensorId
Definition: PndDrcHit.h:51
Int_t GetSensorId()
Definition: PndDrcHit.h:45
Double_t fY
Definition: PndCaloDraw.cxx:34
virtual Int_t GetRefIndex()
Definition: PndDrcHit.h:44
virtual void Print(const Option_t *opt="") const
Definition: PndDrcHit.cxx:47
Double_t thetaC
Definition: plot_dirc.C:16
virtual Double_t GetThetaC()
Definition: PndDrcHit.h:42