Project
Loading...
Searching...
No Matches
FairRadLenPoint.h
Go to the documentation of this file.
1/********************************************************************************
2 * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3 * *
4 * This software is distributed under the terms of the *
5 * GNU Lesser General Public Licence (LGPL) version 3, *
6 * copied verbatim in the file "LICENSE" *
7 ********************************************************************************/
8// -------------------------------------------------------------------------
9// ----- FairRadLenPoint header file -----
10// ----- Created 14/01/08 by M. Al-Turany -----
11// -------------------------------------------------------------------------
12
18#ifndef FAIRRADLENPOINT_H
19#define FAIRRADLENPOINT_H
20
21#include "FairMCPoint.h" // for FairMCPoint
22
23#include <Rtypes.h> // for Double_t, Float_t, etc
24#include <TVector3.h> // for TVector3
25
27{
28 public:
31
32 FairRadLenPoint(Int_t trackID,
33 Int_t detID,
34 TVector3 pos,
35 TVector3 mom,
36 Double_t tof,
37 Double_t length,
38 Double_t eLoss,
39 TVector3 posOut,
40 TVector3 momOut,
41 Float_t fA,
42 Float_t fZ,
45
47 virtual ~FairRadLenPoint();
48
50 Float_t GetA() { return fA; }
51 Float_t GetZm() { return fZmat; }
54
56 void SetA(Double_t A) { fA = A; }
57 void SetZm(Double_t Z) { fZmat = Z; }
58 void SetRadLength(Double_t length) { fRadLen = length; }
59 void SetDensity(Double_t Density) { fDensity = Density; }
60
62 virtual void Print(const Option_t* opt) const;
63
64 Double_t GetXOut() const { return fXOut; };
65 Double_t GetYOut() const { return fYOut; };
66 Double_t GetZOut() const { return fZOut; };
67
68 Double_t GetPxOut() const { return fPxOut; }
69 Double_t GetPyOut() const { return fPyOut; }
70 Double_t GetPzOut() const { return fPzOut; }
71
72 TVector3 GetPosition() const { return TVector3(fX, fY, fZ); }
73 TVector3 GetPositionOut() const { return TVector3(fXOut, fYOut, fZOut); }
74
75 void PositionOut(TVector3& pos) const { pos.SetXYZ(fXOut, fYOut, fZOut); };
76 void MomentumOut(TVector3& mom) const { mom.SetXYZ(fPxOut, fPyOut, fPzOut); }
77
78 protected:
79 Float_t fA; // A of material
80 Float_t fZmat; // Z of material
81 Float_t fDensity; // density of material
82 Float_t fRadLen; // radiation length
83
84 Double_t fXOut, fYOut, fZOut;
85 Double_t fPxOut, fPyOut, fPzOut;
86
88};
89
90#endif
uint16_t pos
Definition RawData.h:3
Definition A.h:16
Double32_t fZ
Position of hit [cm].
Double32_t fX
Double32_t fY
Double_t GetXOut() const
Float_t GetRadLength()
TVector3 GetPosition() const
TVector3 GetPositionOut() const
void SetRadLength(Double_t length)
void SetA(Double_t A)
virtual void Print(const Option_t *opt) const
ClassDef(FairRadLenPoint, 1)
Double_t GetPxOut() const
Double_t GetPzOut() const
Double_t GetYOut() const
Double_t GetZOut() const
void PositionOut(TVector3 &pos) const
void SetDensity(Double_t Density)
Double_t GetPyOut() const
void MomentumOut(TVector3 &mom) const
virtual ~FairRadLenPoint()
void SetZm(Double_t Z)
GLuint GLsizei GLsizei * length
Definition glcorearb.h:790