Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TrackInterface.h
1/*
2 * TrackInterface.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 HALTRACKINTERFACE_H_
10#define HALTRACKINTERFACE_H_
11
12#include <TObject.h>
16namespace Hal {
17 class TrackInterface : public TObject {
18 protected:
19 const Int_t fRawObjNo;
20 TObject** fRawObject; //[fRawObjNo]
21
22 public:
23 TrackInterface(Int_t rawObj = 1);
28 virtual void SetCharge(Double_t /*charge*/) {};
33 virtual void SetID(Int_t /*id*/) {};
41 virtual void SetPxPyPzE(Double_t /*px*/, Double_t /*py*/, Double_t /*pz*/, Double_t /*e*/) {};
46 virtual void SetMotherIndex(Int_t /*index*/) {};
51 virtual void SetStatus(Int_t /*stat*/) {};
56 virtual void SetPrimary(Int_t /*prim*/) {};
61 virtual Double_t GetPx() const { return 0.; };
66 virtual Double_t GetPy() const { return 0.; };
71 virtual Double_t GetPz() const { return 0.; };
76 virtual Double_t GetE() const { return 0.; };
81 virtual Double_t GetCharge() const { return 0.; };
86 virtual Int_t GetID() const { return 0; };
91 virtual Int_t GetMotherIndex() const { return 0; };
96 virtual Int_t GetStatus() const { return 0; };
102 virtual Int_t GetDaughterIndex(Int_t /*i*/) { return 0; };
107 virtual Bool_t IsPrimary() const { return kTRUE; };
113 void SetRawTrack(TObject* source, Int_t obj = 0) { fRawObject[obj] = source; };
119 TObject* GetSource(Int_t obj = 0) const { return fRawObject[obj]; };
120 virtual ~TrackInterface();
121 ClassDef(TrackInterface, 1)
122 };
123} // namespace Hal
124#endif /* HALROOT_DATAFORMAT_HALTRACKINTERFACE_H_ */
virtual void SetPxPyPzE(Double_t, Double_t, Double_t, Double_t)
virtual Double_t GetPz() const
virtual Int_t GetStatus() const
virtual void SetMotherIndex(Int_t)
virtual void SetCharge(Double_t)
virtual Int_t GetDaughterIndex(Int_t)
TObject * GetSource(Int_t obj=0) const
virtual void SetStatus(Int_t)
virtual void SetPrimary(Int_t)
virtual Double_t GetCharge() const
void SetRawTrack(TObject *source, Int_t obj=0)
virtual Double_t GetPx() const
virtual Double_t GetPy() const
virtual Int_t GetMotherIndex() const
virtual void SetID(Int_t)
virtual Double_t GetE() const
virtual Bool_t IsPrimary() const
virtual Int_t GetID() const