Heavy ion Analysis Libriares
|
#include <EventAna.h>
Public Types | |
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 } |
Public Member Functions | |
EventAna () | |
EventAna (const EventAna &ana) | |
EventAna & | operator= (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 | Exec (Option_t *opt) |
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 void | FinishTask () |
virtual | ~EventAna () |
Public Member Functions inherited from Hal::Task | |
Task () | |
Protected Types | |
enum | eBitFormat { kCompression = 0 , kSource = 1 , kDirectAcesss = 2 , kReader = 3 , kChecking = 4 } |
Protected Member Functions | |
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 | ProcessEvent () |
virtual void | InitNewCutContainer () |
virtual void | CheckCutContainerCollections () |
virtual Package * | Report () const |
virtual Task::EInitFlag | Init () |
EventAna (ECutUpdate tiers) | |
Protected Member Functions inherited from Hal::Task | |
void | GoToDir (TString name) |
Protected Attributes | |
Int_t | fFormatOption |
UInt_t | fProcessedEvents |
Int_t | fMixSize |
Int_t | fEventCollectionsNo |
Int_t | fCurrentEventCollectionID |
const ECutUpdate | fTiers |
TDatabasePDG * | fPDG |
CutContainer * | fCutContainer |
MemoryMapManager * | fMemoryMap |
Event * | fCurrentEvent |
TString | fComment |
Int_t | fInit |
Base class for physical analysis
Definition at line 36 of file EventAna.h.
|
protected |
Definition at line 49 of file EventAna.h.
|
strong |
flags for setting format options NOTE: some of these flags might disable other
Definition at line 213 of file EventAna.h.
|
protected |
|
inline |
basic constructor
Definition at line 237 of file EventAna.h.
Hal::EventAna::EventAna | ( | const EventAna & | ana | ) |
|
virtual |
default dtor
Definition at line 252 of file EventAna.cxx.
|
virtual |
add cut object
cut | |
opt | can be "fast", with multiplying factor "{AxB}" (where A is number of added cuts, and B is jump in collection value), like "{A}" (then cut is added with collection number A), also mixed versions like "fast+{AxB}" and "fast+{A}" can be used. For two track analysis option "sig" add cut only for signal pairs and "bckg" only for background pairs. It's also possible to add in this way pure real or pure imaginary cuts. For example by adding TrackXCut with "im" option TrackComplexCut(TrackVirtualCut, TrackXCut) is added. |
Reimplemented in Hal::ChargedFluctuationsAna, Hal::FemtoEventBinsAna, Hal::FemtoFreezoutsAna, Hal::SplittingToStatusTask, and Hal::V0BasicFinder.
Definition at line 322 of file EventAna.cxx.
|
virtual |
add cut monitor object
mon | |
opt | option of adding cut monitor. Following options are allowed: "bckg" to add only to background, "sig" to add only in singal (both flags are valid only for analysis where signal and background is present). Other options are like "{AxB}" where A is number of cut monitors, and B is jumb in collection number, eg. {2x3} mean adding cut with collection N, N+3. User might also set option like "{A}" where A is collection number. Combination of those options are allowed. Its's also possible to monitor pure "real" cuts or pure imaginary cuts but setting option "+re" or "+im" respectively |
Reimplemented in Hal::V0BasicFinder.
Definition at line 327 of file EventAna.cxx.
|
virtual |
add collection of predefined cuts and cut monitors
monCuts |
Definition at line 440 of file EventAna.cxx.
|
virtual |
|
protected |
add object to existing metadata list
main_pack | pointer to package created by Report method |
obj | object to add |
Definition at line 239 of file EventAna.cxx.
|
protectedvirtual |
checking cut containers. should be overwritten in derived classes
Reimplemented in Hal::ChargedFluctuationsAna, Hal::EventRotateTask, Hal::Femto1DCFAnaMap, Hal::FemtoBasicAna, Hal::FluctuationsAna, Hal::SimpleVnAnalysis, Hal::SmearTask, Hal::TrackAna, and Hal::TwoTrackAna.
Definition at line 200 of file EventAna.cxx.
|
protectedvirtual |
check if format set in analysis is ok
Reimplemented in Hal::MultiTrackAna, and Hal::SplittingToStatusTask.
Definition at line 371 of file EventAna.cxx.
|
virtual |
called for each event
opt | not used |
Reimplemented in Hal::BoostTask, Hal::EventAnaChain, Hal::FemtoDumpPairAna, Hal::MiniEventTask, Hal::SmearTask, Hal::SplittingToStatusTask, Hal::TrackAna, Hal::TrackAnaChain, and Hal::V0BasicFinder.
Definition at line 104 of file EventAna.cxx.
|
virtual |
called at the end of analysis save resutls
Reimplemented from Hal::Task.
Reimplemented in Hal::EventAnaChain, Hal::FemtoBasicAna, Hal::FemtoDumpPairAna, Hal::MultiTrackAna, Hal::TrackAna, Hal::TrackAnaChain, Hal::TwoTrackAna, and Hal::TwoTrackAnaChain.
Definition at line 291 of file EventAna.cxx.
|
inlineprotected |
Definition at line 99 of file EventAna.h.
|
inlineprotected |
Definition at line 155 of file EventAna.h.
|
protectedvirtual |
initialize task, in principle all derived classes should usually call this method, this method do following steps:
Reimplemented from Hal::Task.
Reimplemented in Hal::BoostTask, Hal::ChargedFluctuationsAna, Hal::EventAnaChain, Hal::Femto1DCFAnaMap, Hal::FemtoBasicAna, Hal::FemtoDumpPairAna, Hal::FemtoEventBinsAna, Hal::FemtoFreezoutsAna, Hal::FluctuationsAna, Hal::MiniEventTask, Hal::MultiTrackAna, Hal::QAEventTask, Hal::QATrackTask, Hal::SimpleVnAnalysis, Hal::SmearTask, Hal::SpectraAna, Hal::SplitedTrackToStatusTask, Hal::SplittingToStatusTask, Hal::TrackAna, Hal::TrackAnaChain, Hal::TrackColDumAna, Hal::TwoTrackAna, Hal::TwoTrackAnaChain, and Hal::V0BasicFinder.
Definition at line 66 of file EventAna.cxx.
|
protected |
initialize cut container
Definition at line 127 of file EventAna.cxx.
|
protectedvirtual |
initialize memory map manager
Reimplemented in Hal::FemtoEventBinsAna.
Definition at line 423 of file EventAna.cxx.
|
protectedvirtual |
init new cut container if current is NULL (may happen if user don't add any cut, should be overwritten in derived classes
Reimplemented in Hal::MultiTrackAna, and Hal::TwoTrackAna.
Definition at line 192 of file EventAna.cxx.
|
inlineprotected |
Definition at line 129 of file EventAna.h.
|
protectedvirtual |
link collections
Reimplemented in Hal::QATrackTask, Hal::SimpleVnAnalysis, Hal::TrackAna, Hal::TwoTrackAna, and Hal::V0BasicFinder.
Definition at line 190 of file EventAna.cxx.
|
inlineprotected |
mark taks as "in chain"
Definition at line 133 of file EventAna.h.
|
inlineprotectedvirtual |
process event, can be be overwritten in derived classes
Reimplemented in Hal::ChargedFluctuationsAna, Hal::EventAnaChain, Hal::EventRotateTask, Hal::FemtoBasicAna, Hal::FemtoEventBinsAna, Hal::FluctuationsAna, Hal::MultiTrackAna, Hal::QAEventTask, Hal::QATrackTask, Hal::SmearTask, Hal::SplitedTrackToStatusTask, Hal::TrackAna, Hal::TrackAnaChain, Hal::TrackColDumAna, Hal::TwoTrackAna, Hal::TwoTrackAnaChain, and Hal::V0BasicFinder.
Definition at line 163 of file EventAna.h.
|
protectedvirtual |
create report that will be saved, derived classes should call this method for base class and add own objects
Reimplemented in Hal::BoostTask, Hal::ChargedFluctuationsAna, Hal::EventAnaChain, Hal::EventRotateTask, Hal::Femto1DCFAnaMap, Hal::FemtoBasicAna, Hal::FemtoEventBinsAna, Hal::FemtoFreezoutsAna, Hal::FluctuationsAna, Hal::MultiTrackAna, Hal::QAEventTask, Hal::QATrackTask, Hal::SimpleVnAnalysis, Hal::SmearTask, Hal::SpectraAna, Hal::TrackAna, Hal::TrackAnaChain, Hal::TwoTrackAna, Hal::TwoTrackAnaChain, and Hal::V0BasicFinder.
Definition at line 259 of file EventAna.cxx.
|
virtual |
|
virtual |
set format
format | any class that inherit from NIcaEventAna and ican be read from currently processed file |
depth | - format type - use buffered to setup different format for buffered events |
Definition at line 210 of file EventAna.cxx.
void Hal::EventAna::SetFormatOption | ( | EFormatOption | option | ) |
set format option
option |
Definition at line 332 of file EventAna.cxx.
|
inlineprotected |
|
virtual |
for setting options, not used in EventAna
opt |
Reimplemented in Hal::FemtoBasicAna, Hal::FemtoFreezoutsAna, Hal::MultiTrackAna, Hal::SpectraAna, Hal::TrackAna, and Hal::TwoTrackAna.
Definition at line 115 of file EventAna.cxx.
|
protected |
comment about this analysis
Definition at line 90 of file EventAna.h.
|
protected |
currently processed event
Definition at line 86 of file EventAna.h.
|
protected |
point to current event collection number
Definition at line 65 of file EventAna.h.
|
protected |
hold information about all cuts and cut monitors
Definition at line 78 of file EventAna.h.
|
protected |
total number of event collections
Definition at line 61 of file EventAna.h.
|
protected |
map of format options in bit BIT(0) - disable /enable compression BIT(1) - disable/enable source BIT(2) - direct access BIT(3) - disable/enable reader BIT(4) - disable/enable format checking
Definition at line 48 of file EventAna.h.
|
protected |
true if object has been initialized
Definition at line 94 of file EventAna.h.
|
protected |
hold all events and tracks
Definition at line 82 of file EventAna.h.
|
protected |
size of buffer for mixing (not used by event and track analysis
Definition at line 57 of file EventAna.h.
|
protected |
pointer to instance of TDatabasePDG
Definition at line 74 of file EventAna.h.
|
protected |
number of processed events
Definition at line 53 of file EventAna.h.
|
protected |
number of tiers in CutContainer, used during creating first cut, if number is too small some cut's will not be added and code my crash
Definition at line 70 of file EventAna.h.