#include "hparset.h"

HParSet


class description - source file - inheritance tree (.pdf)

class HParSet : public TNamed

Inheritance Chart:
TObject
<-
TNamed
<-
HParSet
<-
HDetGeomPar
<-
HMdcGeomPar
HShowerGeometry
HStartGeomPar
HTofGeomPar
HTofinoGeomPar
HWallGeomPar
HHodoCalPar
HHodoLookup
HHodoRefHitPar
 [more...]

    public:
HParSet(const char* name, const char* title, const char* context) HParSet(const HParSet&) virtual ~HParSet() static TClass* Class() virtual void clear() void copyComment(HParSet& r) const char* getAuthor() const const char* getDescription() const const Text_t* getDetectorName() const Int_t getInputVersion(Int_t i) const char* getParamContext() const Bool_t hasChanged() virtual Bool_t init() virtual Bool_t init(HParIo* io) virtual Bool_t init(HParIo*, Int_t*) virtual TClass* IsA() const Bool_t isStatic() HParSet& operator=(const HParSet&) virtual void print() void resetInputVersions() void setAuthor(const char* s) void setChanged(Bool_t flag = kTRUE) void setDescription(const char* s) void setInputVersion(Int_t v = -1, Int_t i = 0) void setParamContext(const char*) void setStatic(Bool_t flag = kTRUE) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual Int_t write() virtual Int_t write(HParIo*)

Data Members


    protected:
Text_t detName[10] ! name of the detector the container belongs to Int_t versions[3] ! versions of container in the 2 possible inputs Bool_t status ! static flag Bool_t changed ! flag is kTRUE if parameters have changed TString paramContext Context/purpose for parameters and conditions TString author Author of parameters TString description Description of parameters

Class Description

  HParSet

  Base class for all parameter containers



HParSet(const char* name,const char* title,const char* context) : TNamed(name,title)
 constructor sets default values of data elements

Bool_t init(HParIo* io)
 intitializes the container from an input in run time
 database. If this is not successful it is initialized from
 the second input. If this failes too, it returns an error.
 (calls internally the init function in the derived class)

Int_t write()
 writes the container to the output defined in the runtime database
 returns the output version in the ROOT file
 returns -1 if error occured
 (calls internally the init function in the derived class)

void print()
 prints information about container (versions,status,hasChanged...)

void resetInputVersions()
 resets the input versions if the container is not static

void setParamContext(const char* context)
 Sets the context
 The context is normally set via the constructor and this function is somehow dangerous.
 It should be only used, when a container is initialized from old parameter files,
 when a container is initialized from old parameter files, which do not yet support the
 context.

void Streamer(TBuffer &R__b)
 Streams an object of class HParSet.



Inline Functions


                 void ~HParSet()
               Bool_t init(HParIo* io)
               Bool_t init(HParIo*, Int_t*)
                Int_t write(HParIo*)
                 void clear()
        const Text_t* getDetectorName() const
                 void setInputVersion(Int_t v = -1, Int_t i = 0)
                Int_t getInputVersion(Int_t i)
                 void setStatic(Bool_t flag = kTRUE)
               Bool_t isStatic()
                 void setChanged(Bool_t flag = kTRUE)
               Bool_t hasChanged()
          const char* getParamContext() const
                 void setAuthor(const char* s)
          const char* getAuthor() const
                 void setDescription(const char* s)
          const char* getDescription() const
                 void copyComment(HParSet& r)
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void StreamerNVirtual(TBuffer& b)
              HParSet HParSet(const HParSet&)
             HParSet& operator=(const HParSet&)


Last update: Mon Feb 5 16:51:53 2007


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.