12 #ifndef ROOT_TParameter 13 #define ROOT_TParameter 36 template <
class AParamType>
67 void SetVal(
const AParamType &val) { fVal = val; }
78 if (mergemode ==
'*') {
80 }
else if (mergemode ==
'M') {
82 }
else if (mergemode ==
'm') {
84 }
else if (mergemode ==
'f') {
86 }
else if (mergemode ==
'l') {
96 if (
this == obj)
return 0;
103 std::cout <<
"OBJ: " << IsA()->GetName() <<
"\t" << fName <<
" = " << fVal << std::endl;
109 std::cout << IsA()->GetName() <<
"\t" << fName <<
" = " << fVal << std::endl;
117 template <
class AParamType>
Bool_t TestBit(UInt_t f) const
Buffer base class used for serializing objects.
const char * GetName() const
Returns name of object.
TParameter(const char *name, const AParamType &val, char mergemode)
void SetVal(const AParamType &val)
void SetMergeMode(char mergemode='+')
virtual Int_t Merge(TCollection *in)
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
#define ClassDef(name, id)
virtual void ls(Option_t *) const
The ls function lists the contents of a class on stdout.
TParameter(const char *name, const AParamType &val)
virtual ULong_t Hash() const
Return hash value for this object.
Named parameter, streamable and storable.
Collection abstract base class.
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
The ROOT global object gROOT contains a list of all defined classes.
virtual Bool_t IsSortable() const
int CompareTo(const char *cs, ECaseCompare cmp=kExact) const
Compare a string to char *cs2.
Mother of all ROOT objects.
const AParamType & GetVal() const
virtual const char * GetName() const
Returns name of object.
virtual void Print(Option_t *) const
This method must be overridden when a class wants to print itself.
virtual Int_t Compare(const TObject *obj) const
Compare abstract method.