13#include <AnalysisTree/Constants.hpp>
15#include <Hal/ComplexEvent.h>
16#include <Hal/ComplexEventInterface.h>
17#include <Hal/ComplexTrack.h>
24 Hal::ComplexEventInterface* interf =
static_cast<Hal::ComplexEventInterface*
>(interface);
25 fImgEvent->Update(interf->GetImag());
26 fRealEvent->Update(interf->GetReal());
27 Hal::Event::ShallowCopyEvent(fRealEvent);
29 fTotalTracksNo = fRealEvent->GetTotalTrackNo();
30 fTracks->ExpandCreateFast(fTotalTracksNo);
57 for (Int_t i = 0; i < fTotalTracksNo; i++) {
58 Hal::ComplexTrack* track = (Hal::ComplexTrack*) fTracks->UncheckedAt(i);
59 track->ResetTrack(i,
this);
60 track->SetRealTrack(fRealEvent->GetTrack(i));
61 track->Hal::Track::CopyData(fRealEvent->GetTrack(i));
62 Int_t match = vecToSim->GetMatchDirect(i);
64 if (match < 0 || match == AnalysisTree::UndefValueInt) {
65 track->SetImgTrack(
nullptr);
68 track->SetImgTrack(fImgEvent->GetTrack(match));
69 track->SetMatchID(match);
78 for (Int_t i = 0; i < fTotalTracksNo; i++) {
79 Hal::ComplexTrack* track = (Hal::ComplexTrack*) fTracks->UncheckedAt(i);
80 track->ResetTrack(i,
this);
81 track->SetRealTrack(fRealEvent->GetTrack(i));
82 track->Hal::Track::CopyData(fRealEvent->GetTrack(i));
89 track->SetImgTrack(fImgEvent->GetTrack(mcId));
90 track->SetMatchID(mcId);
AnalysisTree::Matching * GetVtx2Sim() const
int32_t GetStsTrackIndex() const
const CbmLink & GetMatchedLink() const
CbmAnaTreeRecoSourceContainer * GetContainer() const
TClonesArray * fGlobalTracks
HalCbm::DataFormat GetFormatType() const
void UpdateDst(Hal::ComplexEventInterface *interface)
void UpdateAnalysisTree(Hal::ComplexEventInterface *interface)
virtual void Update(Hal::EventInterface *interface)
virtual ~HalCbmFullEvent()
virtual Hal::Event * GetNewEvent() const
TClonesArray * fStsMatches