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

#include <SubCut.h>

Inheritance diagram for Hal::SubCutHisto:

Public Member Functions

 SubCutHisto (Int_t size=3)
 
Int_t GetSize () const
 
Bool_t SetAcceptanceHistogram (const TH1 &h)
 
Bool_t Validate (Double_t x, Double_t y=0, Double_t z=0)
 
Bool_t ValidateAbs (Double_t x, Double_t y=0, Double_t z=0)
 
SubCutHistooperator= (const SubCutHisto &other)
 
TH1 * GetHisto () const
 
Bool_t Init (const Cut &thisCut, Int_t par1, Int_t par2=-1, Int_t par3=-1)
 
 SubCutHisto (const SubCutHisto &other)
 
void AddToReport (Package *report) const
 

Detailed Description

Similar helper like SubCut but instead of parameters - histogram of acceptance is used

Definition at line 119 of file SubCut.h.

Constructor & Destructor Documentation

◆ SubCutHisto() [1/2]

Hal::SubCutHisto::SubCutHisto ( Int_t size = 3)

constructor

Parameters
sizedefault sub-cut size

Definition at line 109 of file SubCut.cxx.

◆ SubCutHisto() [2/2]

Hal::SubCutHisto::SubCutHisto ( const SubCutHisto & other)

copy constructor

Parameters
other

Definition at line 111 of file SubCut.cxx.

◆ ~SubCutHisto()

Hal::SubCutHisto::~SubCutHisto ( )
virtual

Definition at line 119 of file SubCut.cxx.

Member Function Documentation

◆ AddToReport()

void Hal::SubCutHisto::AddToReport ( Package * report) const

add this object to cut report

Definition at line 88 of file SubCut.cxx.

◆ GetHisto()

TH1 * Hal::SubCutHisto::GetHisto ( ) const
inline
Returns
accpetance histogram

Definition at line 166 of file SubCut.h.

◆ GetSize()

Int_t Hal::SubCutHisto::GetSize ( ) const
inline
Returns
number of checked values

Definition at line 136 of file SubCut.h.

◆ Init()

Bool_t Hal::SubCutHisto::Init ( const Cut & thisCut,
Int_t par1,
Int_t par2 = -1,
Int_t par3 = -1 )

check if everything is ok

Parameters
thisCutreference to this cut
par1ID of first checked parameter in thisCut object
par2ID of second checked parameter in thisCut object
par3ID of third checked parameter in thisCut object
Returns
tru if this is ok

Definition at line 145 of file SubCut.cxx.

◆ operator=()

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

operator =

Parameters
other
Returns

Definition at line 184 of file SubCut.cxx.

◆ SetAcceptanceHistogram()

Bool_t Hal::SubCutHisto::SetAcceptanceHistogram ( const TH1 & h)

set acceptance histogram

Parameters
hhistogram with acceptance, shoud have the same numerf of dimesions like number fSize, values should be between 0 and 1 and describe probablity of accepting/rejecting object
Returns
false if histogram cannot be used here

Definition at line 153 of file SubCut.cxx.

◆ Validate()

Bool_t Hal::SubCutHisto::Validate ( Double_t x,
Double_t y = 0,
Double_t z = 0 )

check values

Returns
return true if values for all axes are between fMin and fMax

Definition at line 123 of file SubCut.cxx.

◆ ValidateAbs()

Bool_t Hal::SubCutHisto::ValidateAbs ( Double_t x,
Double_t y = 0,
Double_t z = 0 )

check values

Returns
return true if absolute values for all axes are between fMin and fMax

Definition at line 141 of file SubCut.cxx.


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