BmnRoot
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
10#include "TObject.h"
11#include "TVector3.h"
12#include "FairMCPoint.h"
13
14using namespace std;
15
16//------------------------------------------------------------------------------------------------------------------------
17class BmnMwpcPoint : public FairMCPoint
18{
19
20public:
21
31 BmnMwpcPoint(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 BmnMwpcPoint(const BmnMwpcPoint& point) { *this = point; };
34
36 virtual ~BmnMwpcPoint();
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 void SetPhi(Double_t phi) { fPhi = phi; } //AZ
47
48 // Output to screen
49 virtual void Print(const Option_t* opt) const;
50protected:
51 Int_t fIsPrimary;
52 Double_t fCharge;
53 Double_t fRadius;
54 Int_t fPdgId;
55 Double_t fTX, fTY, fTZ; // track coordinates at DCA to straw
56 Double_t fPhi; // tube rotation angle - AZ (interim solution)
57
58 ClassDef(BmnMwpcPoint,2)
59
60};
61
62//------------------------------------------------------------------------------------------------------------------------
63#endif
Double_t fRadius
Double_t fCharge
Double_t GetCharge()
Double_t GetTrackY()
Double_t fTZ
Double_t GetPdgId()
virtual ~BmnMwpcPoint()
Double_t GetTrackZ()
Double_t fTY
Double_t GetPhi() const
Double_t fPhi
Double_t GetTrackX()
Int_t GetIsPrimary()
virtual void Print(const Option_t *opt) const
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)
Double_t GetDistance()
void SetPhi(Double_t phi)
BmnMwpcPoint(const BmnMwpcPoint &point)
STL namespace.