PandaRoot
PndRichHit.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // -------------------------------------------------------------------------
14 // ----- PndRichHit header file -----
15 // ----- Created 11/10/06 by Annalisa Cecchi -----
16 // ----- -----
17 // -------------------------------------------------------------------------
18 
19 #ifndef PNDRICHHIT_H
20 #define PNDRICHHIT_H
21 
22 #include "FairHit.h"
23 
24 class PndRichHit : public FairHit {
25 
26  public:
28  PndRichHit();
29 
30  PndRichHit(Int_t detID, Int_t sensorId, TVector3 &pos, TVector3 &dpos, Double_t thetaC, Double_t errThetaC, Int_t index);
31 
33  // PndRichHit(const PndRichHit& hit) { *this = hit; }; // not needed
34 
36  virtual ~PndRichHit();
37 
39  virtual void Print(const Option_t *opt = "") const;
40 
44  virtual Double_t GetThetaC() { return fThetaC; }
45  virtual Double_t GetErrThetaC() { return fErrThetaC; }
46  virtual Int_t GetRefIndex() { return fRefIndex; }
47  Int_t GetSensorId() { return fSensorId; }
48 
49  TVector3 GetPosition() const { return TVector3(fX, fY, fZ); }
50 
51  protected:
52  Int_t fSensorId;
53  Double_t fThetaC, fErrThetaC;
54 
55  ClassDef(PndRichHit, 1)
56 };
57 
58 #endif // PNDRICHHIT_H
virtual Int_t GetRefIndex()
Definition: PndRichHit.h:46
Double_t fErrThetaC
Definition: PndRichHit.h:53
virtual Double_t GetErrThetaC()
Definition: PndRichHit.h:45
virtual Double_t GetThetaC()
Definition: PndRichHit.h:44
virtual ~PndRichHit()
Int_t GetSensorId()
Definition: PndRichHit.h:47
Int_t fSensorId
Definition: PndRichHit.h:52
Double_t fThetaC
Definition: PndRichHit.h:53
virtual void Print(const Option_t *opt="") const
TVector3 GetPosition() const
Definition: PndRichHit.h:49