12#include "MemoryMapManager.h"
14#include "CutCollection.h"
15#include "CutContainer.h"
17#include "TrackVirtualCut.h"
20 TrackAna::TrackAna(ECutUpdate tiers) :
21 EventAna(tiers), fTrackCollectionsNo(0), fCurrentTrackCollectionID(0), fTrackIndex(0), fCurrentTrack(nullptr) {}
25 fTrackCollectionsNo(ana.fTrackCollectionsNo),
26 fCurrentTrackCollectionID(ana.fCurrentTrackCollectionID),
27 fTrackIndex(ana.fTrackIndex),
28 fCurrentTrack(NULL) {}
35 for (
int j = 0; j < cont->
GetNextNo(); j++) {
51 return Task::EInitFlag::kSUCCESS;
53 return Task::EInitFlag::kFATAL;
63 Int_t jump = trackCollections / eventCollections;
65 Cout::PrintInfo(
"Too many event collections, some of them will be ignored", EInfo::kLowWarning);
68 if (trackCollections != jump * eventCollections) {
69 Cout::PrintInfo(
"Some track collections will be ignored", EInfo::kLowWarning);
71 for (
int i = 0; i < eventCollections; i++) {
72 for (
int j = i * jump; j < (i + 1) * jump; j++) {
81 if (trackCollections == 0) {
83 Cout::PrintInfo(
"No track collections, virtual will be added", EInfo::kDebugInfo);
92 TrackAna::~TrackAna() {}
102 if (
this != &other) {
static void PrintInfo(TString text, Hal::EInfo status)
Int_t GetNextAddr(Int_t index) const
void LinkCollections(ECutUpdate opt_low, Int_t in_low, ECutUpdate opt_high, Int_t in_high)
void AddCut(const Cut &cut, Option_t *opt=" ")
Int_t GetEventCollectionsNo() const
CutCollection * GetEventCollection(Int_t collection) const
Int_t GetTrackCollectionsNo() const
Bool_t PassTrack(Track *track, const Int_t collection)
CutContainer * fCutContainer
virtual void CheckCutContainerCollections()
virtual void SetOption(Option_t *opt)
MemoryMapManager * fMemoryMap
EventAna & operator=(const EventAna &other)
virtual Package * Report() const
virtual void FinishTask()
Int_t fCurrentEventCollectionID
virtual void Exec(Option_t *opt)
virtual Task::EInitFlag Init()
Track * GetTrack(Int_t i) const
void AddTrackToMapTrack(Int_t event_collection, Int_t track_collection, Int_t index)
Int_t GetTemporaryTotalTracksNo() const
void PrepareMaps(Int_t collection)
virtual void Exec(Option_t *opt)
virtual Task::EInitFlag Init()
Int_t fCurrentTrackCollectionID
virtual Package * Report() const
virtual void FinishTask()
virtual void ProcessEvent()
Int_t fTrackCollectionsNo
virtual void SetOption(Option_t *option)
virtual void ProcessTrack()
virtual void CheckCutContainerCollections()
virtual void LinkCollections()