CbmRoot
Loading...
Searching...
No Matches
CbmMvdPoint.h
Go to the documentation of this file.
1
/* Copyright (C) 2006-2025 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Volker Friese [committer] */
4
5
// -------------------------------------------------------------------------
6
// ----- CbmMvdPoint header file -----
7
// ----- Created 06/11/06 by V. Friese -----
8
// -------------------------------------------------------------------------
9
19
20
21
#ifndef CBMMVDPOINT_H
22
#define CBMMVDPOINT_H 1
23
24
#include "
CbmMvdAddress.h
"
25
26
#include <FairMCPoint.h>
// for FairMCPoint
27
28
#include <Rtypes.h>
// for ClassDef
29
#include <RtypesCore.h>
// for Double32_t
30
#include <TVector3.h>
// for TVector3
31
32
#include <cstdint>
33
34
class
CbmMvdPoint
:
public
FairMCPoint {
35
36
public
:
38
CbmMvdPoint
();
39
40
54
CbmMvdPoint
(int32_t trackId, int32_t pdgCode, int32_t detId, TVector3 posIn, TVector3 posOut, TVector3 momIn,
55
TVector3 momOut,
double
tof,
double
length,
double
eLoss, int32_t frame = 0);
56
58
// CbmMvdPoint(const CbmMvdPoint& point) { *this = point; };
59
61
virtual
~CbmMvdPoint
();
62
64
double
GetXOut
()
const
{
return
fX_out
; }
65
double
GetYOut
()
const
{
return
fY_out
; }
66
double
GetZOut
()
const
{
return
fZ_out
; }
67
double
GetPxOut
()
const
{
return
fPx_out
; }
68
double
GetPyOut
()
const
{
return
fPy_out
; }
69
double
GetPzOut
()
const
{
return
fPz_out
; }
70
int32_t
GetPdgCode
()
const
{
return
fPdgCode
; }
71
int32_t
GetSystemId
()
const
{
return
CbmMvdAddress::GetSystemIndex
(fDetectorID); }
72
int32_t
GetSensorNr
()
const
{
return
CbmMvdAddress::GetSensorNrFromAddress
(fDetectorID); }
73
int32_t
GetPointId
()
const
74
{
75
return
fPointId
;
76
}
// Returns index of this object in its TClonesArray.
77
// By default not filled. Used internally in the MvdDigitizer.
78
void
PositionOut
(TVector3&
pos
) {
pos
.SetXYZ(
fX_out
,
fY_out
,
fZ_out
); }
79
void
MomentumOut
(TVector3& mom) { mom.SetXYZ(
fPx_out
,
fPy_out
,
fPz_out
); }
80
int32_t
GetFrame
()
const
{
return
fFrame
; }
81
int32_t
GetAbsTime
();
82
84
void
SetPositionOut
(TVector3
pos
);
85
void
SetMomentumOut
(TVector3 mom);
86
void
SetPdgCode
(int32_t pdg) {
fPdgCode
= pdg; }
87
void
SetPointId
(int32_t myId) {
fPointId
= myId; }
88
void
SetFrameNr
(int32_t frame) {
fFrame
= frame; }
89
91
virtual
void
Print
(
const
Option_t* opt)
const
;
92
93
protected
:
94
Double32_t
fX_out
,
fY_out
,
fZ_out
;
95
Double32_t
fPx_out
,
fPy_out
,
fPz_out
;
96
int32_t
fPdgCode
;
// index of the object in its TClonesArray. By default not filled => -1.
97
int32_t
fPointId
;
// index of the object in its TClonesArray. By default not filled => -1.
98
int32_t
fFrame
;
99
double
fStartTime
;
100
101
ClassDef(
CbmMvdPoint
, 2)
102
};
103
104
105
inline
void
CbmMvdPoint::SetPositionOut
(TVector3
pos
)
106
{
107
fX_out
=
pos
.X();
108
fY_out
=
pos
.Y();
109
fZ_out
=
pos
.Z();
110
}
111
112
inline
void
CbmMvdPoint::SetMomentumOut
(TVector3 mom)
113
{
114
fPx_out
= mom.Px();
115
fPy_out
= mom.Py();
116
fPz_out
= mom.Pz();
117
}
118
119
#endif
CbmMvdAddress.h
pos
TVector3 pos
Definition
CbmMvdSensorDigiToHitTask.cxx:56
CbmMvdAddress::GetSystemIndex
static int32_t GetSystemIndex(uint32_t address)
Definition
CbmMvdAddress.h:92
CbmMvdAddress::GetSensorNrFromAddress
static int32_t GetSensorNrFromAddress(uint32_t address)
Definition
CbmMvdAddress.h:114
CbmMvdPoint::GetSensorNr
int32_t GetSensorNr() const
Definition
CbmMvdPoint.h:72
CbmMvdPoint::SetPointId
void SetPointId(int32_t myId)
Definition
CbmMvdPoint.h:87
CbmMvdPoint::GetFrame
int32_t GetFrame() const
Definition
CbmMvdPoint.h:80
CbmMvdPoint::fY_out
Double32_t fY_out
Definition
CbmMvdPoint.h:94
CbmMvdPoint::SetPdgCode
void SetPdgCode(int32_t pdg)
Definition
CbmMvdPoint.h:86
CbmMvdPoint::fPointId
int32_t fPointId
Definition
CbmMvdPoint.h:97
CbmMvdPoint::GetXOut
double GetXOut() const
Definition
CbmMvdPoint.h:64
CbmMvdPoint::GetPointId
int32_t GetPointId() const
Definition
CbmMvdPoint.h:73
CbmMvdPoint::GetPxOut
double GetPxOut() const
Definition
CbmMvdPoint.h:67
CbmMvdPoint::GetPzOut
double GetPzOut() const
Definition
CbmMvdPoint.h:69
CbmMvdPoint::MomentumOut
void MomentumOut(TVector3 &mom)
Definition
CbmMvdPoint.h:79
CbmMvdPoint::fPy_out
Double32_t fPy_out
Definition
CbmMvdPoint.h:95
CbmMvdPoint::GetSystemId
int32_t GetSystemId() const
Definition
CbmMvdPoint.h:71
CbmMvdPoint::SetPositionOut
void SetPositionOut(TVector3 pos)
Definition
CbmMvdPoint.h:105
CbmMvdPoint::~CbmMvdPoint
virtual ~CbmMvdPoint()
Definition
CbmMvdPoint.cxx:59
CbmMvdPoint::Print
virtual void Print(const Option_t *opt) const
Definition
CbmMvdPoint.cxx:64
CbmMvdPoint::fPx_out
Double32_t fPx_out
Definition
CbmMvdPoint.h:95
CbmMvdPoint::GetZOut
double GetZOut() const
Definition
CbmMvdPoint.h:66
CbmMvdPoint::fZ_out
Double32_t fZ_out
Definition
CbmMvdPoint.h:94
CbmMvdPoint::GetAbsTime
int32_t GetAbsTime()
Definition
CbmMvdPoint.cxx:73
CbmMvdPoint::fStartTime
double fStartTime
Definition
CbmMvdPoint.h:99
CbmMvdPoint::GetPyOut
double GetPyOut() const
Definition
CbmMvdPoint.h:68
CbmMvdPoint::fPz_out
Double32_t fPz_out
Definition
CbmMvdPoint.h:95
CbmMvdPoint::CbmMvdPoint
CbmMvdPoint()
Definition
CbmMvdPoint.cxx:20
CbmMvdPoint::fFrame
int32_t fFrame
Definition
CbmMvdPoint.h:98
CbmMvdPoint::SetFrameNr
void SetFrameNr(int32_t frame)
Definition
CbmMvdPoint.h:88
CbmMvdPoint::GetYOut
double GetYOut() const
Definition
CbmMvdPoint.h:65
CbmMvdPoint::GetPdgCode
int32_t GetPdgCode() const
Definition
CbmMvdPoint.h:70
CbmMvdPoint::PositionOut
void PositionOut(TVector3 &pos)
Definition
CbmMvdPoint.h:78
CbmMvdPoint::fX_out
Double32_t fX_out
Definition
CbmMvdPoint.h:94
CbmMvdPoint::SetMomentumOut
void SetMomentumOut(TVector3 mom)
Definition
CbmMvdPoint.h:112
CbmMvdPoint::fPdgCode
int32_t fPdgCode
Definition
CbmMvdPoint.h:96
core
data
mvd
CbmMvdPoint.h
Generated on Fri Jan 30 2026 23:05:22 for CbmRoot by
1.13.2