Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::CutsAndMonitors Class Referenceabstract

#include <CutsAndMonitors.h>

Inheritance diagram for Hal::CutsAndMonitors:
Hal::TrackBasicV0Cuts Hal::TrackKinematicsCutAndMonitor

Public Member Functions

 CutsAndMonitors (const CutsAndMonitors &other)
 
CutsAndMonitorsoperator= (const CutsAndMonitors &other)
 
void SetOptionForAllCuts (TString opt)
 
void SetOptionForAllMonitors (TString opt)
 
void AddCut (const Cut &cut, Option_t *opt="")
 
void AddCutMonitor (const CutMonitor &monitor, Option_t *opt="")
 
void SetCollectionID (Int_t id)
 
const CutGetCut (Int_t i) const
 
TString GetCutOption (Int_t i) const
 
TString GetGlobalCutOption ()
 
const CutMonitorGetMonitor (Int_t i) const
 
TString GetGlobalCutMonitorOption ()
 
TString GetCutMonitorOption (Int_t i) const
 
Int_t GetNCuts () const
 
Int_t GetNCutMonitors () const
 
Int_t GetNRequest () const
 
CutMonitorRequestGetCutMonitorRequest (Int_t i)
 
void MakeCutMonitors (Option_t *opt="")
 

Protected Member Functions

CutCutAt (Int_t i) const
 
CutMonitorMonitorAt (Int_t i) const
 
void ClearCuts ()
 
void ClearMonitors ()
 
void AddRawCut (Cut *cut, TObjString *opt=nullptr)
 
void AddRawCutMonitor (CutMonitor *mon, TObjString *opt=nullptr)
 
void AddCutMonitorRequest (const CutMonAxisConf &x)
 
void AddCutMonitorRequest (const CutMonAxisConf &x, const CutMonAxisConf &y)
 
void AddCutMonitorRequest (const CutMonAxisConf &x, const CutMonAxisConf &y, const CutMonAxisConf &z)
 
virtual void AddAllCutMonitorRequests (Option_t *opt)=0
 
CutMonitorMakeCutMonitor (Int_t request_no) const
 
Int_t GetCutNo (TString classname) const
 

Detailed Description

class that stores collection of hits and cut monitors after adding to task cuts/cut monitors are extracted and added with "local" and "global" option. E.g. CutsAndMonitors::AddCut(some_cut,"{0}) and CutsAndMonitors::SetOptionForAllCuts("re") is equivalent of EventAna::AddCut(some_cut,"{0}+re"),

See also
TrackKinematicsCutAndMonitor as and example of this class

Definition at line 37 of file CutsAndMonitors.h.

Constructor & Destructor Documentation

◆ CutsAndMonitors() [1/2]

Hal::CutsAndMonitors::CutsAndMonitors ( )

Definition at line 21 of file CutsAndMonitors.cxx.

◆ CutsAndMonitors() [2/2]

Hal::CutsAndMonitors::CutsAndMonitors ( const CutsAndMonitors & other)

Definition at line 29 of file CutsAndMonitors.cxx.

◆ ~CutsAndMonitors()

Hal::CutsAndMonitors::~CutsAndMonitors ( )
virtual

Definition at line 157 of file CutsAndMonitors.cxx.

Member Function Documentation

◆ AddAllCutMonitorRequests()

virtual void Hal::CutsAndMonitors::AddAllCutMonitorRequests ( Option_t * opt)
protectedpure virtual

add all cut monitor requests

Parameters
optionpassed by
See also
MakeCutMonitors

Implemented in Hal::TrackBasicV0Cuts.

◆ AddCut()

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

add cut to this container

Parameters
cut
opt

Definition at line 117 of file CutsAndMonitors.cxx.

◆ AddCutMonitor()

void Hal::CutsAndMonitors::AddCutMonitor ( const CutMonitor & monitor,
Option_t * opt = "" )

add cut monitor to this container note: this class doesn't have to containe monitored cuts, they can be added later to the task

Parameters
monitor
opt

Definition at line 129 of file CutsAndMonitors.cxx.

◆ AddCutMonitorRequest() [1/3]

void Hal::CutsAndMonitors::AddCutMonitorRequest ( const CutMonAxisConf & x)
protected

add request to cut monitor, cuts must be present at this time

Parameters
xconfiguration of x axis

Definition at line 286 of file CutsAndMonitors.cxx.

◆ AddCutMonitorRequest() [2/3]

void Hal::CutsAndMonitors::AddCutMonitorRequest ( const CutMonAxisConf & x,
const CutMonAxisConf & y )
protected

add request to cut monitor, cuts must be present at this time

Parameters
xconfiguration of x axis
yconfiguration of y axis

Definition at line 288 of file CutsAndMonitors.cxx.

◆ AddCutMonitorRequest() [3/3]

void Hal::CutsAndMonitors::AddCutMonitorRequest ( const CutMonAxisConf & x,
const CutMonAxisConf & y,
const CutMonAxisConf & z )
protected

add request to cut monitor, cuts must be present at this time

Parameters
xconfiguration of x axis
yconfiguration of y axis
zconfiguration of z axis

Definition at line 292 of file CutsAndMonitors.cxx.

◆ AddRawCut()

void Hal::CutsAndMonitors::AddRawCut ( Cut * cut,
TObjString * opt = nullptr )
protected

add cut without copying the cut, cut will be owned by this class

Parameters
cut
opt

Definition at line 178 of file CutsAndMonitors.cxx.

◆ AddRawCutMonitor()

void Hal::CutsAndMonitors::AddRawCutMonitor ( CutMonitor * mon,
TObjString * opt = nullptr )
protected

add cut monitor without copying, this monitor will be owned by this class

Parameters
mon
opt

Definition at line 190 of file CutsAndMonitors.cxx.

◆ ClearCuts()

void Hal::CutsAndMonitors::ClearCuts ( )
protected

clear cuts and cuts options

Definition at line 168 of file CutsAndMonitors.cxx.

◆ ClearMonitors()

void Hal::CutsAndMonitors::ClearMonitors ( )
protected

clear cut monitors and their options

Definition at line 173 of file CutsAndMonitors.cxx.

◆ CutAt()

Cut * Hal::CutsAndMonitors::CutAt ( Int_t i) const
protected

return cut at i

Parameters
i
Returns

Definition at line 164 of file CutsAndMonitors.cxx.

◆ GetCut()

const Cut * Hal::CutsAndMonitors::GetCut ( Int_t i) const
Parameters
i
Returns
cut

Definition at line 141 of file CutsAndMonitors.cxx.

◆ GetCutMonitorOption()

TString Hal::CutsAndMonitors::GetCutMonitorOption ( Int_t i) const
Parameters
i
Returns
local cut monitor option

Definition at line 151 of file CutsAndMonitors.cxx.

◆ GetCutMonitorRequest()

CutMonitorRequest & Hal::CutsAndMonitors::GetCutMonitorRequest ( Int_t i)
inline
Parameters
i
Returns
given request for cut monitor

Definition at line 201 of file CutsAndMonitors.h.

◆ GetCutNo()

Int_t Hal::CutsAndMonitors::GetCutNo ( TString classname) const
protected

find number of cut by it classname

Parameters
classname
Returns
cut no if cut has been foudn, -1 otherwise

Definition at line 277 of file CutsAndMonitors.cxx.

◆ GetCutOption()

TString Hal::CutsAndMonitors::GetCutOption ( Int_t i) const
Parameters
i
Returns
"local" option for given cut

Definition at line 143 of file CutsAndMonitors.cxx.

◆ GetGlobalCutMonitorOption()

TString Hal::CutsAndMonitors::GetGlobalCutMonitorOption ( )
inline
Returns
global cut monitor option

Definition at line 174 of file CutsAndMonitors.h.

◆ GetGlobalCutOption()

TString Hal::CutsAndMonitors::GetGlobalCutOption ( )
inline
Returns
"global" option for all cuts

Definition at line 163 of file CutsAndMonitors.h.

◆ GetMonitor()

const CutMonitor * Hal::CutsAndMonitors::GetMonitor ( Int_t i) const
Parameters
i
Returns
i-th monitor

Definition at line 149 of file CutsAndMonitors.cxx.

◆ GetNCutMonitors()

Int_t Hal::CutsAndMonitors::GetNCutMonitors ( ) const
Returns
number of cut monitors

Definition at line 68 of file CutsAndMonitors.cxx.

◆ GetNCuts()

Int_t Hal::CutsAndMonitors::GetNCuts ( ) const
Returns
number of cuts

Definition at line 63 of file CutsAndMonitors.cxx.

◆ GetNRequest()

Int_t Hal::CutsAndMonitors::GetNRequest ( ) const
inline
Returns
number of request for cut monitors

Definition at line 195 of file CutsAndMonitors.h.

◆ MakeCutMonitor()

CutMonitor * Hal::CutsAndMonitors::MakeCutMonitor ( Int_t request_no) const
protected

return cut monitor request

Parameters
request_no
Returns

Definition at line 202 of file CutsAndMonitors.cxx.

◆ MakeCutMonitors()

void Hal::CutsAndMonitors::MakeCutMonitors ( Option_t * opt = "")

this function makes requested cut monitors, it must be called before adding to analysis

Definition at line 267 of file CutsAndMonitors.cxx.

◆ MonitorAt()

CutMonitor * Hal::CutsAndMonitors::MonitorAt ( Int_t i) const
protected
Parameters
i
Returns
monitor at

Definition at line 166 of file CutsAndMonitors.cxx.

◆ operator=()

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

Definition at line 73 of file CutsAndMonitors.cxx.

◆ SetCollectionID()

void Hal::CutsAndMonitors::SetCollectionID ( Int_t id)

set collection id to all cuts

Parameters
id

Definition at line 296 of file CutsAndMonitors.cxx.

◆ SetOptionForAllCuts()

void Hal::CutsAndMonitors::SetOptionForAllCuts ( TString opt)
inline

set global option for all cuts

Parameters
opt

Definition at line 123 of file CutsAndMonitors.h.

◆ SetOptionForAllMonitors()

void Hal::CutsAndMonitors::SetOptionForAllMonitors ( TString opt)
inline

set global option for all cut monitors

Parameters
opt

Definition at line 128 of file CutsAndMonitors.h.


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