Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::CutMonitor Class Reference
Inheritance diagram for Hal::CutMonitor:
Hal::CutMonitorX Hal::CutMonitorXY Hal::CutMonitorXYZ Hal::PropertyMonitorX Hal::PropertyMonitorXY Hal::PropertyMonitorXYZ Hal::EventFieldMonitorX Hal::TrackFieldMonitorX MyHal::PropertyMonitorTemplateX Hal::EventFieldMonitorXY Hal::TrackFieldMonitorXY MyHal::PropertyMonitorTemplateXY Hal::EventFieldMonitorXYZ Hal::TrackFieldMonitorXYZ MyHal::PropertyMonitorTemplateXYZ

Public Member Functions

 CutMonitor (Int_t size=0)
 
 CutMonitor (const CutMonitor &other)
 
CutMonitoroperator= (const CutMonitor &other)
 
void Reset ()
 
void AddCut (TString cut, Int_t parameter_no=0)
 
void SetXaxis (Int_t bins, Double_t min, Double_t max)
 
void SetYaxis (Int_t bins, Double_t min, Double_t max)
 
void SetZaxis (Int_t bins, Double_t min, Double_t max)
 
void AddForcedCut (Cut *cut, Int_t no)
 
void CopySettings (const CutMonitor *original)
 
void SetCollectionID (Int_t i)
 
void EnableExclusiveUpdate ()
 
Int_t GetCollectionID () const
 
Int_t GetAxisNo () const
 
Int_t GetCutParameter (Int_t i) const
 
Bool_t AreSimilar (CutMonitor *other) const
 
TString GetCutName (Int_t i) const
 
ECutUpdate GetUpdateRatio () const
 
virtual Bool_t ObjMonitor () const
 
virtual Bool_t Init (Int_t task_id)
 
virtual void Update (Bool_t passed, TObject *obj)
 
virtual CutMonitorMakeCopy () const
 
virtual PackageReport () const
 
CutGetCutLink (Int_t i) const
 

Protected Member Functions

virtual void CreateHistograms ()
 
virtual void TrueUpdate (Bool_t passed)
 
void SetAxis (Int_t bins, Double_t min, Double_t max, Int_t opt)
 
void SetAxisList (std::initializer_list< Double_t > axis, Char_t opt)
 
CutGetCut (Int_t i) const
 

Protected Attributes

const Int_t fAxisNo
 
Int_t fCuts
 
Int_t fCollectionID
 
Int_t * fAxisBins
 
Int_t * fOptionAxis
 
TH1 * fHistoPassed
 
TH1 * fHistoFailed
 
Double_t * fAxisMin
 
Double_t * fAxisMax
 
Bool_t fInit
 
Bool_t fExUpdate
 
Cut ** fCut
 
TString * fCutNames
 
ECutUpdate fUpdateRatio
 

Friends

class CutContainer
 

Detailed Description

Definition at line 24 of file CutMonitor.h.

Constructor & Destructor Documentation

◆ CutMonitor() [1/2]

Hal::CutMonitor::CutMonitor ( Int_t size = 0)

default constructor

Parameters
sizenumber of axes

Definition at line 43 of file CutMonitor.cxx.

◆ CutMonitor() [2/2]

Hal::CutMonitor::CutMonitor ( const CutMonitor & other)

copy constructor

Parameters
otherobject to copy

Definition at line 77 of file CutMonitor.cxx.

◆ ~CutMonitor()

Hal::CutMonitor::~CutMonitor ( )
virtual

Definition at line 228 of file CutMonitor.cxx.

Member Function Documentation

◆ AddCut()

void Hal::CutMonitor::AddCut ( TString cut,
Int_t parameter_no = 0 )

add cut to this monitor

Parameters
cutcut name
parameter_nonumber of paramter that should be monitored from given cut

Definition at line 161 of file CutMonitor.cxx.

◆ AddForcedCut()

void Hal::CutMonitor::AddForcedCut ( Cut * cut,
Int_t no )

add pointer to moniter cut, this option should be used inside of cut monitors/applications not in ROOT macros

Parameters
cutpointer to monitored cut
noaxis number

Definition at line 21 of file CutMonitor.cxx.

◆ AreSimilar()

Bool_t Hal::CutMonitor::AreSimilar ( CutMonitor * other) const
Parameters
other
Returns
true if both monitors are similar

Definition at line 342 of file CutMonitor.cxx.

◆ CopySettings()

void Hal::CutMonitor::CopySettings ( const CutMonitor * original)

copy setting of axis from different cut

Parameters
originalcut with is used for taking values

Definition at line 220 of file CutMonitor.cxx.

◆ CreateHistograms()

void Hal::CutMonitor::CreateHistograms ( )
protectedvirtual

◆ EnableExclusiveUpdate()

void Hal::CutMonitor::EnableExclusiveUpdate ( )

enable exclusive updates mode

Definition at line 157 of file CutMonitor.cxx.

◆ GetAxisNo()

Int_t Hal::CutMonitor::GetAxisNo ( ) const
inline
Returns
number of axes

Definition at line 193 of file CutMonitor.h.

◆ GetCollectionID()

Int_t Hal::CutMonitor::GetCollectionID ( ) const
inline
Returns
this collection no

Definition at line 188 of file CutMonitor.h.

◆ GetCut()

Cut * Hal::CutMonitor::GetCut ( Int_t i) const
protected
Parameters
icut number
Returns
cut monitred by this cut monitor

Definition at line 35 of file CutMonitor.cxx.

◆ GetCutLink()

Cut * Hal::CutMonitor::GetCutLink ( Int_t i) const
inline
Parameters
iaxis no
Returns
pointer to linked cut

Definition at line 248 of file CutMonitor.h.

◆ GetCutName()

TString Hal::CutMonitor::GetCutName ( Int_t i) const
inline
Parameters
iaxes no
Returns
cut name

Definition at line 211 of file CutMonitor.h.

◆ GetCutParameter()

Int_t Hal::CutMonitor::GetCutParameter ( Int_t i) const
Parameters
iaxis number / cut number
Returns
number of parameter monitored for given cut/axis

Definition at line 37 of file CutMonitor.cxx.

◆ GetUpdateRatio()

ECutUpdate Hal::CutMonitor::GetUpdateRatio ( ) const
Returns
update ratio of this monitor

Definition at line 151 of file CutMonitor.cxx.

◆ Init()

◆ MakeCopy()

◆ ObjMonitor()

virtual Bool_t Hal::CutMonitor::ObjMonitor ( ) const
inlinevirtual
Returns
true if method used UpdateByObject instead of Update

Reimplemented in Hal::PropertyMonitorX, Hal::PropertyMonitorXY, and Hal::PropertyMonitorXYZ.

Definition at line 221 of file CutMonitor.h.

◆ operator=()

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

Assignment operator

Parameters
other
Returns

Definition at line 239 of file CutMonitor.cxx.

◆ Report()

Package * Hal::CutMonitor::Report ( ) const
virtual
Returns
report from this cut monitor

Reimplemented in Hal::PropertyMonitorX, Hal::PropertyMonitorXY, and Hal::PropertyMonitorXYZ.

Definition at line 267 of file CutMonitor.cxx.

◆ Reset()

void Hal::CutMonitor::Reset ( )

reset this cut monitor

Definition at line 146 of file CutMonitor.cxx.

◆ SetAxis()

void Hal::CutMonitor::SetAxis ( Int_t bins,
Double_t min,
Double_t max,
Int_t opt )
protected

confgiure axis of histogram

Parameters
binsnumber of bins
minlower edge of axis
maxupper edge of axis
optaxis numger

Definition at line 23 of file CutMonitor.cxx.

◆ SetAxisList()

void Hal::CutMonitor::SetAxisList ( std::initializer_list< Double_t > axis,
Char_t opt )
protected

set axis from initializer list

Parameters
axis{nbins, min, max}
opt

Definition at line 129 of file CutMonitor.cxx.

◆ SetCollectionID()

void Hal::CutMonitor::SetCollectionID ( Int_t i)

set collection number for this cut monitor

Parameters
icollection number

Definition at line 33 of file CutMonitor.cxx.

◆ SetXaxis()

void Hal::CutMonitor::SetXaxis ( Int_t bins,
Double_t min,
Double_t max )

setup X axis

Parameters
binsnumber of bins
minlower limit of axis
maxupper limit of axis

Definition at line 196 of file CutMonitor.cxx.

◆ SetYaxis()

void Hal::CutMonitor::SetYaxis ( Int_t bins,
Double_t min,
Double_t max )

setup Y axis

Parameters
binsnumber of bins
minlower limit of axis
maxupper limit of axis

Definition at line 204 of file CutMonitor.cxx.

◆ SetZaxis()

void Hal::CutMonitor::SetZaxis ( Int_t bins,
Double_t min,
Double_t max )

setup Z axis

Parameters
binsnumber of bins
minlower limit of axis
maxupper limit of axis

Definition at line 212 of file CutMonitor.cxx.

◆ TrueUpdate()

void Hal::CutMonitor::TrueUpdate ( Bool_t passed)
protectedvirtual

make update of histogram

Parameters
passedtrue if object goes to pass false otherwise

Reimplemented in Hal::CutMonitorX, Hal::CutMonitorXY, and Hal::CutMonitorXYZ.

Definition at line 155 of file CutMonitor.cxx.

◆ Update()

void Hal::CutMonitor::Update ( Bool_t passed,
TObject * obj )
virtual

Friends And Related Symbol Documentation

◆ CutContainer

friend class CutContainer
friend

Definition at line 25 of file CutMonitor.h.

Member Data Documentation

◆ fAxisBins

Int_t* Hal::CutMonitor::fAxisBins
protected

array with numbers of axis bins

Definition at line 43 of file CutMonitor.h.

◆ fAxisMax

Double_t* Hal::CutMonitor::fAxisMax
protected

array with upper edges of axes

Definition at line 63 of file CutMonitor.h.

◆ fAxisMin

Double_t* Hal::CutMonitor::fAxisMin
protected

array with lower edges of axes

Definition at line 59 of file CutMonitor.h.

◆ fAxisNo

const Int_t Hal::CutMonitor::fAxisNo
protected

number of axis in cut monitor

Definition at line 31 of file CutMonitor.h.

◆ fCollectionID

Int_t Hal::CutMonitor::fCollectionID
protected

collection number of this cut monitor

Definition at line 39 of file CutMonitor.h.

◆ fCut

Cut** Hal::CutMonitor::fCut
protected

array with pointers to monitored cuts

Definition at line 75 of file CutMonitor.h.

◆ fCutNames

TString* Hal::CutMonitor::fCutNames
protected

array with pointers to names of monitored cuts

Definition at line 79 of file CutMonitor.h.

◆ fCuts

Int_t Hal::CutMonitor::fCuts
protected

number of currently added cuts

Definition at line 35 of file CutMonitor.h.

◆ fExUpdate

Bool_t Hal::CutMonitor::fExUpdate
protected

exclusive flag, true if monitor works in exclusive mode

Definition at line 71 of file CutMonitor.h.

◆ fHistoFailed

TH1* Hal::CutMonitor::fHistoFailed
protected

histogram with failed objects

Definition at line 55 of file CutMonitor.h.

◆ fHistoPassed

TH1* Hal::CutMonitor::fHistoPassed
protected

histogram with passed objects

Definition at line 51 of file CutMonitor.h.

◆ fInit

Bool_t Hal::CutMonitor::fInit
protected

init flag, true if monitor has been initialized

Definition at line 67 of file CutMonitor.h.

◆ fOptionAxis

Int_t* Hal::CutMonitor::fOptionAxis
protected

array with parameters numbers used from cuts for all axes

Definition at line 47 of file CutMonitor.h.

◆ fUpdateRatio

ECutUpdate Hal::CutMonitor::fUpdateRatio
protected

update ratio of this cut monitor

Definition at line 83 of file CutMonitor.h.


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