Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
UnigenTrackInterface.h
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 "McTrackInterface.h"
13#include "UParticle.h"
17namespace HalUni {
19 TObject* fRawObject;
20
21 public:
23 void SetID(Int_t id) { ((UParticle*) fRawObject)->SetUniqueID(id); };
24 void SetPxPyPzE(Double_t px, Double_t py, Double_t pz, Double_t e) { ((UParticle*) fRawObject)->SetMomentum(px, py, pz, e); };
25 void SetStatus(Int_t stat) { ((UParticle*) fRawObject)->SetStatus(stat); };
26 void SetPrimary(Int_t /*prim*/) {};
27 Double_t GetPx() const { return ((UParticle*) fRawObject)->Px(); };
28 Double_t GetPy() const { return ((UParticle*) fRawObject)->Py(); };
29 Double_t GetPz() const { return ((UParticle*) fRawObject)->Pz(); };
30 Double_t GetE() const { return ((UParticle*) fRawObject)->E(); };
31 Int_t GetMotherIndex() const { return ((UParticle*) fRawObject)->GetMate(); };
32 Int_t GetStatus() const { return ((UParticle*) fRawObject)->GetStatus(); };
33 Bool_t IsPrimary() const { return kTRUE; };
34 virtual ~UnigenTrackInterface();
35 ClassDef(UnigenTrackInterface, 1)
36 };
37} // namespace HalUni
38
39#endif /* NICAROOT_DATAFORMAT_FORMATS_NICAUNIGENTRACKINTERFACE_H_ */
void SetPxPyPzE(Double_t px, Double_t py, Double_t pz, Double_t e)