PandaRoot
BSEmcMCPoint.h
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // ----- BSEmcMCPoint header file -----
3 // ----- Created 14/08/06 by S.Spataro -----
4 // ------------------------------------------------------------------------
5 #ifndef BSEMCMCPOINT_HH
6 #define BSEMCMCPOINT_HH
7 
8 #include <string> // for string
9 
10 #include "Rtypes.h" // for BSEmcMCPoint::Class, BSEmcMCPoint::Streamer
11 #include "RtypesCore.h" // for Int_t, kFALSE, Bool_t, Double_t, Option_t
12 #include "TVector3.h" // for TVector3
13 
14 #include "FairLink.h" // for FairLink
15 #include "FairMCPoint.h" // for FairMCPoint
16 
17 #include "BSEmcDataBranchNames.h"
18 
19 class TBuffer;
20 class TClass;
21 class TMemberInspector;
22 
28 class BSEmcMCPoint : public FairMCPoint {
29 
30  public:
32  BSEmcMCPoint();
33 
47  BSEmcMCPoint(Int_t t_trackID, Int_t t_detID, Int_t t_evtID, const TVector3 &t_pos, const TVector3 &t_mom, Double_t t_tof, Double_t t_length, Double_t t_eLoss,
48  Bool_t t_entering = kFALSE, Bool_t t_exiting = kFALSE);
49 
51  BSEmcMCPoint(const BSEmcMCPoint &t_point);
52 
54  virtual ~BSEmcMCPoint();
55 
56  Bool_t GetEntering() const { return fEntering; }
57  Bool_t GetExiting() const { return fExiting; }
60  virtual void SetTrackID(Int_t t_trackId)
61  {
62  FairMCPoint::SetTrackID(t_trackId);
63  SetLink(FairLink("MCTrack", t_trackId));
64  } // 14.09.10 Stefano FIX
65 
67  virtual void Print(const Option_t *t_opt) const;
68 
69  Bool_t operator<(const BSEmcMCPoint &t_rhs) const;
70 
71  Int_t GetDetectorId() const { return fDetectorID; }
72  void SetDetectorId(Int_t t_detectorId) { fDetectorID = t_detectorId; }
73  TVector3 GetPosition() const { return TVector3{GetX(), GetY(), GetZ()}; }
74 
75  Int_t GetClusterID() const { return fClusterID; }
76  void SetClusterID(Int_t t_clusterId) { fClusterID = t_clusterId; }
77 
78  protected:
79  Bool_t fEntering{kFALSE}; //< Is particle entering into crystal
80  Bool_t fExiting{kFALSE}; //< Is particle exiting the crystal
81  Int_t fClusterID{-1};
82  ClassDef(BSEmcMCPoint, 1)
83 };
84 
85 #endif /*BSEMCMCPOINT_HH*/
Int_t fClusterID
Definition: BSEmcMCPoint.h:81
Bool_t fExiting
Definition: BSEmcMCPoint.h:80
void SetDetectorId(Int_t t_detectorId)
Definition: BSEmcMCPoint.h:72
Bool_t GetExiting() const
Definition: BSEmcMCPoint.h:57
Bool_t operator<(const BSEmcMCPoint &t_rhs) const
virtual void Print(const Option_t *t_opt) const
represents a mc hit in an emc crystal
Definition: BSEmcMCPoint.h:28
virtual ~BSEmcMCPoint()
Int_t GetClusterID() const
Definition: BSEmcMCPoint.h:75
Bool_t GetEntering() const
Definition: BSEmcMCPoint.h:56
Int_t GetDetectorId() const
Definition: BSEmcMCPoint.h:71
virtual void SetTrackID(Int_t t_trackId)
Definition: BSEmcMCPoint.h:60
void SetClusterID(Int_t t_clusterId)
Definition: BSEmcMCPoint.h:76
TVector3 GetPosition() const
Definition: BSEmcMCPoint.h:73
Bool_t fEntering
Definition: BSEmcMCPoint.h:79