CbmRoot
Loading...
Searching...
No Matches
CbmTrackParam.h
Go to the documentation of this file.
1/* Copyright (C) 2019-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Timur Ablyazimov, Florian Uhlig [committer] */
4
5// -------------------------------------------------------------------------
6// ----- CbmTrackParam header file -----
7// ----- Created 05/02/16 by T. Ablyazimov -----
8// -------------------------------------------------------------------------
9
18#ifndef CBMLTRACKPARAM_H_
19#define CBMLTRACKPARAM_H_ 1
20
21#include <FairTrackParam.h> // for FairTrackParam
22
23#include <Rtypes.h> // for ClassDef
24
25class CbmTrackParam : public FairTrackParam {
26public:
27 CbmTrackParam() : fPx(0), fPy(0), fPz(0), fDpx(0), fDpy(0), fDpz(0), fTime(0.), fDTime(0.) {}
28 void Set(const FairTrackParam& ftp, double time = 0., double timeError = 0.);
29 void SetTime(double time, double timeError = 0.)
30 {
31 fTime = time;
32 fDTime = timeError;
33 }
34 double GetPx() const { return fPx; }
35 double GetPy() const { return fPy; }
36 double GetPz() const { return fPz; }
37 double GetDpx() const { return fDpx; }
38 double GetDpy() const { return fDpy; }
39 double GetDpz() const { return fDpz; }
40 double GetTime() const { return fTime; }
41 double GetDTime() const { return fDTime; }
42
43private:
44 double fPx;
45 double fPy;
46 double fPz;
47 double fDpx;
48 double fDpy;
49 double fDpz;
50 double fTime;
51 double fDTime;
53};
54
55
56#endif
double GetDpy() const
double GetPz() const
double GetDpx() const
void SetTime(double time, double timeError=0.)
double GetPx() const
double GetDTime() const
double GetPy() const
ClassDef(CbmTrackParam, 2)
double GetDpz() const
void Set(const FairTrackParam &ftp, double time=0., double timeError=0.)
double GetTime() const