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

Public Member Functions

 CutCollection (TObjArray **container, Int_t cont_size, ECutUpdate update, Int_t collectionNo)
 
 CutCollection ()
 
CutCollectionMakeNewCopy (TObjArray **container) const
 
void Init (Int_t task_id)
 
void PrintInfo () const
 
void SetStep (Int_t step)
 
void AddCut (Cut *cut, Option_t *opt=" ")
 
void MarkAsDummy ()
 
void AddCutMonitor (CutMonitor *monitor)
 
void AddNextAddr (Int_t value, Bool_t background=kFALSE)
 
void AddPreviousAddr (Int_t value, Bool_t background=kFALSE)
 
void MakeDummyCopy (const CutCollection *copy, Bool_t copy_high_links=kTRUE)
 
Int_t Compare (const TObject *obj) const
 
ULong64_t GetFailed (Option_t *opt="") const
 
ULong64_t GetPassed (Option_t *opt="") const
 
Int_t GetCutNo () const
 
Int_t GetCollectionID () const
 
Int_t GetFastCutNo () const
 
Int_t GetCutMonitorNo () const
 
Bool_t PassEvent (Event *obj)
 
Bool_t PassTrack (Track *obj)
 
Bool_t PassTwoTrack (TwoTrack *pair)
 
Bool_t IsSortable () const
 
Bool_t IsDummy () const
 
CutGetCut (Int_t index) const
 
CutGetFastCut (Int_t index) const
 
CutFindCut (TString name) const
 
CutMonitorGetCutMonitor (Int_t index) const
 
CutCollectionReplicate (Int_t new_collection) const
 
Int_t GetPrevNo () const
 
Int_t GetNextNo () const
 
Int_t GetPrevAddr (Int_t index) const
 
Int_t GetNextAddr (Int_t index) const
 
Int_t GetPrevNoBackground () const
 
Int_t GetNextNoBackround () const
 
Int_t GetPrevAddBackround (Int_t index) const
 
Int_t GetNextAddrBackround (Int_t index) const
 
virtual PackageReport () const
 

Detailed Description

Definition at line 50 of file CutCollection.h.

Constructor & Destructor Documentation

◆ CutCollection() [1/2]

Hal::CutCollection::CutCollection ( TObjArray ** container,
Int_t cont_size,
ECutUpdate update,
Int_t collectionNo )

Constructor used by CutCollection

Parameters
containerpointer to array with other sub-containers
cont_sizesize of cut-container array
updateupdate ratio of this cut sub-container
collectionNocollection number of this cut sub-container

Definition at line 34 of file CutCollection.cxx.

◆ CutCollection() [2/2]

Hal::CutCollection::CutCollection ( )

default constructor for streamer

Definition at line 746 of file CutCollection.cxx.

◆ ~CutCollection()

Hal::CutCollection::~CutCollection ( )
virtual

Definition at line 815 of file CutCollection.cxx.

Member Function Documentation

◆ AddCut()

void Hal::CutCollection::AddCut ( Cut * cut,
Option_t * opt = " " )

add cut to this collection

Parameters
cutcut
optoption of adding (at this level only "fast" option can be used

Definition at line 61 of file CutCollection.cxx.

◆ AddCutMonitor()

void Hal::CutCollection::AddCutMonitor ( CutMonitor * monitor)

add cut monitor

Parameters
monitor- monitor to add

Definition at line 124 of file CutCollection.cxx.

◆ AddNextAddr()

void Hal::CutCollection::AddNextAddr ( Int_t value,
Bool_t background = kFALSE )

add link to higher collection

Parameters
valuecollection number used for linking
backgroundtrue if link point to background collections

Definition at line 240 of file CutCollection.cxx.

◆ AddPreviousAddr()

void Hal::CutCollection::AddPreviousAddr ( Int_t value,
Bool_t background = kFALSE )

add link to lower collection

Parameters
valuecollection number used for linking
backgroundtrue if link point to background collections

Definition at line 231 of file CutCollection.cxx.

◆ Compare()

Int_t Hal::CutCollection::Compare ( const TObject * obj) const

compare to CutCollection class object

Parameters
objobj to compare
Returns
flag for comparison used by ROOT

Definition at line 554 of file CutCollection.cxx.

◆ FindCut()

Cut * Hal::CutCollection::FindCut ( TString name) const

return cut with given name

Parameters
namecut name (name of class)
Returns
cut

Definition at line 249 of file CutCollection.cxx.

◆ GetCollectionID()

Int_t Hal::CutCollection::GetCollectionID ( ) const
inline
Returns
collection number of this object

Definition at line 216 of file CutCollection.h.

◆ GetCut()

Cut * Hal::CutCollection::GetCut ( Int_t index) const
inline

return slow cut with given position

Parameters
indexcut position
Returns
slow cut

Definition at line 265 of file CutCollection.h.

◆ GetCutMonitor()

CutMonitor * Hal::CutCollection::GetCutMonitor ( Int_t index) const
Parameters
indexcut monitor index
Returns
cut monitor

Definition at line 229 of file CutCollection.cxx.

◆ GetCutMonitorNo()

Int_t Hal::CutCollection::GetCutMonitorNo ( ) const
inline
Returns
number of cut monitors

Definition at line 226 of file CutCollection.h.

◆ GetCutNo()

Int_t Hal::CutCollection::GetCutNo ( ) const
inline
Returns
number of "slow" cuts

Definition at line 211 of file CutCollection.h.

◆ GetFailed()

ULong64_t Hal::CutCollection::GetFailed ( Option_t * opt = "") const
Parameters
opt"fast" if user want get values only for fast cuts, otherwise value of slow cuts is returned
Returns
number of objects that failed cuts

Definition at line 834 of file CutCollection.cxx.

◆ GetFastCut()

Cut * Hal::CutCollection::GetFastCut ( Int_t index) const
inline

return fast cut with given position

Parameters
indexcut position
Returns
fast cut

Definition at line 271 of file CutCollection.h.

◆ GetFastCutNo()

Int_t Hal::CutCollection::GetFastCutNo ( ) const
inline
Returns
number of "fast" cuts

Definition at line 221 of file CutCollection.h.

◆ GetNextAddr()

Int_t Hal::CutCollection::GetNextAddr ( Int_t index) const
inline

return value of given link that points to higher sub-containers

Parameters
indexnumber of link
Returns
number of collection (higher sub-container linked with this)

Definition at line 311 of file CutCollection.h.

◆ GetNextAddrBackround()

Int_t Hal::CutCollection::GetNextAddrBackround ( Int_t index) const
inline

return value of given link that points to higher sub-containers that are also background sub-containers

Parameters
indexnumber of link
Returns
number of collection (higher sub-container linked with this)

Definition at line 335 of file CutCollection.h.

◆ GetNextNo()

Int_t Hal::CutCollection::GetNextNo ( ) const
inline
Returns
number of links to higher collections

Definition at line 299 of file CutCollection.h.

◆ GetNextNoBackround()

Int_t Hal::CutCollection::GetNextNoBackround ( ) const
inline
Returns
total number for higher tiers sub-containers in background mode

Definition at line 321 of file CutCollection.h.

◆ GetPassed()

ULong64_t Hal::CutCollection::GetPassed ( Option_t * opt = "") const
Parameters
opt"fast" if user want get values only for fast cuts, only for fast cuts, otherwise value of slow cuts is returned
Returns
number of objects that passed cuts

Definition at line 825 of file CutCollection.cxx.

◆ GetPrevAddBackround()

Int_t Hal::CutCollection::GetPrevAddBackround ( Int_t index) const
inline

return value of given link that points to lower sub-containers and are background sub-containers

Parameters
indexnumber of link
Returns
number of collection (lower sub-container linked with this)

Definition at line 328 of file CutCollection.h.

◆ GetPrevAddr()

Int_t Hal::CutCollection::GetPrevAddr ( Int_t index) const
inline

return value of given link that points to lower sub-containers

Parameters
indexnumber of link
Returns
number of collection (lower sub-container linked with this)

Definition at line 305 of file CutCollection.h.

◆ GetPrevNo()

Int_t Hal::CutCollection::GetPrevNo ( ) const
inline
Returns
number of links to lower collections

Definition at line 294 of file CutCollection.h.

◆ GetPrevNoBackground()

Int_t Hal::CutCollection::GetPrevNoBackground ( ) const
inline
Returns
total number for lower tiers sub-containers in background mode

Definition at line 316 of file CutCollection.h.

◆ Init()

void Hal::CutCollection::Init ( Int_t task_id)

initialize this cut container

Parameters
task_idof processed events

Definition at line 150 of file CutCollection.cxx.

◆ IsDummy()

Bool_t Hal::CutCollection::IsDummy ( ) const
inline

In some analysis like EventAnaChain it's possible to use subtasks. In such case common cust subcontainer is marked as a "dummy". Cuts and cut monitoris in such containers might belong for more than one task, so modyfing them might lead to problems. Other values (like links) might be modified.

Returns
true if dummy

Definition at line 259 of file CutCollection.h.

◆ IsSortable()

Bool_t Hal::CutCollection::IsSortable ( ) const
inline

for ROOT sorting algorithms

Returns
true

Definition at line 249 of file CutCollection.h.

◆ MakeDummyCopy()

void Hal::CutCollection::MakeDummyCopy ( const CutCollection * copy,
Bool_t copy_high_links = kTRUE )

overwrite all objects in this class by object from copy, such objects are not removed if copy is not deleted

Parameters
copyoriginal cut subconainer
copy_high_linksif true links from to higher cut container (with bigger update ratio) is also copied

Definition at line 781 of file CutCollection.cxx.

◆ MakeNewCopy()

CutCollection * Hal::CutCollection::MakeNewCopy ( TObjArray ** container) const

create copy of this cut container that can be used by another task

Parameters
containerarray of cut containers
Returns

Definition at line 767 of file CutCollection.cxx.

◆ MarkAsDummy()

void Hal::CutCollection::MarkAsDummy ( )

mark this cut container as dummy (all cuts ad cuts monitor are removed and will not be used anymore

Definition at line 843 of file CutCollection.cxx.

◆ PassEvent()

Bool_t Hal::CutCollection::PassEvent ( Event * obj)

check event cuts

Parameters
objevent to check
Returns
true if object ok, false if object shoudn't pass cuts

Definition at line 625 of file CutCollection.cxx.

◆ PassTrack()

Bool_t Hal::CutCollection::PassTrack ( Track * obj)

check track cuts

Parameters
objtrack to check
Returns
true if object ok, false if object shoudn't pass cuts

Definition at line 641 of file CutCollection.cxx.

◆ PassTwoTrack()

Bool_t Hal::CutCollection::PassTwoTrack ( TwoTrack * pair)

check pair cuts

Parameters
pairpair to check
Returns
true if object ok, false if object shoudn't pass cuts

Definition at line 657 of file CutCollection.cxx.

◆ PrintInfo()

void Hal::CutCollection::PrintInfo ( ) const

not used

Definition at line 590 of file CutCollection.cxx.

◆ Replicate()

CutCollection * Hal::CutCollection::Replicate ( Int_t new_collection) const

copy this cut container with new collection number

Parameters
new_collectioncollection number of copy
Returns
copy of this

Definition at line 264 of file CutCollection.cxx.

◆ Report()

Package * Hal::CutCollection::Report ( ) const
virtual
Returns
report from this

Definition at line 673 of file CutCollection.cxx.

◆ SetStep()

void Hal::CutCollection::SetStep ( Int_t step)
inline

set "step of actualization", normalny it's equal to one, this means that we are going from events to tracks from tracks to pairs / background pairs this should be set to 2 if we want to go from particles to three particle system

Parameters
step

Definition at line 150 of file CutCollection.h.


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