CbmRoot
NicaUnigenEventInterface.h
Go to the documentation of this file.
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 <TObject.h>
13 
14 #include "NicaEventInterface.h"
15 #include "NicaUnigenEvent.h"
16 
21 class NicaUnigenEventInterface : public NicaEventInterface {
22  friend class NicaUnigenEvent;
24 
25 protected:
26  virtual void ConnectToTree();
27 #ifdef UNIGEN_OLD
28  void CopyUnigen(UEvent* from, UEvent* to);
29 #endif
30 public:
32  virtual Int_t GetTotalTrackNo() const { return fEvent->GetNpa(); }
33  virtual void Boost(Double_t vx, Double_t vy, Double_t vz);
34  virtual void Register(Bool_t write);
35  virtual void Compress(Int_t* map, Int_t map_size);
36  virtual void CopyData(NicaEventInterface* s);
37  virtual void
38  CopyAndCompress(NicaEventInterface* s, Int_t* map, Int_t map_size);
39  virtual void FillTrackInterface(NicaTrackInterface* track, Int_t index);
40  TObject* GetRawEventPointer() const { return fEvent; };
41  virtual TObject* GetRawTrackPointer(Int_t index) const {
42  return fEvent->GetParticle(index);
43  };
44  virtual NicaTrackInterface* GetTrackInterface() const;
45  virtual void Clear(Option_t* opt = "") { fEvent->Clear(opt); };
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*/) {
50  fEvent->SetPhi(phi);
51  };
52  virtual Double_t GetB() const { return fEvent->GetB(); };
53  virtual Double_t GetPhi() const { return fEvent->GetPhi(); };
54  virtual ~NicaUnigenEventInterface();
55  ClassDef(NicaUnigenEventInterface, 1)
56 };
57 
58 #endif /* NICAUNIGENEVENTINTERFACE_H_ */
UEvent::GetPhi
Double_t GetPhi() const
Definition: UEvent.h:33
UEvent::GetB
Double_t GetB() const
Definition: UEvent.h:32
NicaUnigenEventInterface::GetTrackInterface
virtual NicaTrackInterface * GetTrackInterface() const
Definition: NicaUnigenEventInterface.cxx:84
NicaUnigenEventInterface::ConnectToTree
virtual void ConnectToTree()
Definition: NicaUnigenEventInterface.cxx:58
UEvent::GetNpa
Int_t GetNpa() const
Definition: UEvent.h:37
NicaUnigenEventInterface::Clear
virtual void Clear(Option_t *opt="")
Definition: NicaUnigenEventInterface.h:45
NicaUnigenEventInterface::FillTrackInterface
virtual void FillTrackInterface(NicaTrackInterface *track, Int_t index)
Definition: NicaUnigenEventInterface.cxx:94
NicaUnigenEventInterface::CopyData
virtual void CopyData(NicaEventInterface *s)
Definition: NicaUnigenEventInterface.cxx:28
NicaUnigenEvent.h
NicaUnigenEventInterface::SetVertex
virtual void SetVertex(Double_t, Double_t, Double_t)
Definition: NicaUnigenEventInterface.h:48
UEvent
Definition: UEvent.h:12
NicaUnigenEventInterface::CopyAndCompress
virtual void CopyAndCompress(NicaEventInterface *s, Int_t *map, Int_t map_size)
Definition: NicaUnigenEventInterface.cxx:36
NicaUnigenEventInterface::Boost
virtual void Boost(Double_t vx, Double_t vy, Double_t vz)
Definition: NicaUnigenEventInterface.cxx:66
NicaUnigenEventInterface::GetTotalTrackNo
virtual Int_t GetTotalTrackNo() const
Definition: NicaUnigenEventInterface.h:32
UEvent::SetB
void SetB(Double_t b)
Definition: UEvent.h:49
NicaUnigenEventInterface::~NicaUnigenEventInterface
virtual ~NicaUnigenEventInterface()
Definition: NicaUnigenEventInterface.cxx:78
NicaUnigenEventInterface::SetPhi
virtual void SetPhi(Double_t phi, Double_t)
Definition: NicaUnigenEventInterface.h:49
UEvent::GetParticle
UParticle * GetParticle(Int_t index) const
Definition: UEvent.cxx:92
NicaUnigenEventInterface::NicaUnigenEventInterface
NicaUnigenEventInterface()
Definition: NicaUnigenEventInterface.cxx:13
NicaUnigenEventInterface::GetB
virtual Double_t GetB() const
Definition: NicaUnigenEventInterface.h:52
NicaUnigenEvent
Definition: NicaUnigenEvent.h:20
NicaUnigenEventInterface::GetRawEventPointer
TObject * GetRawEventPointer() const
Definition: NicaUnigenEventInterface.h:40
NicaUnigenEventInterface::GetRawTrackPointer
virtual TObject * GetRawTrackPointer(Int_t index) const
Definition: NicaUnigenEventInterface.h:41
NicaUnigenEventInterface::Compress
virtual void Compress(Int_t *map, Int_t map_size)
Definition: NicaUnigenEventInterface.cxx:17
NicaUnigenEventInterface
Definition: NicaUnigenEventInterface.h:21
NicaUnigenEventInterface::fEvent
UEvent * fEvent
Definition: NicaUnigenEventInterface.h:23
NicaUnigenEventInterface::Register
virtual void Register(Bool_t write)
Definition: NicaUnigenEventInterface.cxx:88
NicaUnigenEventInterface::SetB
virtual void SetB(Double_t b)
Definition: NicaUnigenEventInterface.h:47
UEvent::SetPhi
void SetPhi(Double_t phi)
Definition: UEvent.h:50
UEvent::Clear
void Clear(Option_t *="")
Definition: UEvent.cxx:221
NicaUnigenEventInterface::GetPhi
virtual Double_t GetPhi() const
Definition: NicaUnigenEventInterface.h:53