CbmRoot
NicaUnigenTrackInterface.h
Go to the documentation of this file.
1 /*
2  * NicaUnigenTrackInterface.h
3  *
4  * Created on: 2 sie 2017
5  * Author: Daniel Wielanek
6  * E-mail: daniel.wielanek@gmail.com
7  * Warsaw University of Technology, Faculty of Physics
8  */
9 #ifndef NICAUNIGENTRACKINTERFACE_H_
10 #define NICAUNIGENTRACKINTERFACE_H_
11 
12 #include "NicaMCTrackInterface.h"
13 #include "UParticle.h"
17 class NicaUnigenTrackInterface : public NicaMCTrackInterface {
18 public:
20  void SetID(Int_t id) { ((UParticle*) fRawObject)->SetUniqueID(id); };
21  void SetPxPyPzE(Double_t px, Double_t py, Double_t pz, Double_t e) {
22  ((UParticle*) fRawObject)->SetMomentum(px, py, pz, e);
23  };
24  void SetStatus(Int_t stat) { ((UParticle*) fRawObject)->SetStatus(stat); };
25  void SetPrimary(Int_t /*prim*/) {};
26  Double_t GetPx() const { return ((UParticle*) fRawObject)->Px(); };
27  Double_t GetPy() const { return ((UParticle*) fRawObject)->Py(); };
28  Double_t GetPz() const { return ((UParticle*) fRawObject)->Pz(); };
29  Double_t GetE() const { return ((UParticle*) fRawObject)->E(); };
30  Int_t GetMotherIndex() const { return ((UParticle*) fRawObject)->GetMate(); };
31  Int_t GetStatus() const { return ((UParticle*) fRawObject)->GetStatus(); };
32  Bool_t IsPrimary() const { return kTRUE; };
33  virtual ~NicaUnigenTrackInterface();
34  ClassDef(NicaUnigenTrackInterface, 1)
35 };
36 
37 #endif /* NICAROOT_DATAFORMAT_FORMATS_NICAUNIGENTRACKINTERFACE_H_ */
NicaUnigenTrackInterface::SetPxPyPzE
void SetPxPyPzE(Double_t px, Double_t py, Double_t pz, Double_t e)
Definition: NicaUnigenTrackInterface.h:21
NicaUnigenTrackInterface::SetID
void SetID(Int_t id)
Definition: NicaUnigenTrackInterface.h:20
UParticle
Definition: UParticle.h:10
NicaUnigenTrackInterface::GetPx
Double_t GetPx() const
Definition: NicaUnigenTrackInterface.h:26
NicaUnigenTrackInterface
Definition: NicaUnigenTrackInterface.h:17
UParticle.h
NicaUnigenTrackInterface::GetE
Double_t GetE() const
Definition: NicaUnigenTrackInterface.h:29
NicaUnigenTrackInterface::SetStatus
void SetStatus(Int_t stat)
Definition: NicaUnigenTrackInterface.h:24
NicaUnigenTrackInterface::GetStatus
Int_t GetStatus() const
Definition: NicaUnigenTrackInterface.h:31
NicaUnigenTrackInterface::SetPrimary
void SetPrimary(Int_t)
Definition: NicaUnigenTrackInterface.h:25
NicaUnigenTrackInterface::GetPy
Double_t GetPy() const
Definition: NicaUnigenTrackInterface.h:27
NicaUnigenTrackInterface::GetPz
Double_t GetPz() const
Definition: NicaUnigenTrackInterface.h:28
NicaUnigenTrackInterface::NicaUnigenTrackInterface
NicaUnigenTrackInterface()
Definition: NicaUnigenTrackInterface.cxx:11
NicaUnigenTrackInterface::~NicaUnigenTrackInterface
virtual ~NicaUnigenTrackInterface()
Definition: NicaUnigenTrackInterface.cxx:13
NicaUnigenTrackInterface::GetMotherIndex
Int_t GetMotherIndex() const
Definition: NicaUnigenTrackInterface.h:30
NicaUnigenTrackInterface::IsPrimary
Bool_t IsPrimary() const
Definition: NicaUnigenTrackInterface.h:32