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

Public Types

enum class  ELinkPolicy {
  kOneToMany , kEqual , kReplicateLast , kReplicateFirst ,
  kAnyToAny
}
 

Public Member Functions

 CutContainer ()
 
 CutContainer (const CutContainer &cont)
 
 CutContainer (ECutUpdate tiers_no)
 
void Init (const Int_t task_id=0)
 
void AddCut (const Cut &cut, Option_t *opt=" ")
 
void InitReport () const
 
void AddMonitor (const CutMonitor &monitor, Option_t *opt=" ")
 
void LinkCollections (ECutUpdate opt_low, Int_t in_low, ECutUpdate opt_high, Int_t in_high)
 
void ReplicateCollection (ECutUpdate type, Int_t collection_no, Int_t new_collection_no, Option_t *option="")
 
void RemoveCollection (ECutUpdate update, Int_t collection)
 
void MakeDummyCopies (ECutUpdate update, CutContainer *other, Bool_t copy_link)
 
void AddVirtualCut (ECutUpdate update, Int_t col)
 
Int_t GetCollectionsNo (ECutUpdate update) const
 
Int_t GetEventCollectionsNo () const
 
Int_t GetTrackCollectionsNo () const
 
Int_t GetTwoTrackCollectionsNo () const
 
Int_t GetTwoTrackCollectionsBackgroundNo () const
 
Bool_t LinkCollections (ECutUpdate first, ECutUpdate last, ELinkPolicy policy)
 
CutCollectionGetEventCollection (Int_t collection) const
 
CutCollectionGetTrackCollection (Int_t collection) const
 
CutCollectionGetTwoTrackCollection (Int_t collection) const
 
CutCollectionGetTwoTrackBackgroundCollection (Int_t collection) const
 
Int_t GetSize () const
 
Bool_t PassEvent (Event *event, const Int_t collection)
 
Bool_t PassTrack (Track *track, const Int_t collection)
 
Bool_t PassSignalPair (TwoTrack *pair, const Int_t collection)
 
Bool_t PassBackgroundPair (TwoTrack *pair, const Int_t collection)
 
virtual PackageReport () const
 

Protected Member Functions

TObjArray * GetCutContainer (ECutUpdate upd) const
 

Detailed Description

Definition at line 26 of file CutContainer.h.

Member Enumeration Documentation

◆ ELinkPolicy

enum class Hal::CutContainer::ELinkPolicy
strong

for linking policy

Definition at line 47 of file CutContainer.h.

Constructor & Destructor Documentation

◆ CutContainer() [1/3]

Hal::CutContainer::CutContainer ( )

default constructor that shouldn't be used

Definition at line 32 of file CutContainer.cxx.

◆ CutContainer() [2/3]

Hal::CutContainer::CutContainer ( const CutContainer & cont)

copy constructor

Parameters
cont

Definition at line 52 of file CutContainer.cxx.

◆ CutContainer() [3/3]

Hal::CutContainer::CutContainer ( ECutUpdate tiers_no)

proper default constructor

Parameters
tiers_nothe highest update ratio of cuts used in analysis

Definition at line 34 of file CutContainer.cxx.

◆ ~CutContainer()

Hal::CutContainer::~CutContainer ( )
virtual

Definition at line 223 of file CutContainer.cxx.

Member Function Documentation

◆ AddCut()

void Hal::CutContainer::AddCut ( const Cut & cut,
Option_t * opt = " " )

add cut to this

Parameters
cutcut to add
optoption of adding cut

Definition at line 71 of file CutContainer.cxx.

◆ AddMonitor()

void Hal::CutContainer::AddMonitor ( const CutMonitor & monitor,
Option_t * opt = " " )

add cut monitor to this

Parameters
monitormonitor to add
optoption of adding

Definition at line 134 of file CutContainer.cxx.

◆ AddVirtualCut()

void Hal::CutContainer::AddVirtualCut ( ECutUpdate update,
Int_t col )

add virtual cut for given collection

Definition at line 534 of file CutContainer.cxx.

◆ GetCollectionsNo()

Int_t Hal::CutContainer::GetCollectionsNo ( ECutUpdate update) const

return event collections no for given update ratio

Definition at line 512 of file CutContainer.cxx.

◆ GetCutContainer()

TObjArray * Hal::CutContainer::GetCutContainer ( ECutUpdate upd) const
inlineprotected

Definition at line 41 of file CutContainer.h.

◆ GetEventCollection()

CutCollection * Hal::CutContainer::GetEventCollection ( Int_t collection) const
inline
Parameters
collectioncollection no
Returns
given event collection

Definition at line 154 of file CutContainer.h.

◆ GetEventCollectionsNo()

Int_t Hal::CutContainer::GetEventCollectionsNo ( ) const
Returns
number of event collections in this

Definition at line 401 of file CutContainer.cxx.

◆ GetSize()

Int_t Hal::CutContainer::GetSize ( ) const
inline
Returns
size of cut container (highest tier number/update ratio)

Definition at line 186 of file CutContainer.h.

◆ GetTrackCollection()

CutCollection * Hal::CutContainer::GetTrackCollection ( Int_t collection) const
inline
Parameters
collectioncollection no
Returns
given track collection

Definition at line 163 of file CutContainer.h.

◆ GetTrackCollectionsNo()

Int_t Hal::CutContainer::GetTrackCollectionsNo ( ) const
Returns
number of track collections in this

Definition at line 406 of file CutContainer.cxx.

◆ GetTwoTrackBackgroundCollection()

CutCollection * Hal::CutContainer::GetTwoTrackBackgroundCollection ( Int_t collection) const
inline
Parameters
collectioncollection no
Returns
given background two-track collection

Definition at line 179 of file CutContainer.h.

◆ GetTwoTrackCollection()

CutCollection * Hal::CutContainer::GetTwoTrackCollection ( Int_t collection) const
inline
Parameters
collectioncollection no
Returns
given two-track collection

Definition at line 171 of file CutContainer.h.

◆ GetTwoTrackCollectionsBackgroundNo()

Int_t Hal::CutContainer::GetTwoTrackCollectionsBackgroundNo ( ) const
Returns
number of background two-track collections in this

Definition at line 416 of file CutContainer.cxx.

◆ GetTwoTrackCollectionsNo()

Int_t Hal::CutContainer::GetTwoTrackCollectionsNo ( ) const
Returns
number of two-track collections in this

Definition at line 411 of file CutContainer.cxx.

◆ Init()

void Hal::CutContainer::Init ( const Int_t task_id = 0)

initialize container

Parameters
task_idid of used format

Definition at line 236 of file CutContainer.cxx.

◆ InitReport()

void Hal::CutContainer::InitReport ( ) const

Currently not used

Definition at line 162 of file CutContainer.cxx.

◆ LinkCollections() [1/2]

Bool_t Hal::CutContainer::LinkCollections ( ECutUpdate first,
ECutUpdate last,
ELinkPolicy policy )

Definition at line 562 of file CutContainer.cxx.

◆ LinkCollections() [2/2]

void Hal::CutContainer::LinkCollections ( ECutUpdate opt_low,
Int_t in_low,
ECutUpdate opt_high,
Int_t in_high )

link collections

Parameters
opt_lowupdate ratio for linking from
in_lowcollection number for linking from
opt_highupdate ratio for linking to
in_highcollection number for linking to

Definition at line 170 of file CutContainer.cxx.

◆ MakeDummyCopies()

void Hal::CutContainer::MakeDummyCopies ( ECutUpdate update,
CutContainer * other,
Bool_t copy_link )

copy cut containers with given collection from other cut container to this cut container, those copies are marked as "dummy" so they contains pointers to cuts and cuts monitors from other instead of copies, method useful for making "chain analysis"

Parameters
updatespecify witch cuts and cut monitors will be copied
othercut monitor that is source of cuts for copying
copy_link- copy links between different layers of cuts

Definition at line 432 of file CutContainer.cxx.

◆ PassBackgroundPair()

Bool_t Hal::CutContainer::PassBackgroundPair ( TwoTrack * pair,
const Int_t collection )
inline

check pair cuts

Parameters
pairpair pair of tracks to check
collectionpair collection number used for checking
Returns
true if passed false otherwise

Definition at line 221 of file CutContainer.h.

◆ PassEvent()

Bool_t Hal::CutContainer::PassEvent ( Event * event,
const Int_t collection )
inline

check event cuts

Parameters
eventevent to check
collectionevent collection number used for checking
Returns
true if passed false otherwise

Definition at line 193 of file CutContainer.h.

◆ PassSignalPair()

Bool_t Hal::CutContainer::PassSignalPair ( TwoTrack * pair,
const Int_t collection )
inline

check pair cuts

Parameters
pairpair pair of tracks to check
collectionpair collection number used for checking
Returns
true if passed false otherwise

Definition at line 211 of file CutContainer.h.

◆ PassTrack()

Bool_t Hal::CutContainer::PassTrack ( Track * track,
const Int_t collection )
inline

check track cuts

Parameters
tracktrack to check
collectiontrack collection number used for checking
Returns
true if passed false otherwise

Definition at line 202 of file CutContainer.h.

◆ RemoveCollection()

void Hal::CutContainer::RemoveCollection ( ECutUpdate update,
Int_t collection )

remove given sub-container (collection) from this container

Parameters
updateupdate ration of removed sub-container
collectioncollection number of removed sub-container

Definition at line 221 of file CutContainer.cxx.

◆ ReplicateCollection()

void Hal::CutContainer::ReplicateCollection ( ECutUpdate type,
Int_t collection_no,
Int_t new_collection_no,
Option_t * option = "" )

copy cut sub-container with given collection to new sub-container and add to this cut cutnaier

Parameters
typeupdate ration (tier) of sub-container that should be copied
collection_nonumber collection number of subcontainer that should be copied
new_collection_nonumber of collection of new sub-container
optioncurrently not used

Definition at line 207 of file CutContainer.cxx.

◆ Report()

Package * Hal::CutContainer::Report ( ) const
virtual
Returns
report from this cut container

Definition at line 283 of file CutContainer.cxx.


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