CbmRoot
NicaCbmGlobalEventInterface.h
Go to the documentation of this file.
1 /*
2  * NicaCbmEventInterface.h
3  *
4  * Created on: 3 gru 2018
5  * Author: Daniel Wielanek
6  * E-mail: daniel.wielanek@gmail.com
7  * Warsaw University of Technology, Faculty of Physics
8  */
9 #ifndef NICACBMGLOBALEVENTINTERFACE_H_
10 #define NICACBMGLOBALEVENTINTERFACE_H_
11 
12 #include "CbmVertex.h"
14 #include "NicaExpEventInterface.h"
15 #include "NicaTrackClones.h"
16 #include "TClonesArray.h"
17 
18 
19 class NicaCbmGlobalEventInterface : public NicaExpEventInterface {
20 protected:
22  NicaTrackClones* fTracks;
23  virtual void ConnectToTree();
24  void Register(Bool_t write);
25 
26 public:
28  virtual void CopyData(NicaEventInterface* s);
29  virtual void Compress(Int_t* map, Int_t map_size);
30  virtual void
31  CopyAndCompress(NicaEventInterface* s, Int_t* map, Int_t map_size);
32  virtual void FillTrackInterface(NicaTrackInterface* track, Int_t index);
33  virtual Int_t GetTotalTrackNo() const;
34  virtual TObject* GetRawEventPointer() const { return fVertex; };
35  virtual NicaTrackInterface* GetTrackInterface() const {
36  return new NicaCbmGlobalTrackInterface();
37  }
38  virtual TObject* GetRawTrackPointer(Int_t index) const;
40  virtual void SetRunInfoId(Int_t /*i*/) {};
41  virtual Int_t GetRunInfoId() const { return 0; };
42  ;
43  virtual void SetMagneticField(TVector3 /*mag*/) const {};
44  virtual TVector3 GetMagneticField() const { return TVector3(0, 0, 0); };
45  virtual TLorentzVector GetVertexError() const;
46  virtual TLorentzVector GetVertex() const;
48  ClassDef(NicaCbmGlobalEventInterface, 1)
49 };
50 
51 #endif /* NICACBMGLOBALEVENTINTERFACE_H_ */
CbmVertex.h
NicaCbmGlobalEventInterface::ConnectToTree
virtual void ConnectToTree()
Definition: NicaCbmGlobalEventInterface.cxx:27
NicaCbmGlobalEventInterface::GetVertexError
virtual TLorentzVector GetVertexError() const
Definition: NicaCbmGlobalEventInterface.cxx:75
NicaCbmGlobalEventInterface::Register
void Register(Bool_t write)
Definition: NicaCbmGlobalEventInterface.cxx:37
NicaCbmGlobalEventInterface::CopyAndCompress
virtual void CopyAndCompress(NicaEventInterface *s, Int_t *map, Int_t map_size)
Definition: NicaCbmGlobalEventInterface.cxx:53
NicaCbmGlobalEventInterface::fVertex
CbmVertex * fVertex
Definition: NicaCbmGlobalEventInterface.h:21
NicaCbmGlobalEventInterface::GetRunInfoId
virtual Int_t GetRunInfoId() const
Definition: NicaCbmGlobalEventInterface.h:41
NicaCbmGlobalTrackInterface.h
NicaCbmGlobalEventInterface::NicaCbmGlobalEventInterface
NicaCbmGlobalEventInterface()
Definition: NicaCbmGlobalEventInterface.cxx:21
NicaCbmGlobalEventInterface::GetRawEventPointer
virtual TObject * GetRawEventPointer() const
Definition: NicaCbmGlobalEventInterface.h:34
NicaCbmGlobalEventInterface
Definition: NicaCbmGlobalEventInterface.h:19
NicaCbmGlobalEventInterface::Compress
virtual void Compress(Int_t *map, Int_t map_size)
Definition: NicaCbmGlobalEventInterface.cxx:49
NicaCbmGlobalTrackInterface
Definition: NicaCbmGlobalTrackInterface.h:14
NicaCbmGlobalEventInterface::FillTrackInterface
virtual void FillTrackInterface(NicaTrackInterface *track, Int_t index)
Definition: NicaCbmGlobalEventInterface.cxx:61
CbmVertex
Definition: CbmVertex.h:26
NicaCbmGlobalEventInterface::GetMagneticField
virtual TVector3 GetMagneticField() const
Definition: NicaCbmGlobalEventInterface.h:44
NicaCbmGlobalEventInterface::~NicaCbmGlobalEventInterface
virtual ~NicaCbmGlobalEventInterface()
Definition: NicaCbmGlobalEventInterface.cxx:83
NicaCbmGlobalEventInterface::SetMagneticField
virtual void SetMagneticField(TVector3) const
Definition: NicaCbmGlobalEventInterface.h:43
NicaCbmGlobalEventInterface::SetRunInfoId
virtual void SetRunInfoId(Int_t)
Definition: NicaCbmGlobalEventInterface.h:40
NicaCbmGlobalEventInterface::GetTotalTrackNo
virtual Int_t GetTotalTrackNo() const
Definition: NicaCbmGlobalEventInterface.cxx:67
NicaCbmGlobalEventInterface::GetVertex
virtual TLorentzVector GetVertex() const
Definition: NicaCbmGlobalEventInterface.cxx:79
NicaCbmGlobalEventInterface::GetTrackInterface
virtual NicaTrackInterface * GetTrackInterface() const
Definition: NicaCbmGlobalEventInterface.h:35
NicaCbmGlobalEventInterface::GetRawTrackPointer
virtual TObject * GetRawTrackPointer(Int_t index) const
Definition: NicaCbmGlobalEventInterface.cxx:71
NicaCbmGlobalEventInterface::fTracks
NicaTrackClones * fTracks
Definition: NicaCbmGlobalEventInterface.h:22
NicaCbmGlobalEventInterface::CopyData
virtual void CopyData(NicaEventInterface *s)
Definition: NicaCbmGlobalEventInterface.cxx:43