BmnRoot
Loading...
Searching...
No Matches
BmnDchPoint.h
Go to the documentation of this file.
1/*
2 * Updated: 10.09.2019 (D.Baranov)
3 * 'fPlaneNumber' data-member added
4 */
5
6// -------------------------------------------------------------------------
7// ----- BmnDchPoint header file -----
8// -------------------------------------------------------------------------
9
10#ifndef BMNDCHPOINT_H
11#define BMNDCHPOINT_H
12
13#include "TObject.h"
14#include "TVector3.h"
15#include "FairMCPoint.h"
16
17using namespace std;
18
19class BmnDchPoint : public FairMCPoint
20{
21 public:
31 BmnDchPoint(Int_t trackID, Int_t detID, TVector3 pos, Double_t radius, TVector3 mom, Double_t tof,
32 Double_t length, Double_t eLoss, Int_t isPrimary, Double_t charge, Int_t pdgId, TVector3 trackPos);
33 BmnDchPoint(const BmnDchPoint& point) { *this = point; };
34
36 virtual ~BmnDchPoint();
37
38 Double_t GetDistance(); // DCA between track and straw
39 Double_t GetTrackX() { return fTX; }
40 Double_t GetTrackY() { return fTY; }
41 Double_t GetTrackZ() { return fTZ; }
42 Double_t GetPdgId() { return fPdgId; }
43 Double_t GetCharge() { return fCharge; }
44 Double_t GetPhi() const { return fPhi; } //AZ
45 Int_t GetIsPrimary() { return fIsPrimary; }
46 Int_t GetPlaneNumber() { return fPlaneNumber; }
47
48 void SetPhi(Double_t phi) { fPhi = phi; } //AZ
49 void SetPlaneNumber(Int_t plane_num) { fPlaneNumber = plane_num; }
50
51 // Output to screen
52 virtual void Print(const Option_t* opt) const;
53
54protected:
56 Double_t fCharge;
57 Double_t fRadius;
58 Int_t fPdgId;
59 Double_t fTX, fTY, fTZ; // track coordinates at DCA to straw
60 Double_t fPhi; // tube rotation angle - AZ (interim solution)
61 Int_t fPlaneNumber; // number of an active plane
62
63 ClassDef(BmnDchPoint,2)
64};
65
66#endif
Double_t GetPhi() const
Definition BmnDchPoint.h:44
Double_t fTZ
Definition BmnDchPoint.h:59
Double_t GetPdgId()
Definition BmnDchPoint.h:42
Double_t GetTrackX()
Definition BmnDchPoint.h:39
Double_t fCharge
Definition BmnDchPoint.h:56
void SetPhi(Double_t phi)
Definition BmnDchPoint.h:48
Int_t fIsPrimary
Definition BmnDchPoint.h:55
Double_t fRadius
Definition BmnDchPoint.h:57
void SetPlaneNumber(Int_t plane_num)
Definition BmnDchPoint.h:49
virtual void Print(const Option_t *opt) const
Double_t GetTrackZ()
Definition BmnDchPoint.h:41
Double_t fTY
Definition BmnDchPoint.h:59
Int_t GetPlaneNumber()
Definition BmnDchPoint.h:46
Double_t fPhi
Definition BmnDchPoint.h:60
BmnDchPoint(const BmnDchPoint &point)
Definition BmnDchPoint.h:33
Double_t fTX
Definition BmnDchPoint.h:59
Int_t fPlaneNumber
Definition BmnDchPoint.h:61
Double_t GetCharge()
Definition BmnDchPoint.h:43
Double_t GetTrackY()
Definition BmnDchPoint.h:40
virtual ~BmnDchPoint()
Double_t GetDistance()
Int_t GetIsPrimary()
Definition BmnDchPoint.h:45
STL namespace.