Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::EventAnaChain Class Reference
Inheritance diagram for Hal::EventAnaChain:
Hal::EventAna Hal::Task

Public Member Functions

virtual void Exec (Option_t *opt)
 
virtual void AddAnalysis (EventAna *ana)
 
virtual void FinishTask ()
 
- Public Member Functions inherited from Hal::EventAna
 EventAna ()
 
 EventAna (const EventAna &ana)
 
EventAnaoperator= (const EventAna &other)
 
virtual void AddTags (TString tag)
 
virtual void AddCut (const Cut &cut, Option_t *opt="")
 
virtual void AddCutMonitor (const CutMonitor &mon, Option_t *opt="")
 
virtual void AddCutsAndMonitors (const CutsAndMonitors &monCuts)
 
virtual void SetOption (Option_t *opt)
 
void SetFormatOption (EFormatOption option)
 
virtual void SetComment (TString comment)
 
virtual void SetFormat (Event *format, EFormatDepth depth=EFormatDepth::kAll)
 
virtual ~EventAna ()
 
- Public Member Functions inherited from Hal::Task
 Task ()
 

Protected Member Functions

virtual void RemoveTask (Int_t no)
 
virtual void ProcessEvent ()
 
virtual PackageReport () const
 
virtual void LinkTask (EventAna *ana) const
 
virtual void UnlinkTask (EventAna *ana) const
 
virtual void SynchronizeCutContainers (EventAna *ana, Bool_t end) const
 
virtual Task::EInitFlag Init ()
 
- Protected Member Functions inherited from Hal::EventAna
TString GetInputFileName () const
 
void SetInputFileName (TString name)
 
virtual void InitMemoryMap ()
 
Bool_t IsInChain () const
 
void MarkAsInChain ()
 
void AddToAnaMetadata (Package *main_pack, TObject *obj) const
 
Task::EInitFlag InitCutContainer ()
 
virtual Task::EInitFlag CheckFormat ()
 
Int_t GetTaskID () const
 
virtual void LinkCollections ()
 
virtual void InitNewCutContainer ()
 
virtual void CheckCutContainerCollections ()
 
 EventAna (ECutUpdate tiers)
 
- Protected Member Functions inherited from Hal::Task
void GoToDir (TString name)
 

Additional Inherited Members

- Public Types inherited from Hal::EventAna
enum class  EFormatOption {
  kCompress , kNoCompress , kKeepSource , kNoKeepSource ,
  kDirectAccess , kNoDirectAccess , kReaderAccess , kNoReaderAcces ,
  kDisableChecking , kStandardAcess
}
 
- Public Types inherited from Hal::Task
enum class  EInitFlag { kSUCCESS , kERROR , kFATAL }
 
- Protected Types inherited from Hal::EventAna
enum  eBitFormat {
  kCompression = 0 , kSource = 1 , kDirectAcesss = 2 , kReader = 3 ,
  kChecking = 4
}
 
- Protected Attributes inherited from Hal::EventAna
Int_t fFormatOption
 
UInt_t fProcessedEvents
 
Int_t fMixSize
 
Int_t fEventCollectionsNo
 
Int_t fCurrentEventCollectionID
 
const ECutUpdate fTiers
 
TDatabasePDG * fPDG
 
CutContainerfCutContainer
 
MemoryMapManagerfMemoryMap
 
EventfCurrentEvent
 
TString fComment
 
Int_t fInit
 

Detailed Description

Definition at line 20 of file EventAnaChain.h.

Constructor & Destructor Documentation

◆ EventAnaChain()

Hal::EventAnaChain::EventAnaChain ( )

Definition at line 29 of file EventAnaChain.cxx.

◆ ~EventAnaChain()

Hal::EventAnaChain::~EventAnaChain ( )
virtual

Definition at line 174 of file EventAnaChain.cxx.

Member Function Documentation

◆ AddAnalysis()

void Hal::EventAnaChain::AddAnalysis ( EventAna * ana)
virtual

add subtask

Parameters
anasubtask

Definition at line 39 of file EventAnaChain.cxx.

◆ Exec()

void Hal::EventAnaChain::Exec ( Option_t * opt)
virtual

called for each event

Parameters
optnot used

Reimplemented from Hal::EventAna.

Definition at line 131 of file EventAnaChain.cxx.

◆ FinishTask()

void Hal::EventAnaChain::FinishTask ( )
virtual

called at the end of analysis save resutls

Reimplemented from Hal::EventAna.

Definition at line 75 of file EventAnaChain.cxx.

◆ Init()

Task::EInitFlag Hal::EventAnaChain::Init ( )
protectedvirtual

initialize task, in principle all derived classes should usually call this method, this method do following steps:

  1. SetInputFile() - set name of the input file
  2. SetFormatOption(EFormatOption::kReaderAccess) - set reader format if no format is set
  1. InitNewCutContainer() - init new container if no container is set
  2. CheckCutContainerCollections()
  3. LinkCollections()
  4. fCutContainer->Init(GetTaskID())
Returns
status of initialization

Reimplemented from Hal::EventAna.

Definition at line 113 of file EventAnaChain.cxx.

◆ LinkTask()

void Hal::EventAnaChain::LinkTask ( EventAna * ana) const
protectedvirtual

overwrite ana data holders with this data holders

Parameters
ana

Definition at line 162 of file EventAnaChain.cxx.

◆ ProcessEvent()

void Hal::EventAnaChain::ProcessEvent ( )
protectedvirtual

process event, can be be overwritten in derived classes

Reimplemented from Hal::EventAna.

Definition at line 106 of file EventAnaChain.cxx.

◆ RemoveTask()

void Hal::EventAnaChain::RemoveTask ( Int_t no)
protectedvirtual

remove task from chain

Parameters
no

Definition at line 141 of file EventAnaChain.cxx.

◆ Report()

Package * Hal::EventAnaChain::Report ( ) const
protectedvirtual

create report that will be saved, derived classes should call this method for base class and add own objects

Returns
report from analysis

Reimplemented from Hal::EventAna.

Definition at line 31 of file EventAnaChain.cxx.

◆ SynchronizeCutContainers()

void Hal::EventAnaChain::SynchronizeCutContainers ( EventAna * ana,
Bool_t end ) const
protectedvirtual

synchronize cut monitors and cuts

Parameters
ana
end- if yes then links to higher cuts are linked - this value should be true before ana->Init() and false later

Definition at line 170 of file EventAnaChain.cxx.

◆ UnlinkTask()

void Hal::EventAnaChain::UnlinkTask ( EventAna * ana) const
protectedvirtual

disconnect ana data holders with this data holders

Parameters
ana

Definition at line 168 of file EventAnaChain.cxx.


The documentation for this class was generated from the following files: