BmnRoot
Loading...
Searching...
No Matches
BmnVSPPoint.h
Go to the documentation of this file.
1#ifndef BMNVSPPOINT_H
2#define BMNVSPPOINT_H
3
4#include "FairMCPoint.h"
5
6class BmnVSPPoint : public FairMCPoint
7{
8 public:
20 BmnVSPPoint(Int_t trackID, Int_t detID,
21 TVector3 posIn, TVector3 posOut,
22 TVector3 momIn, TVector3 momOut,
23 Double_t tof, Double_t length, Double_t eLoss,
24 Int_t isPrimary, Double_t charge, Int_t pdgId);
25 BmnVSPPoint(const BmnVSPPoint& point) { *this = point; };
27
28 virtual ~BmnVSPPoint();
29
31 Double_t GetXIn() const { return fX; }
32 Double_t GetYIn() const { return fY; }
33 Double_t GetZIn() const { return fZ; }
34 Double_t GetXOut() const { return fX_out; }
35 Double_t GetYOut() const { return fY_out; }
36 Double_t GetZOut() const { return fZ_out; }
37 Double_t GetPxOut() const { return fPx_out; }
38 Double_t GetPyOut() const { return fPy_out; }
39 Double_t GetPzOut() const { return fPz_out; }
40 void PositionIn(TVector3& pos) { pos.SetXYZ(fX, fY, fZ); }
41 void PositionOut(TVector3& pos) { pos.SetXYZ(fX_out,fY_out,fZ_out); }
42 void MomentumIn(TVector3& mom) { mom.SetXYZ(fPx,fPy,fPz); }
43 void MomentumOut(TVector3& mom) { mom.SetXYZ(fPx_out,fPy_out,fPz_out); }
44
45 Int_t GetIsPrimary() { return fIsPrimary; }
46 Double_t GetCharge() { return fCharge; }
47 Double_t GetPdgId() { return fPdgId; }
48
49 Int_t GetStation() { return fStation; }
50 Int_t GetModule() { return fModule; }
51
52 void SetStation(Int_t station_num) { fStation = station_num; }
53 void SetModule(Int_t module_num) { fModule = module_num; }
54
55 // Output to screen
56 virtual void Print(const Option_t* opt) const;
57
58 protected:
59 Int_t fIsPrimary;
60 Double_t fCharge;
61 Int_t fPdgId;
62
63 Double_t fX_out, fY_out, fZ_out;
64 Double_t fPx_out, fPy_out, fPz_out;
65
66 Int_t fStation;
67 Int_t fModule;
68
69 ClassDef(BmnVSPPoint,1)
70};
71
72#endif /* BMNVSPPOINT_H */
Double_t fY_out
Definition BmnVSPPoint.h:63
void SetModule(Int_t module_num)
Definition BmnVSPPoint.h:53
Int_t fIsPrimary
Definition BmnVSPPoint.h:59
Double_t fZ_out
Definition BmnVSPPoint.h:63
Double_t GetZOut() const
Definition BmnVSPPoint.h:36
Double_t fCharge
Definition BmnVSPPoint.h:60
virtual ~BmnVSPPoint()
Int_t GetModule()
Definition BmnVSPPoint.h:50
Double_t GetPzOut() const
Definition BmnVSPPoint.h:39
Double_t fX_out
Definition BmnVSPPoint.h:63
Double_t GetZIn() const
Definition BmnVSPPoint.h:33
void SetStation(Int_t station_num)
Definition BmnVSPPoint.h:52
Int_t fStation
Definition BmnVSPPoint.h:66
void PositionOut(TVector3 &pos)
Definition BmnVSPPoint.h:41
void PositionIn(TVector3 &pos)
Definition BmnVSPPoint.h:40
BmnVSPPoint(const BmnVSPPoint &point)
Definition BmnVSPPoint.h:25
Int_t fModule
Definition BmnVSPPoint.h:67
Int_t GetIsPrimary()
Definition BmnVSPPoint.h:45
Double_t GetPxOut() const
Definition BmnVSPPoint.h:37
Double_t GetPdgId()
Definition BmnVSPPoint.h:47
Double_t GetXOut() const
Definition BmnVSPPoint.h:34
Double_t GetCharge()
Definition BmnVSPPoint.h:46
Double_t fPx_out
Definition BmnVSPPoint.h:64
virtual void Print(const Option_t *opt) const
Double_t GetXIn() const
Definition BmnVSPPoint.h:31
Int_t GetStation()
Definition BmnVSPPoint.h:49
void MomentumOut(TVector3 &mom)
Definition BmnVSPPoint.h:43
Double_t GetPyOut() const
Definition BmnVSPPoint.h:38
BmnVSPPoint(Int_t trackID, Int_t detID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss, Int_t isPrimary, Double_t charge, Int_t pdgId)
Double_t fPz_out
Definition BmnVSPPoint.h:64
Double_t fPy_out
Definition BmnVSPPoint.h:64
void MomentumIn(TVector3 &mom)
Definition BmnVSPPoint.h:42
Double_t GetYOut() const
Definition BmnVSPPoint.h:35
Double_t GetYIn() const
Definition BmnVSPPoint.h:32