BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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 "FairMCPoint.h"
14#include "TObject.h"
15#include "TVector3.h"
16
17using namespace std;
18
19class BmnDchPoint : public FairMCPoint
20{
21 public:
22 /** Constructor with arguments
23 *@param trackID Index of MCTrack
24 *@param detID Detector ID
25 *@param pos Ccoordinates at entrance to active volume [cm]
26 *@param mom Momentum of track at entrance [GeV]
27 *@param tof Time since event start [ns]
28 *@param length Track length since creation [cm]
29 *@param eLoss Energy deposit [GeV]
30 **/
32 Int_t detID,
33 TVector3 pos,
34 Double_t radius,
35 TVector3 mom,
36 Double_t tof,
37 Double_t length,
38 Double_t eLoss,
39 Int_t isPrimary,
40 Double_t charge,
41 Int_t pdgId,
42 TVector3 trackPos);
43 BmnDchPoint(const BmnDchPoint& point) { *this = point; };
44
46 virtual ~BmnDchPoint();
47
48 Double_t GetDistance(); // DCA between track and straw
49 Double_t GetTrackX() { return fTX; }
50 Double_t GetTrackY() { return fTY; }
51 Double_t GetTrackZ() { return fTZ; }
52 Double_t GetPdgId() { return fPdgId; }
54 Double_t GetPhi() const { return fPhi; } // AZ
57
58 void SetPhi(Double_t phi) { fPhi = phi; } // AZ
59 void SetPlaneNumber(Int_t plane_num) { fPlaneNumber = plane_num; }
60
61 // Output to screen
62 virtual void Print(const Option_t* opt) const;
63
64 protected:
69 Double_t fTX, fTY, fTZ; // track coordinates at DCA to straw
70 Double_t fPhi; // tube rotation angle - AZ (interim solution)
71 Int_t fPlaneNumber; // number of an active plane
72
74};
75
76#endif
int Int_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Double_t GetPhi() const
Definition BmnDchPoint.h:54
Double_t fTZ
Definition BmnDchPoint.h:69
Double_t GetPdgId()
Definition BmnDchPoint.h:52
Double_t GetTrackX()
Definition BmnDchPoint.h:49
Double_t fCharge
Definition BmnDchPoint.h:66
void SetPhi(Double_t phi)
Definition BmnDchPoint.h:58
Int_t fIsPrimary
Definition BmnDchPoint.h:65
Double_t fRadius
Definition BmnDchPoint.h:67
virtual void Print(const Option_t *opt) const
void SetPlaneNumber(Int_t plane_num)
Definition BmnDchPoint.h:59
Double_t GetTrackZ()
Definition BmnDchPoint.h:51
Double_t fTY
Definition BmnDchPoint.h:69
Int_t GetPlaneNumber()
Definition BmnDchPoint.h:56
virtual ~BmnDchPoint()
BmnDchPoint(Int_t trackID, Int_t detID, TVector3 pos, Double_t radius, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t isPrimary, Double_t charge, Int_t pdgId, TVector3 trackPos)
Constructor with arguments.
Double_t fPhi
Definition BmnDchPoint.h:70
BmnDchPoint(const BmnDchPoint &point)
Definition BmnDchPoint.h:43
Double_t fTX
Definition BmnDchPoint.h:69
Int_t fPlaneNumber
Definition BmnDchPoint.h:71
Double_t GetCharge()
Definition BmnDchPoint.h:53
Double_t GetTrackY()
Definition BmnDchPoint.h:50
Double_t GetDistance()
Int_t GetIsPrimary()
Definition BmnDchPoint.h:55
Definition json.hpp:4446