Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::Parameter Class Reference
Inheritance diagram for Hal::Parameter:
Hal::Object Hal::ParameterBool Hal::ParameterDouble Hal::ParameterFloat Hal::ParameterInt Hal::ParameterString Hal::ParameterUInt Hal::ParameterULong Hal::ParameterULong64

Public Member Functions

 Parameter ()
 
 Parameter (TString name, Char_t merge_mode='=')
 
void SetMergeMode (Char_t mergemode)
 
Bool_t CheckName (const TObject *object)
 
Long64_t Merge (TCollection *collection)
 
void Browse (TBrowser *b)
 
virtual TString HTMLExtract (Int_t=0, TString=" ") const
 
- Public Member Functions inherited from Hal::Object
 Object ()
 
virtual TString GetExtractType () const
 
virtual void HTMLExtractIntoTable (Int_t, HtmlTable &, TString="", TString="") const
 
virtual void Add (const Object *pack)
 
virtual Bool_t CanBeTableElement () const
 

Protected Types

enum class  EParameterMerge {
  kPlus , kMultiply , kEqual , kMaximum ,
  kMinimum , kFirst , kLast , kAverage
}
 

Protected Attributes

EParameterMerge fMergeMode
 

Detailed Description

Definition at line 21 of file Parameter.h.

Member Enumeration Documentation

◆ EParameterMerge

enum class Hal::Parameter::EParameterMerge
strongprotected

merging option

Enumerator
kPlus 

kPlus

kMultiply 

kMultiply

kEqual 

kEqual

kMaximum 

kMaximum

kMinimum 

kMinimum

kFirst 

kFirst

kLast 

kLast

kAverage 

kAverage

Definition at line 26 of file Parameter.h.

Constructor & Destructor Documentation

◆ Parameter() [1/2]

Hal::Parameter::Parameter ( )

default constructor shouldn't be used

Definition at line 24 of file Parameter.cxx.

◆ Parameter() [2/2]

Hal::Parameter::Parameter ( TString name,
Char_t merge_mode = '=' )

main constructor

Parameters
namename of parameter
merge_modemode of merging

Definition at line 26 of file Parameter.cxx.

◆ ~Parameter()

Hal::Parameter::~Parameter ( )
virtual

Definition at line 78 of file Parameter.cxx.

Member Function Documentation

◆ Browse()

void Hal::Parameter::Browse ( TBrowser * b)

used in TBrowser

Parameters
b

Definition at line 66 of file Parameter.cxx.

◆ CheckName()

Bool_t Hal::Parameter::CheckName ( const TObject * object)
Parameters
objectother object the same class
Returns
true if both objects have the same name

Definition at line 53 of file Parameter.cxx.

◆ HTMLExtract()

virtual TString Hal::Parameter::HTMLExtract ( Int_t = 0,
TString = " " ) const
inlinevirtual

extract this into HTML by return formated value of parameter

Parameters
counter- not used
dir- not used
Returns
formated value

Reimplemented from Hal::Object.

Reimplemented in Hal::ParameterBool, Hal::ParameterDouble, Hal::ParameterFloat, Hal::ParameterInt, Hal::ParameterString, Hal::ParameterUInt, Hal::ParameterULong64, and Hal::ParameterULong.

Definition at line 83 of file Parameter.h.

◆ Merge()

Long64_t Hal::Parameter::Merge ( TCollection * collection)
virtual

used to merge similar objects

Parameters
collection

Reimplemented from Hal::Object.

Definition at line 451 of file Parameter.cxx.

◆ SetMergeMode()

void Hal::Parameter::SetMergeMode ( Char_t mergemode)

set merge mode

Parameters
mergemodeone of following modes '+' for adding '=' if merged nodes must have similar values, other describe how value to this node (X) will be set according to value from added node (Y) '*' X=X*Y , 'f' X=X, 'l' X=Y, M X = max(X,Y), m X = min(X,Y), 'a' X = (X+Y)/2

Definition at line 31 of file Parameter.cxx.

Member Data Documentation

◆ fMergeMode

EParameterMerge Hal::Parameter::fMergeMode
protected

mergin mode for this parameter

Definition at line 39 of file Parameter.h.


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