BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnMwpcPoint.h
Go to the documentation of this file.
1//------------------------------------------------------------------------------------------------------------------------
2// -------------------------------------------------------------------------
3// ----- BmnMWPCPoint header file -----
4// -------------------------------------------------------------------------
5
6#ifndef BMNMWPCPOINT_H
7#define BMNMWPCPOINT_H
8
9#include "FairMCPoint.h"
10#include "TObject.h"
11#include "TVector3.h"
12
13using namespace std;
14
15//------------------------------------------------------------------------------------------------------------------------
17{
18
19 public:
20 /** Constructor with arguments
21 *@param trackID Index of MCTrack
22 *@param detID Detector ID
23 *@param pos Ccoordinates at entrance to active volume [cm]
24 *@param mom Momentum of track at entrance [GeV]
25 *@param tof Time since event start [ns]
26 *@param length Track length since creation [cm]
27 *@param eLoss Energy deposit [GeV]
28 **/
29 BmnMwpcPoint(Int_t trackID,
30 Int_t detID,
31 TVector3 pos,
32 Double_t radius,
33 TVector3 mom,
34 Double_t tof,
35 Double_t length,
36 Double_t eLoss,
37 Int_t isPrimary,
38 Double_t charge,
39 Int_t pdgId,
40 TVector3 trackPos);
41 BmnMwpcPoint(const BmnMwpcPoint& point) { *this = point; };
42
44 virtual ~BmnMwpcPoint();
45
46 Double_t GetDistance(); // DCA between track and straw
47 Double_t GetTrackX() { return fTX; }
48 Double_t GetTrackY() { return fTY; }
49 Double_t GetTrackZ() { return fTZ; }
50 Double_t GetPdgId() { return fPdgId; }
52 Double_t GetPhi() const { return fPhi; } // AZ
54 void SetPhi(Double_t phi) { fPhi = phi; } // AZ
55
56 // Output to screen
57 virtual void Print(const Option_t* opt) const;
58
59 protected:
64 Double_t fTX, fTY, fTZ; // track coordinates at DCA to straw
65 Double_t fPhi; // tube rotation angle - AZ (interim solution)
66
68};
69
70//------------------------------------------------------------------------------------------------------------------------
71#endif
int Int_t
double Double_t
const char Option_t
#define ClassDef(name, id)
Double_t fRadius
Double_t fCharge
Double_t GetCharge()
Double_t GetTrackY()
Double_t fTZ
Double_t GetPdgId()
Double_t GetTrackZ()
Double_t fTY
Double_t GetPhi() const
Double_t fPhi
Double_t GetTrackX()
Int_t GetIsPrimary()
Double_t fTX
BmnMwpcPoint(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.
virtual ~BmnMwpcPoint()
virtual void Print(const Option_t *opt) const
Double_t GetDistance()
void SetPhi(Double_t phi)
BmnMwpcPoint(const BmnMwpcPoint &point)
Definition json.hpp:4446