CbmRoot
Loading...
Searching...
No Matches
HalCbmUnigenEventInterface.h
Go to the documentation of this file.
1/* Copyright (C) 2023-2023 Warsaw University of Technology, Warsaw
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Daniel Wielanek [committer] */
4#ifndef NICAUNIGENEVENTINTERFACE_H_
5#define NICAUNIGENEVENTINTERFACE_H_
6
7#include "HalCbmUnigenEvent.h"
8
9#include <TObject.h>
10
11#include <Hal/EventInterfaceAdvanced.h>
12
18namespace Hal
19{
20 class TrackInterface;
21}
22
23class HalCbmUnigenEventInterface : public Hal::EventInterfaceAdvanced {
24 friend class HalCbmUnigenEvent;
26
27 protected:
28 virtual void ConnectToTreeInternal(EventInterface::eMode mode);
29#ifdef UNIGEN_OLD
30 void CopyUnigen(UEvent* from, UEvent* to);
31#endif
32 public:
34 virtual Int_t GetTotalTrackNo() const { return fEvent->GetNpa(); }
35 virtual void Boost(Double_t vx, Double_t vy, Double_t vz);
36 virtual void Register(Bool_t write);
37 virtual void Compress(Int_t* map, Int_t map_size);
38 virtual void CopyData(Hal::EventInterface* s);
39 virtual void CopyAndCompress(Hal::EventInterface* s, Int_t* map, Int_t map_size);
40 virtual void FillTrackInterface(Hal::TrackInterface* track, Int_t index);
41 TObject* GetRawEventPointer() const { return fEvent; };
42 virtual TObject* GetRawTrackPointer(Int_t index) const { return fEvent->GetParticle(index); };
43 virtual Hal::TrackInterface* GetTrackInterface() const;
44 virtual void Clear(Option_t* opt = "") { fEvent->Clear(opt); };
46 virtual void SetB(Double_t b) { fEvent->SetB(b); };
47 virtual void SetVertex(Double_t /*x*/, Double_t /*y*/, Double_t /*z*/){};
48 virtual void SetPhi(Double_t phi, Double_t /*phi_error*/) { fEvent->SetPhi(phi); };
49 virtual Double_t GetB() const { return fEvent->GetB(); };
50 virtual Double_t GetPhi() const { return fEvent->GetPhi(); };
53};
54
55#endif /* NICAUNIGENEVENTINTERFACE_H_ */
virtual void FillTrackInterface(Hal::TrackInterface *track, Int_t index)
virtual void CopyAndCompress(Hal::EventInterface *s, Int_t *map, Int_t map_size)
virtual void Boost(Double_t vx, Double_t vy, Double_t vz)
virtual void ConnectToTreeInternal(EventInterface::eMode mode)
virtual void Compress(Int_t *map, Int_t map_size)
virtual void CopyData(Hal::EventInterface *s)
virtual Hal::TrackInterface * GetTrackInterface() const
virtual void SetVertex(Double_t, Double_t, Double_t)
virtual void Register(Bool_t write)
virtual void SetPhi(Double_t phi, Double_t)
virtual TObject * GetRawTrackPointer(Int_t index) const
virtual void Clear(Option_t *opt="")
void SetPhi(Double_t phi)
Definition UEvent.h:50
Int_t GetNpa() const
Definition UEvent.h:42
Double_t GetPhi() const
Definition UEvent.h:38
void Clear(Option_t *="")
Definition UEvent.cxx:183
void SetB(Double_t b)
Definition UEvent.h:49
UParticle * GetParticle(Int_t index) const
Definition UEvent.cxx:101
Double_t GetB() const
Definition UEvent.h:37