Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
McTrack.h
1/*
2 * TrackMC.h
3 *
4 * Created on: 04-05-2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HALMCTRACK_H_
10#define HALMCTRACK_H_
11
12#include "Track.h"
16namespace Hal {
17 class McTrack : public Track {
18
19 protected:
20 TLorentzVector fFreez;
21 TLorentzVector fStart;
22 Int_t fPDG;
23
24 public:
25 McTrack();
26 McTrack& operator=(const McTrack& other) = default;
31 virtual Int_t GetPdg() const { return fPDG; };
35 inline const TLorentzVector& GetFreezoutPosition() const { return fFreez; };
40 inline const TLorentzVector& GetStartPosition() const { return fStart; };
41 virtual void CopyData(Track* other);
42 virtual void RotateZ(Double_t phi);
43 void Boost(Double_t x, Double_t y, Double_t z);
44 void SetPdg(Int_t pdg) { fPDG = pdg; };
52 inline void SetFreezoutPosition(Double_t x, Double_t y, Double_t z, Double_t t) { fFreez.SetXYZT(x, y, z, t); }
58 inline void SetStartPosition(Double_t x, Double_t y, Double_t z, Double_t t) { fStart.SetXYZT(x, y, z, t); }
59 virtual Float_t GetFieldVal(Int_t fieldID) const;
60 virtual TString GetFieldName(Int_t fieldID) const;
61 virtual ~McTrack();
62 ClassDef(McTrack, 1)
63 };
64} // namespace Hal
65#endif /* HALMCTRACK_H_ */
virtual Float_t GetFieldVal(Int_t fieldID) const
Definition McTrack.cxx:28
virtual void RotateZ(Double_t phi)
Definition McTrack.cxx:66
void SetFreezoutPosition(Double_t x, Double_t y, Double_t z, Double_t t)
Definition McTrack.h:52
void Boost(Double_t x, Double_t y, Double_t z)
Definition McTrack.cxx:16
virtual TString GetFieldName(Int_t fieldID) const
Definition McTrack.cxx:47
virtual void CopyData(Track *other)
Definition McTrack.cxx:21
void SetStartPosition(Double_t x, Double_t y, Double_t z, Double_t t)
Definition McTrack.h:58
virtual Int_t GetPdg() const
Definition McTrack.h:31
const TLorentzVector & GetStartPosition() const
Definition McTrack.h:40
const TLorentzVector & GetFreezoutPosition() const
Definition McTrack.h:35