Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::TwoTrackAna Class Reference

#include <TwoTrackAna.h>

Inheritance diagram for Hal::TwoTrackAna:
Hal::MultiTrackAna Hal::TrackAna Hal::EventAna Hal::Task Hal::FemtoBasicAna Hal::FemtoFreezoutsAna Hal::TwoTrackAnaChain Hal::Femto1DCFAnaMap Hal::FemtoDumpPairAna Hal::FemtoEventBinsAna

Public Types

enum  EAnaMode {
  kPerfectPairs , kPerfectPairsID , kPerfectPairsNID , kMixedPairs ,
  kMixedPairsID , kMixedPairsNID , kRotatedPairs , kRotatedPairsID ,
  kRotatedPairsNID , kHemispherePairs , kHemispherePairsID , kHemispherePairsNID ,
  kNoBackgroundID , kNoBackgroundNID , kNoBackground , kCharged ,
  kChargedID2 , kChargedID3 , kChargedNID2 , kChargedNID3
}
 
- 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 }
 

Public Member Functions

 TwoTrackAna (Bool_t use_background=kFALSE)
 
 TwoTrackAna (const TwoTrackAna &ana)
 
TwoTrackAnaoperator= (const TwoTrackAna &other)
 
void SetMixSize (Int_t mixsize)
 
void ProceedWithEmtyEvents (Bool_t proceed)
 
virtual void FinishTask ()
 
virtual void SetOption (Option_t *option)
 
void EnableNonIdentical ()
 
- Public Member Functions inherited from Hal::MultiTrackAna
 MultiTrackAna (const MultiTrackAna &ana)
 
MultiTrackAnaoperator= (const MultiTrackAna &other)
 
void SetMixSize (Int_t to_mix)
 
void SetFormatBuffered (Event *format)
 
- Public Member Functions inherited from Hal::TrackAna
 TrackAna (const TrackAna &ana)
 
TrackAnaoperator= (const TrackAna &other)
 
virtual void Exec (Option_t *opt)
 
- 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 ()
 

Static Public Member Functions

static TString BackgroundOptionMixed ()
 
static TString BackgroundOptionPerfect ()
 
static TString BackgroundOptionRotated ()
 
static TString BackgroundOptionHemisphere ()
 
static TString BackgroundOptionCharge ()
 
static TString BackgroundOptionNoBackground ()
 
static TwoTrack::PairType GetPairType (EAnaMode mode)
 

Protected Member Functions

virtual void SetTags ()
 
Bool_t IdenticalParticles () const
 
virtual PackageReport () const
 
virtual void SetPairHiddenInfo ()
 
virtual void DeleteHiddenPairInfo ()
 
virtual void ProcessPair ()
 
virtual void ProcessPair2 ()
 
virtual void ProcessPair_Mixed ()
 
virtual void ProcessPair2_Mixed ()
 
virtual void ProcessPair_Perfect ()
 
virtual void ProcessPair2_Perfect ()
 
virtual void ProcessPair_Rotated ()
 
virtual void ProcessPair2_Rotated ()
 
virtual void ProcessPair_Hemisphere ()
 
virtual void ProcessPair2_Hemisphere ()
 
virtual void ProcessPair_ChargedId ()
 
virtual void ProcessPair_ChargedNId ()
 
virtual void ProcessPair_Charged2 ()
 
virtual void ProcessPair2_Charged2 ()
 
virtual void ProcessPair_Charged3 ()
 
virtual void ProcessPair2_Charged3 ()
 
virtual void ProcessEvent ()
 
virtual void InitNewCutContainer ()
 
virtual void CheckCutContainerCollections ()
 
virtual void LinkCollections ()
 
virtual void FinishEventIdentical ()
 
virtual void FinishEventNonIdentical ()
 
virtual Task::EInitFlag Init ()
 
- Protected Member Functions inherited from Hal::MultiTrackAna
virtual void ProcessTrack ()
 
virtual Task::EInitFlag CheckFormat ()
 
 MultiTrackAna (ECutUpdate tiers)
 
- Protected Member Functions inherited from Hal::TrackAna
 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 ()
 
Int_t GetTaskID () const
 
 EventAna (ECutUpdate tiers)
 
- Protected Member Functions inherited from Hal::Task
void GoToDir (TString name)
 

Protected Attributes

EAnaMode fBackgroundMode
 
Int_t fCurrentPairCollectionID
 
Int_t fTwoTrackCollectionsNo
 
Int_t fTwoTrackCollectionsNoBackground
 
TwoTrackfCurrentSignalPair
 
TwoTrackfCurrentBackgroundPair
 
- 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
 

Friends

class TwoTrackAnaChain
 

Additional Inherited Members

- Protected Types inherited from Hal::EventAna
enum  eBitFormat {
  kCompression = 0 , kSource = 1 , kDirectAcesss = 2 , kReader = 3 ,
  kChecking = 4
}
 

Detailed Description

basic class for making two track analysis

Definition at line 27 of file TwoTrackAna.h.

Member Enumeration Documentation

◆ EAnaMode

enum for describing of backgrounds

Enumerator
kPerfectPairs 

kPerfectPairs

kPerfectPairsID 

kPerfectPairsID

kPerfectPairsNID 

kPerfectPairsNID

kMixedPairs 

kMixedPairs

kMixedPairsID 

kMixedPairsID

kMixedPairsNID 

kMixedPairsNID

kRotatedPairs 

kRotatedPairs

kRotatedPairsID 

kRotatedPairsID

kRotatedPairsNID 

kRotatedPairsNID

kHemispherePairs 

kHemispherePairs

kHemispherePairsID 

kHemispherePairsID

kHemispherePairsNID 

kHemispherePairsNID

kNoBackgroundID 

kNoBackgroundID

kNoBackgroundNID 

kNoBackgroundNID

kNoBackground 

kNoBackground

kCharged 

kCharged

kChargedID2 

kChargedID2

kChargedID3 

kChargedID3

kChargedNID2 

kChargedNID2

kChargedNID3 

kChargedNID3

Definition at line 34 of file TwoTrackAna.h.

Constructor & Destructor Documentation

◆ TwoTrackAna() [1/2]

Hal::TwoTrackAna::TwoTrackAna ( Bool_t use_background = kFALSE)

default ct-or

Parameters
use_background- if true -then background should be used

Definition at line 25 of file TwoTrackAna.cxx.

◆ TwoTrackAna() [2/2]

Hal::TwoTrackAna::TwoTrackAna ( const TwoTrackAna & ana)

copy constructor

Parameters
ana

Definition at line 753 of file TwoTrackAna.cxx.

◆ ~TwoTrackAna()

Hal::TwoTrackAna::~TwoTrackAna ( )
virtual

Definition at line 535 of file TwoTrackAna.cxx.

Member Function Documentation

◆ BackgroundOptionCharge()

static TString Hal::TwoTrackAna::BackgroundOptionCharge ( )
inlinestatic
Returns
option to set charged background

Definition at line 330 of file TwoTrackAna.h.

◆ BackgroundOptionHemisphere()

static TString Hal::TwoTrackAna::BackgroundOptionHemisphere ( )
inlinestatic
Returns
option to set hemispehre background

Definition at line 325 of file TwoTrackAna.h.

◆ BackgroundOptionMixed()

static TString Hal::TwoTrackAna::BackgroundOptionMixed ( )
inlinestatic
Returns
option to set mixed background

Definition at line 310 of file TwoTrackAna.h.

◆ BackgroundOptionNoBackground()

static TString Hal::TwoTrackAna::BackgroundOptionNoBackground ( )
inlinestatic
Returns
option to set no background

Definition at line 335 of file TwoTrackAna.h.

◆ BackgroundOptionPerfect()

static TString Hal::TwoTrackAna::BackgroundOptionPerfect ( )
inlinestatic
Returns
option to set perfect background

Definition at line 315 of file TwoTrackAna.h.

◆ BackgroundOptionRotated()

static TString Hal::TwoTrackAna::BackgroundOptionRotated ( )
inlinestatic
Returns
option to set rotated background

Definition at line 320 of file TwoTrackAna.h.

◆ CheckCutContainerCollections()

void Hal::TwoTrackAna::CheckCutContainerCollections ( )
protectedvirtual

checking cut containers. should be overwritten in derived classes

Reimplemented from Hal::TrackAna.

Reimplemented in Hal::Femto1DCFAnaMap, and Hal::FemtoBasicAna.

Definition at line 170 of file TwoTrackAna.cxx.

◆ DeleteHiddenPairInfo()

void Hal::TwoTrackAna::DeleteHiddenPairInfo ( )
protectedvirtual

delete hidden pair info, by default it's done automatically

Definition at line 808 of file TwoTrackAna.cxx.

◆ EnableNonIdentical()

void Hal::TwoTrackAna::EnableNonIdentical ( )
inline

set this analysis as non-identical analysis

Definition at line 305 of file TwoTrackAna.h.

◆ FinishEventIdentical()

void Hal::TwoTrackAna::FinishEventIdentical ( )
protectedvirtual

finish event where pairs in signal are made from identical particles

Reimplemented in Hal::TwoTrackAnaChain.

Definition at line 304 of file TwoTrackAna.cxx.

◆ FinishEventNonIdentical()

void Hal::TwoTrackAna::FinishEventNonIdentical ( )
protectedvirtual

finish event where pairs in signal are made from identical particles

Reimplemented in Hal::TwoTrackAnaChain.

Definition at line 353 of file TwoTrackAna.cxx.

◆ FinishTask()

void Hal::TwoTrackAna::FinishTask ( )
virtual

called at the end of analysis save resutls

Reimplemented from Hal::MultiTrackAna.

Reimplemented in Hal::FemtoBasicAna, Hal::FemtoDumpPairAna, and Hal::TwoTrackAnaChain.

Definition at line 130 of file TwoTrackAna.cxx.

◆ GetPairType()

TwoTrack::PairType Hal::TwoTrackAna::GetPairType ( EAnaMode mode)
static

convert analysis pair type to pair type

Returns

Definition at line 771 of file TwoTrackAna.cxx.

◆ IdenticalParticles()

Bool_t Hal::TwoTrackAna::IdenticalParticles ( ) const
inlineprotected
Returns
true if identical particles are processed in signal

Definition at line 168 of file TwoTrackAna.h.

◆ Init()

Task::EInitFlag Hal::TwoTrackAna::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::MultiTrackAna.

Reimplemented in Hal::Femto1DCFAnaMap, Hal::FemtoBasicAna, Hal::FemtoDumpPairAna, Hal::FemtoEventBinsAna, Hal::FemtoFreezoutsAna, and Hal::TwoTrackAnaChain.

Definition at line 105 of file TwoTrackAna.cxx.

◆ InitNewCutContainer()

void Hal::TwoTrackAna::InitNewCutContainer ( )
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 from Hal::MultiTrackAna.

Definition at line 168 of file TwoTrackAna.cxx.

◆ LinkCollections()

void Hal::TwoTrackAna::LinkCollections ( )
protectedvirtual

link collections

Reimplemented from Hal::TrackAna.

Definition at line 234 of file TwoTrackAna.cxx.

◆ operator=()

TwoTrackAna & Hal::TwoTrackAna::operator= ( const TwoTrackAna & other)

assignement operator

Parameters
other
Returns

Definition at line 792 of file TwoTrackAna.cxx.

◆ ProceedWithEmtyEvents()

void Hal::TwoTrackAna::ProceedWithEmtyEvents ( Bool_t proceed)
inline

if set to true events without pairs are processed to mixing buffer

Parameters
proceed

Definition at line 288 of file TwoTrackAna.h.

◆ ProcessEvent()

void Hal::TwoTrackAna::ProcessEvent ( )
protectedvirtual

process event, can be be overwritten in derived classes

Reimplemented from Hal::MultiTrackAna.

Reimplemented in Hal::FemtoBasicAna, Hal::FemtoEventBinsAna, and Hal::TwoTrackAnaChain.

Definition at line 417 of file TwoTrackAna.cxx.

◆ ProcessPair()

virtual void Hal::TwoTrackAna::ProcessPair ( )
inlineprotectedvirtual

process pair of identical particles in signal

Reimplemented in Hal::FemtoBasicAna, Hal::FemtoFreezoutsAna, and Hal::TwoTrackAnaChain.

Definition at line 181 of file TwoTrackAna.h.

◆ ProcessPair2()

virtual void Hal::TwoTrackAna::ProcessPair2 ( )
inlineprotectedvirtual

process pair of non-identical particles in signal

Reimplemented in Hal::FemtoBasicAna, Hal::FemtoFreezoutsAna, and Hal::TwoTrackAnaChain.

Definition at line 185 of file TwoTrackAna.h.

◆ ProcessPair2_Charged2()

virtual void Hal::TwoTrackAna::ProcessPair2_Charged2 ( )
inlineprotectedvirtual

process pair of identical particles in charged background (where singlal is made from non-identical particles)

Reimplemented in Hal::TwoTrackAnaChain.

Definition at line 235 of file TwoTrackAna.h.

◆ ProcessPair2_Charged3()

virtual void Hal::TwoTrackAna::ProcessPair2_Charged3 ( )
inlineprotectedvirtual

process pair of identical particles in charged background (where singlal is made from non-identical particles)

Reimplemented in Hal::TwoTrackAnaChain.

Definition at line 245 of file TwoTrackAna.h.

◆ ProcessPair2_Hemisphere()

virtual void Hal::TwoTrackAna::ProcessPair2_Hemisphere ( )
inlineprotectedvirtual

process pair of non-identical particles in hemisphere background

Reimplemented in Hal::FemtoBasicAna, and Hal::TwoTrackAnaChain.

Definition at line 217 of file TwoTrackAna.h.

◆ ProcessPair2_Mixed()

virtual void Hal::TwoTrackAna::ProcessPair2_Mixed ( )
inlineprotectedvirtual

process pair of non-identical particles in mixed background

Reimplemented in Hal::FemtoBasicAna, and Hal::TwoTrackAnaChain.

Definition at line 193 of file TwoTrackAna.h.

◆ ProcessPair2_Perfect()

virtual void Hal::TwoTrackAna::ProcessPair2_Perfect ( )
inlineprotectedvirtual

process pair of identical non-particles in perfect background

Reimplemented in Hal::FemtoBasicAna, and Hal::TwoTrackAnaChain.

Definition at line 201 of file TwoTrackAna.h.

◆ ProcessPair2_Rotated()

virtual void Hal::TwoTrackAna::ProcessPair2_Rotated ( )
inlineprotectedvirtual

process pair of non-identical particles in rotated background

Reimplemented in Hal::FemtoBasicAna, and Hal::TwoTrackAnaChain.

Definition at line 209 of file TwoTrackAna.h.

◆ ProcessPair_Charged2()

virtual void Hal::TwoTrackAna::ProcessPair_Charged2 ( )
inlineprotectedvirtual

process pair of non-identical particles in charged background (where singlal is made from identical particles)

Reimplemented in Hal::TwoTrackAnaChain.

Definition at line 230 of file TwoTrackAna.h.

◆ ProcessPair_Charged3()

virtual void Hal::TwoTrackAna::ProcessPair_Charged3 ( )
inlineprotectedvirtual

process pair of non-identical particles in charged background (where singlal is made from identical particles)

Reimplemented in Hal::TwoTrackAnaChain.

Definition at line 240 of file TwoTrackAna.h.

◆ ProcessPair_ChargedId()

virtual void Hal::TwoTrackAna::ProcessPair_ChargedId ( )
inlineprotectedvirtual

process pair of identical particles in charged background

Reimplemented in Hal::FemtoBasicAna, and Hal::TwoTrackAnaChain.

Definition at line 221 of file TwoTrackAna.h.

◆ ProcessPair_ChargedNId()

virtual void Hal::TwoTrackAna::ProcessPair_ChargedNId ( )
inlineprotectedvirtual

process pair of non-identical particles in charged background

Reimplemented in Hal::FemtoBasicAna, and Hal::TwoTrackAnaChain.

Definition at line 225 of file TwoTrackAna.h.

◆ ProcessPair_Hemisphere()

virtual void Hal::TwoTrackAna::ProcessPair_Hemisphere ( )
inlineprotectedvirtual

process pair of identical particles in hemisphere background

Reimplemented in Hal::FemtoBasicAna, and Hal::TwoTrackAnaChain.

Definition at line 213 of file TwoTrackAna.h.

◆ ProcessPair_Mixed()

virtual void Hal::TwoTrackAna::ProcessPair_Mixed ( )
inlineprotectedvirtual

process pair of identical particles in mixed background

Reimplemented in Hal::FemtoBasicAna, and Hal::TwoTrackAnaChain.

Definition at line 189 of file TwoTrackAna.h.

◆ ProcessPair_Perfect()

virtual void Hal::TwoTrackAna::ProcessPair_Perfect ( )
inlineprotectedvirtual

process pair of identical particles in perfect background

Reimplemented in Hal::FemtoBasicAna, and Hal::TwoTrackAnaChain.

Definition at line 197 of file TwoTrackAna.h.

◆ ProcessPair_Rotated()

virtual void Hal::TwoTrackAna::ProcessPair_Rotated ( )
inlineprotectedvirtual

process pair of identical particles in rotated background

Reimplemented in Hal::FemtoBasicAna, and Hal::TwoTrackAnaChain.

Definition at line 205 of file TwoTrackAna.h.

◆ Report()

Package * Hal::TwoTrackAna::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::MultiTrackAna.

Reimplemented in Hal::Femto1DCFAnaMap, Hal::FemtoBasicAna, Hal::FemtoEventBinsAna, Hal::FemtoFreezoutsAna, and Hal::TwoTrackAnaChain.

Definition at line 46 of file TwoTrackAna.cxx.

◆ SetMixSize()

void Hal::TwoTrackAna::SetMixSize ( Int_t mixsize)

set mix side

Parameters
mixsizesize of buffer to mixing

Definition at line 159 of file TwoTrackAna.cxx.

◆ SetOption()

void Hal::TwoTrackAna::SetOption ( Option_t * option)
virtual

like for TrackAna +

Parameters
optionpossible options : "background:perfect" - for perfect background. "background:no" - for no background, "background:charge" - for background made by opposite charges method, "background:rotation" - for made background where second particle is rotated around Z-axis, "background:hemispere" - for making analysis with full rotated second particle, "signs_sum" - for disabling merging resutls from two groups backgrounds made from pairs of identical particles,"id" - for processing pairs of identical tracks, "nonid"

Reimplemented from Hal::MultiTrackAna.

Reimplemented in Hal::FemtoBasicAna, and Hal::FemtoFreezoutsAna.

Definition at line 132 of file TwoTrackAna.cxx.

◆ SetPairHiddenInfo()

virtual void Hal::TwoTrackAna::SetPairHiddenInfo ( )
inlineprotectedvirtual

set hidden pair info if necessary

Definition at line 173 of file TwoTrackAna.h.

◆ SetTags()

void Hal::TwoTrackAna::SetTags ( )
protectedvirtual

set some tags connected with used background

Definition at line 80 of file TwoTrackAna.cxx.

Friends And Related Symbol Documentation

◆ TwoTrackAnaChain

friend class TwoTrackAnaChain
friend

Definition at line 28 of file TwoTrackAna.h.

Member Data Documentation

◆ fBackgroundMode

EAnaMode Hal::TwoTrackAna::fBackgroundMode
protected

background mode used in analysis

Definition at line 139 of file TwoTrackAna.h.

◆ fCurrentBackgroundPair

TwoTrack* Hal::TwoTrackAna::fCurrentBackgroundPair
protected

currently processed background pair

Definition at line 159 of file TwoTrackAna.h.

◆ fCurrentPairCollectionID

Int_t Hal::TwoTrackAna::fCurrentPairCollectionID
protected

points to collection number of actually processed pair

Definition at line 143 of file TwoTrackAna.h.

◆ fCurrentSignalPair

TwoTrack* Hal::TwoTrackAna::fCurrentSignalPair
protected

currently processed pair

Definition at line 155 of file TwoTrackAna.h.

◆ fTwoTrackCollectionsNo

Int_t Hal::TwoTrackAna::fTwoTrackCollectionsNo
protected

total number of two track collections

Definition at line 147 of file TwoTrackAna.h.

◆ fTwoTrackCollectionsNoBackground

Int_t Hal::TwoTrackAna::fTwoTrackCollectionsNoBackground
protected

total number of two track collections in background

Definition at line 151 of file TwoTrackAna.h.


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