Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
UnigenEventInterface.h
1/*
2 * NicaUnigenSource.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 NICAUNIGENEVENTINTERFACE_H_
10#define NICAUNIGENEVENTINTERFACE_H_
11
12#include "UnigenEvent.h"
13
14#include <TObject.h>
15
16#include "EventInterfaceAdvanced.h"
17
23namespace Hal {
24 class TrackInterface;
25}
26namespace HalUni {
28 friend class UnigenEvent;
29 UEvent* fEvent;
30
31 protected:
32 virtual void ConnectToTreeInternal(eMode mode);
33
34 public:
36 virtual Int_t GetTotalTrackNo() const { return fEvent->GetNpa(); }
37 virtual void Boost(Double_t vx, Double_t vy, Double_t vz);
38 virtual void Register(Bool_t write);
39 virtual void Compress(Int_t* map, Int_t map_size);
40 virtual void CopyData(Hal::EventInterface* s);
41 virtual void CopyAndCompress(Hal::EventInterface* s, Int_t* map, Int_t map_size);
42 virtual void FillTrackInterface(Hal::TrackInterface* track, Int_t index);
43 TObject* GetRawEventPointer() const { return fEvent; };
44 virtual TObject* GetRawTrackPointer(Int_t index) const { return fEvent->GetParticle(index); };
45 virtual void Clear(Option_t* /*opt*/ = "") { fEvent->Clear(); };
47 virtual void SetB(Double_t b) { fEvent->SetB(b); };
48 virtual void SetVertex(Double_t /*x*/, Double_t /*y*/, Double_t /*z*/) {};
49 virtual void SetPhi(Double_t phi, Double_t /*phi_error*/) { fEvent->SetPhi(phi); };
50 virtual Double_t GetB() const { return fEvent->GetB(); };
51 virtual Double_t GetPhi() const { return fEvent->GetPhi(); };
52 virtual ~UnigenEventInterface();
53 ClassDef(UnigenEventInterface, 1)
54 };
55} // namespace HalUni
56#endif /* NICAUNIGENEVENTINTERFACE_H_ */
virtual Int_t GetTotalTrackNo() const
virtual void Boost(Double_t vx, Double_t vy, Double_t vz)
virtual Double_t GetPhi() const
virtual void SetB(Double_t b)
virtual TObject * GetRawTrackPointer(Int_t index) const
virtual void Compress(Int_t *map, Int_t map_size)
virtual void FillTrackInterface(Hal::TrackInterface *track, Int_t index)
virtual void CopyData(Hal::EventInterface *s)
virtual void SetVertex(Double_t, Double_t, Double_t)
virtual void CopyAndCompress(Hal::EventInterface *s, Int_t *map, Int_t map_size)
virtual void Clear(Option_t *="")
virtual void SetPhi(Double_t phi, Double_t)