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

Public Member Functions

 EventBinningCut (const EventCut &cut, const std::initializer_list< Int_t > &init)
 
 EventBinningCut (const EventCut &cut, const std::initializer_list< std::initializer_list< Double_t > > &init)
 
 EventBinningCut (const EventBinningCut &other)
 
EventBinningCutMakeCopy () const
 
EventBinningCutMakeCopyReal () const
 
EventBinningCutMakeCopyImg () const
 
EventBinningCutoperator= (const EventBinningCut &other)
 
EventCutGetCut () const
 
Int_t GetBinsNo () const
 
void GetBinParam (Int_t bin, std::vector< Double_t > &mini, std::vector< Double_t > &maxi, std::vector< TString > &strings) const
 
virtual PackageReport () const
 
virtual Bool_t Pass (Event *event)
 
virtual Int_t CheckBin (Event *event)
 
virtual Bool_t Init (Int_t task_id)
 
virtual void Print (Option_t *opt=0) const
 
virtual TString CutName (Option_t *opt="") const
 
- Public Member Functions inherited from Hal::EventCut
 EventCut (const Int_t i=1)
 
virtual ~EventCut ()
 
- Public Member Functions inherited from Hal::Cut
 Cut (const Int_t size=1, ECutUpdate update=ECutUpdate::kNo, TString groupFlag="")
 
 Cut (const Cut &cut)
 
Cutoperator= (const Cut &other)
 
void SetLabel (Int_t label)
 
void Finish ()
 
void Reset ()
 
void SetMinAndMax (Double_t val, Int_t i=0)
 
void SetMinMax (Double_t min, Double_t max, Int_t i=0)
 
TString GetGroupFlag () const
 
ECutUpdate GetUpdateRatio () const
 
Cut ** MultiClone (Int_t no, Bool_t increment_collections=kFALSE)
 
void SetMinimum (Double_t min, Int_t i=0)
 
void SetMaximum (Double_t max, Int_t i=0)
 
void SetValue (Double_t val, Int_t i=0)
 
void SetUnitName (TString name, Int_t i=0)
 
void SetCollectionID (Int_t i)
 
Int_t GetCutSize () const
 
Int_t GetCollectionID () const
 
Bool_t HasPassed () const
 
Bool_t IsCloned () const
 
Double_t GetMin (Int_t i=0) const
 
Double_t GetMax (Int_t i=0) const
 
Double_t GetValue (Int_t i=0) const
 
Double_t GetWeight ()
 
ULong64_t GetPassed () const
 
ULong64_t GetTotal () const
 
ULong64_t GetFailed () const
 
TString GetUnit (Int_t i) const
 
TObjArray * Split (Int_t n, Int_t i=0, Double_t shift=0) const
 
virtual std::vector< std::pair< TString, Double_t > > GetBinLabels (Int_t par=0) const
 

Protected Member Functions

 EventBinningCut (const EventCut &cut, const std::vector< std::vector< Double_t > > &init)
 
void PreInit (const std::vector< std::vector< Double_t > > &vals)
 
- Protected Member Functions inherited from Hal::Cut
Bool_t Validate ()
 
Bool_t AntiValidate ()
 
Bool_t ValidateAbs ()
 
Bool_t ForcedUpdate (Bool_t state)
 
Bool_t FormatEquals (TString format, Int_t format_id, EFormatDepth depth=EFormatDepth::kAll) const
 
Bool_t FormatInhertis (TString format, Int_t format_id, EFormatDepth depth=EFormatDepth::kAll) const
 
Bool_t InLimits (Int_t par) const
 
Bool_t OutLimits (Int_t par) const
 

Protected Attributes

Int_t fTotalBinsNo = {1}
 
Bool_t fLastPassed = {kFALSE}
 
std::vector< Double_t > fMinTotal
 
std::vector< Double_t > fMaxTotal
 
std::vector< Int_t > fBinConv
 
std::vector< Int_t > fStepsNo
 
std::vector< std::vector< Double_t > > fValuesUp
 
EventCutfEventCut = {nullptr}
 
- Protected Attributes inherited from Hal::Cut
const Int_t fCutSize
 
Bool_t fInit
 
Int_t fIsCloned
 
Int_t fState
 
Int_t fCollectionID
 
Int_t fLabel
 
const ECutUpdate fUpdateRatio
 
Double_t fWeight
 
const TString fGroupFlag
 

Detailed Description

Definition at line 20 of file EventBinningCut.h.

Constructor & Destructor Documentation

◆ EventBinningCut() [1/4]

Hal::EventBinningCut::EventBinningCut ( const EventCut & cut,
const std::vector< std::vector< Double_t > > & init )
protected

Definition at line 60 of file EventBinningCut.cxx.

◆ EventBinningCut() [2/4]

Hal::EventBinningCut::EventBinningCut ( )

Definition at line 24 of file EventBinningCut.cxx.

◆ EventBinningCut() [3/4]

Hal::EventBinningCut::EventBinningCut ( const EventCut & cut,
const std::initializer_list< std::initializer_list< Double_t > > & init )

Definition at line 89 of file EventBinningCut.cxx.

◆ EventBinningCut() [4/4]

Hal::EventBinningCut::EventBinningCut ( const EventBinningCut & other)

Definition at line 49 of file EventBinningCut.cxx.

◆ ~EventBinningCut()

Hal::EventBinningCut::~EventBinningCut ( )
virtual

Definition at line 149 of file EventBinningCut.cxx.

Member Function Documentation

◆ CheckBin()

Int_t Hal::EventBinningCut::CheckBin ( Event * event)
virtual

Definition at line 160 of file EventBinningCut.cxx.

◆ CutName()

TString Hal::EventBinningCut::CutName ( Option_t * opt = "") const
virtual
Parameters
optadditional option, if you add this cut directly then not used, however if you create pure real /imaginary cut then you can get obtain complex cut name by set option "re" or "im"
Returns
name of cut (usally Classname)

Reimplemented from Hal::Cut.

Definition at line 239 of file EventBinningCut.cxx.

◆ GetBinParam()

void Hal::EventBinningCut::GetBinParam ( Int_t bin,
std::vector< Double_t > & mini,
std::vector< Double_t > & maxi,
std::vector< TString > & strings ) const

Definition at line 212 of file EventBinningCut.cxx.

◆ GetBinsNo()

Int_t Hal::EventBinningCut::GetBinsNo ( ) const
inline

Definition at line 44 of file EventBinningCut.h.

◆ GetCut()

EventCut * Hal::EventBinningCut::GetCut ( ) const
inline

Definition at line 43 of file EventBinningCut.h.

◆ Init()

Bool_t Hal::EventBinningCut::Init ( Int_t )
virtual

initialize object

Parameters
format_idid of format used in current task

Reimplemented from Hal::Cut.

Definition at line 177 of file EventBinningCut.cxx.

◆ MakeCopy()

EventBinningCut * Hal::EventBinningCut::MakeCopy ( ) const
virtual

copy of this cut, can be implemented by CutDef macro (if cut don't have dynamically allocated objects or have copy ctor

Returns
copy of this cut

Reimplemented from Hal::Cut.

Definition at line 153 of file EventBinningCut.cxx.

◆ MakeCopyImg()

EventBinningCut * Hal::EventBinningCut::MakeCopyImg ( ) const

Definition at line 185 of file EventBinningCut.cxx.

◆ MakeCopyReal()

EventBinningCut * Hal::EventBinningCut::MakeCopyReal ( ) const

Definition at line 183 of file EventBinningCut.cxx.

◆ operator=()

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

Definition at line 134 of file EventBinningCut.cxx.

◆ Pass()

Bool_t Hal::EventBinningCut::Pass ( Event * event)
virtual

return true if event pass cut, false otherwise, should be overwittern in subclass *

Parameters
event- event to check

Implements Hal::EventCut.

Definition at line 155 of file EventBinningCut.cxx.

◆ PreInit()

void Hal::EventBinningCut::PreInit ( const std::vector< std::vector< Double_t > > & vals)
protected

Definition at line 105 of file EventBinningCut.cxx.

◆ Print()

void Hal::EventBinningCut::Print ( Option_t * option = 0) const
virtual

print information about this cut

Reimplemented from Hal::Cut.

Definition at line 187 of file EventBinningCut.cxx.

◆ Report()

Package * Hal::EventBinningCut::Report ( ) const
virtual

create package

Reimplemented from Hal::EventCut.

Definition at line 26 of file EventBinningCut.cxx.

Member Data Documentation

◆ fBinConv

std::vector<Int_t> Hal::EventBinningCut::fBinConv
protected

Definition at line 26 of file EventBinningCut.h.

◆ fEventCut

EventCut* Hal::EventBinningCut::fEventCut = {nullptr}
protected

Definition at line 30 of file EventBinningCut.h.

◆ fLastPassed

Bool_t Hal::EventBinningCut::fLastPassed = {kFALSE}
protected

Definition at line 23 of file EventBinningCut.h.

◆ fMaxTotal

std::vector<Double_t> Hal::EventBinningCut::fMaxTotal
protected

Definition at line 25 of file EventBinningCut.h.

◆ fMinTotal

std::vector<Double_t> Hal::EventBinningCut::fMinTotal
protected

Definition at line 24 of file EventBinningCut.h.

◆ fStepsNo

std::vector<Int_t> Hal::EventBinningCut::fStepsNo
protected

Definition at line 27 of file EventBinningCut.h.

◆ fTotalBinsNo

Int_t Hal::EventBinningCut::fTotalBinsNo = {1}
protected

Definition at line 22 of file EventBinningCut.h.

◆ fValuesUp

std::vector<std::vector<Double_t> > Hal::EventBinningCut::fValuesUp
protected

Definition at line 29 of file EventBinningCut.h.


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