BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
17
using namespace
std
;
18
19
class
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
**/
31
BmnDchPoint
(
Int_t
trackID,
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
45
BmnDchPoint
();
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
; }
53
Double_t
GetCharge
() {
return
fCharge
; }
54
Double_t
GetPhi
()
const
{
return
fPhi
; }
// AZ
55
Int_t
GetIsPrimary
() {
return
fIsPrimary
; }
56
Int_t
GetPlaneNumber
() {
return
fPlaneNumber
; }
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
:
65
Int_t
fIsPrimary
;
66
Double_t
fCharge
;
67
Double_t
fRadius
;
68
Int_t
fPdgId
;
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
73
ClassDef
(
BmnDchPoint
, 2)
74
};
75
76
#endif
Int_t
int Int_t
Double_t
double Double_t
Option_t
const char Option_t
ClassDef
#define ClassDef(name, id)
TObject.h
TVector3.h
BmnDchPoint
Definition
BmnDchPoint.h:20
BmnDchPoint::GetPhi
Double_t GetPhi() const
Definition
BmnDchPoint.h:54
BmnDchPoint::BmnDchPoint
BmnDchPoint()
BmnDchPoint::fTZ
Double_t fTZ
Definition
BmnDchPoint.h:69
BmnDchPoint::GetPdgId
Double_t GetPdgId()
Definition
BmnDchPoint.h:52
BmnDchPoint::GetTrackX
Double_t GetTrackX()
Definition
BmnDchPoint.h:49
BmnDchPoint::fCharge
Double_t fCharge
Definition
BmnDchPoint.h:66
BmnDchPoint::SetPhi
void SetPhi(Double_t phi)
Definition
BmnDchPoint.h:58
BmnDchPoint::fIsPrimary
Int_t fIsPrimary
Definition
BmnDchPoint.h:65
BmnDchPoint::fRadius
Double_t fRadius
Definition
BmnDchPoint.h:67
BmnDchPoint::Print
virtual void Print(const Option_t *opt) const
BmnDchPoint::SetPlaneNumber
void SetPlaneNumber(Int_t plane_num)
Definition
BmnDchPoint.h:59
BmnDchPoint::GetTrackZ
Double_t GetTrackZ()
Definition
BmnDchPoint.h:51
BmnDchPoint::fPdgId
Int_t fPdgId
Definition
BmnDchPoint.h:68
BmnDchPoint::fTY
Double_t fTY
Definition
BmnDchPoint.h:69
BmnDchPoint::GetPlaneNumber
Int_t GetPlaneNumber()
Definition
BmnDchPoint.h:56
BmnDchPoint::~BmnDchPoint
virtual ~BmnDchPoint()
BmnDchPoint::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.
BmnDchPoint::fPhi
Double_t fPhi
Definition
BmnDchPoint.h:70
BmnDchPoint::BmnDchPoint
BmnDchPoint(const BmnDchPoint &point)
Definition
BmnDchPoint.h:43
BmnDchPoint::fTX
Double_t fTX
Definition
BmnDchPoint.h:69
BmnDchPoint::fPlaneNumber
Int_t fPlaneNumber
Definition
BmnDchPoint.h:71
BmnDchPoint::GetCharge
Double_t GetCharge()
Definition
BmnDchPoint.h:53
BmnDchPoint::GetTrackY
Double_t GetTrackY()
Definition
BmnDchPoint.h:50
BmnDchPoint::GetDistance
Double_t GetDistance()
BmnDchPoint::GetIsPrimary
Int_t GetIsPrimary()
Definition
BmnDchPoint.h:55
FairMCPoint
TVector3
std
Definition
json.hpp:4446
install
include
BmnDchPoint.h
Generated on
for BmnRoot by
1.17.0