/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/ds/include/RAT/DS/MCNestedTubeHit.hh Source File

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/ds/include/RAT/DS/MCNestedTubeHit.hh Source File
Ratpac-two
MCNestedTubeHit.hh
1 
11 #ifndef __RAT_DS_MCNestedTubeHit__
12 #define __RAT_DS_MCNestedTubeHit__
13 
14 #include <TObject.h>
15 #include <TVector3.h>
16 
17 namespace RAT {
18 namespace DS {
19 
20 class MCNestedTubeHit : public TObject {
21  public:
22  MCNestedTubeHit() : TObject() {}
23  virtual ~MCNestedTubeHit() {}
24 
26  virtual Double_t GetHitTime() const { return hitTime; }
27  virtual void SetHitTime(Double_t _hitTime) { hitTime = _hitTime; }
28 
30  virtual TVector3 GetPosition() const { return pos; }
31  virtual void SetPosition(const TVector3 &_pos) { pos = _pos; }
32 
34  virtual void SetHitID(Int_t _hitID) { hitID = _hitID; }
35  virtual Int_t GetHitID() const { return hitID; }
36 
38  bool operator<(const MCNestedTubeHit &mcp) const { return (hitTime < mcp.hitTime); }
39  bool operator>(const MCNestedTubeHit &mcp) const { return (hitTime > mcp.hitTime); }
40 
41  ClassDef(MCNestedTubeHit, 4);
42 
43  protected:
44  Double_t hitTime;
45  TVector3 pos;
46 
47  Int_t hitID;
48  Int_t fiberID;
49 };
50 
51 } // namespace DS
52 } // namespace RAT
53 
54 #endif
Definition: MCNestedTubeHit.hh:20
virtual Double_t GetHitTime() const
Definition: MCNestedTubeHit.hh:26
virtual void SetHitID(Int_t _hitID)
Definition: MCNestedTubeHit.hh:34
virtual TVector3 GetPosition() const
Definition: MCNestedTubeHit.hh:30
bool operator<(const MCNestedTubeHit &mcp) const
Definition: MCNestedTubeHit.hh:38
Definition: CCCrossSecMessenger.hh:29