Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
ComplexEvent.h
1/*
2 * EventCombined.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 HALCOMPLEXEVENT_H_
10#define HALCOMPLEXEVENT_H_
11
12#include "Event.h"
13
14#include <TString.h>
15
16#include "Std.h"
17
23namespace Hal {
24 class CompressionMap;
25 class ComplexEvent : public Event {
26 protected:
27 static CompressionMap fgCompressionMap;
28 Event* fRealEvent;
29 Event* fImgEvent;
30 void CalculateCompressionMapImg(const CompressionMap& map, ComplexEvent* event);
31 void ShallowCopyTracks(Event* event);
32 void ShallowCopyCompressTracks(Event* event, const CompressionMap& map);
33 void ShallowCopyEvent(Event* event);
34 ComplexEvent(TString track_class, Event* real, Event* img);
35
36 public:
37 ComplexEvent(Event* real = NULL, Event* img = NULL);
38 ComplexEvent(const ComplexEvent& other);
40 virtual void Clear(Option_t* opt = " ");
41 virtual void Update(EventInterface* interface);
42 virtual Bool_t HasHiddenSettings() const;
43 virtual Bool_t ExistInTree() const;
44 virtual Bool_t IsCompatible(const Event* non_buffered) const;
45 virtual Float_t GetFieldVal(Int_t fieldID) const;
46 virtual TString GetFieldName(Int_t fieldID) const;
47 virtual EFormatType GetFormatType() const { return EFormatType::kComplexReco; };
48 Event* GetImgEvent() const { return fImgEvent; };
49 Event* GetRealEvent() const { return fRealEvent; };
50 Track* GetNewImgTrack() const { return fImgEvent->GetNewTrack(); };
51 Track* GetNewRealTrack() const { return fRealEvent->GetNewTrack(); };
52 virtual ~ComplexEvent();
53 ClassDef(ComplexEvent, 1)
54 };
55} // namespace Hal
56#endif /* HALCOMPLEXEVENT_H_ */
virtual Float_t GetFieldVal(Int_t fieldID) const
void ShallowCopyEvent(Event *event)
void ShallowCopyCompressTracks(Event *event, const CompressionMap &map)
virtual Bool_t IsCompatible(const Event *non_buffered) const
virtual Bool_t HasHiddenSettings() const
virtual TString GetFieldName(Int_t fieldID) const
virtual EFormatType GetFormatType() const
virtual Bool_t ExistInTree() const
void ShallowCopyTracks(Event *event)
virtual void Update(EventInterface *interface)
virtual void Clear(Option_t *opt=" ")
EventInterface * CreateInterface() const
Track * GetNewTrack() const
Definition Event.cxx:204