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

Public Member Functions

 SpectraAna ()
 
void SetPtAxis (Int_t bins, Double_t min, Double_t max)
 
void SetMtAxis (Int_t bins, Double_t min, Double_t max)
 
void SetYAxis (Int_t bins, Double_t min, Double_t max)
 
void SetEtaAxis (Int_t bins, Double_t min, Double_t max)
 
void SetEventCollectionName (TString name, Int_t event_collection=0)
 
void SetTrackCollectionName (TString name, Int_t track_collection=0)
 
void SetMass (Double_t mass, Int_t track_collection)
 
void SetOption (Option_t *opt)
 
- Public Member Functions inherited from Hal::TrackAna
 TrackAna (const TrackAna &ana)
 
TrackAnaoperator= (const TrackAna &other)
 
virtual void Exec (Option_t *opt)
 
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)
 
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 ProcessTrack ()
 
virtual Task::EInitFlag Init ()
 
PackageReport () const
 
- Protected Member Functions inherited from Hal::TrackAna
virtual void ProcessEvent ()
 
virtual void LinkCollections ()
 
virtual void CheckCutContainerCollections ()
 
 TrackAna (ECutUpdate tiers)
 
- 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 InitNewCutContainer ()
 
 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::TrackAna
Int_t fTrackCollectionsNo
 
Int_t fCurrentTrackCollectionID
 
Int_t fTrackIndex
 
TrackfCurrentTrack
 
- 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 22 of file SpectraAna.h.

Constructor & Destructor Documentation

◆ SpectraAna()

Hal::SpectraAna::SpectraAna ( )

default constructor

Definition at line 30 of file SpectraAna.cxx.

◆ ~SpectraAna()

Hal::SpectraAna::~SpectraAna ( )
virtual

Definition at line 290 of file SpectraAna.cxx.

Member Function Documentation

◆ Init()

Task::EInitFlag Hal::SpectraAna::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::TrackAna.

Definition at line 111 of file SpectraAna.cxx.

◆ ProcessTrack()

void Hal::SpectraAna::ProcessTrack ( )
protectedvirtual

method for processing track, should be overwritten in derived class if they process tracks

Reimplemented from Hal::TrackAna.

Definition at line 54 of file SpectraAna.cxx.

◆ Report()

Package * Hal::SpectraAna::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::TrackAna.

Definition at line 87 of file SpectraAna.cxx.

◆ SetEtaAxis()

void Hal::SpectraAna::SetEtaAxis ( Int_t bins,
Double_t min,
Double_t max )

configure pseudorapidity axis

Parameters
bins
min
max

Definition at line 197 of file SpectraAna.cxx.

◆ SetEventCollectionName()

void Hal::SpectraAna::SetEventCollectionName ( TString name,
Int_t event_collection = 0 )

set name for event collection (later used for naming histograms)

Parameters
name
event_collection

Definition at line 203 of file SpectraAna.cxx.

◆ SetMass()

void Hal::SpectraAna::SetMass ( Double_t mass,
Int_t track_collection )

set mass for given track (if energy is not available from data), if user set mass for one track collection - then should set mass for all track collections

Parameters
mass
track_collection

Definition at line 235 of file SpectraAna.cxx.

◆ SetMtAxis()

void Hal::SpectraAna::SetMtAxis ( Int_t bins,
Double_t min,
Double_t max )

configure mt axis

Parameters
bins
min
max

Definition at line 185 of file SpectraAna.cxx.

◆ SetOption()

void Hal::SpectraAna::SetOption ( Option_t * opt)
virtual

like for TrackAna + additionaly option

Parameters
optif "auto" then track collections are configured in automatic mode, if user want to make analysis as function of event collections all event collections must be added before calling this options

Reimplemented from Hal::TrackAna.

Definition at line 241 of file SpectraAna.cxx.

◆ SetPtAxis()

void Hal::SpectraAna::SetPtAxis ( Int_t bins,
Double_t min,
Double_t max )

configure pt axis

Parameters
bins
min
max

Definition at line 179 of file SpectraAna.cxx.

◆ SetTrackCollectionName()

void Hal::SpectraAna::SetTrackCollectionName ( TString name,
Int_t track_collection = 0 )

set name fot track collection (used for naming histograms)

Parameters
name
track_collection

Definition at line 209 of file SpectraAna.cxx.

◆ SetYAxis()

void Hal::SpectraAna::SetYAxis ( Int_t bins,
Double_t min,
Double_t max )

configure rapdity axis

Parameters
bins
min
max

Definition at line 191 of file SpectraAna.cxx.


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