FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairBaseParSet Class Reference

#include <FairBaseParSet.h>

Inheritance diagram for FairBaseParSet:
FairParGenericSet FairParSet

Public Member Functions

 FairBaseParSet (const char *name="FairBaseParSet", const char *title="Class for base parameter io", const char *context="BaseDefaultContext")
 
 ~FairBaseParSet (void)
 
void clear (void)
 
void putParams (FairParamList *)
 
Bool_t getParams (FairParamList *)
 
void SetDetList (TObjArray *array)
 
void SetGen (FairPrimaryGenerator *gen)
 
void SetBeamMom (Double_t BMom)
 
void SetContListStr (TObjArray *list)
 
void SetRndSeed (UInt_t RndSeed)
 
TObjArray * GetDetList ()
 
FairPrimaryGeneratorGetPriGen ()
 
Double_t GetBeamMom ()
 
TObjArray * GetContList ()
 
UInt_t GetRndSeed ()
 
- Public Member Functions inherited from FairParGenericSet
 FairParGenericSet (const char *name, const char *title, const char *context, Bool_t ownership=kFALSE)
 
virtual ~FairParGenericSet ()
 
virtual void printParams ()
 
Bool_t init (FairParIo *inp)
 
Int_t write (FairParIo *output)
 
void fill (UInt_t)
 
void store (UInt_t)
 
- Public Member Functions inherited from FairParSet
 FairParSet (const char *name="", const char *title="", const char *context="", Bool_t owner=kFALSE)
 
virtual ~FairParSet ()
 
virtual const char * GetName () const
 
virtual const char * GetTitle () const
 
virtual Bool_t init ()
 
virtual Int_t write ()
 
virtual void print ()
 
const char * getDetectorName ()
 
void resetInputVersions ()
 
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 setOwnership (Bool_t flag=kTRUE)
 
Bool_t isOwned ()
 
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 (FairParSet &r)
 
FairParSetoperator= (const FairParSet &)
 
 FairParSet (const FairParSet &)
 
 ClassDef (FairParSet, 2)
 

Protected Member Functions

 ClassDef (FairBaseParSet, 6)
 
- Protected Member Functions inherited from FairParGenericSet
 FairParGenericSet ()
 
 ClassDef (FairParGenericSet, 1)
 

Protected Attributes

TObjArray * fDetList
 Detectors used in the simulation. More...
 
FairPrimaryGeneratorfPriGen
 Generator used for simulation. More...
 
Double_t fBeamMom
 Beam momentum (GeV/c) More...
 
TObjArray * fContNameList
 List of parameter container names in the RUN. More...
 
UInt_t fRandomSeed
 Random Seed from gRandom. More...
 
- Protected Attributes inherited from FairParSet
TString fName
 
TString fTitle
 
TString detName
 
Int_t versions [3]
 name of the detector the container belongs to More...
 
Bool_t status
 versions of container in the 2 possible inputs More...
 
Bool_t changed
 static flag More...
 
Bool_t owned
 flag is kTRUE if parameters have changed More...
 
TString paramContext
 if flag is KTRUE FairDB has the par. class ownership More...
 
TString author
 
TString description
 
FairLoggerfLogger
 

Detailed Description

Definition at line 26 of file FairBaseParSet.h.

Constructor & Destructor Documentation

FairBaseParSet::FairBaseParSet ( const char *  name = "FairBaseParSet",
const char *  title = "Class for base parameter io",
const char *  context = "BaseDefaultContext" 
)

constructor

Parameters
name: Parameter set name
title,:Parameter set title
context,:Parameter set context

Definition at line 22 of file FairBaseParSet.cxx.

FairBaseParSet::~FairBaseParSet ( void  )

dtor

Definition at line 31 of file FairBaseParSet.cxx.

Member Function Documentation

FairBaseParSet::ClassDef ( FairBaseParSet  ,
 
)
protected
void FairBaseParSet::clear ( void  )
virtual

clear

Reimplemented from FairParSet.

Definition at line 39 of file FairBaseParSet.cxx.

Double_t FairBaseParSet::GetBeamMom ( )
inline

Get the Beam Momentum used in the simulation (GeV/c)

Definition at line 91 of file FairBaseParSet.h.

TObjArray* FairBaseParSet::GetContList ( )
inline

Get the parameter container list used in this run

Definition at line 95 of file FairBaseParSet.h.

TObjArray* FairBaseParSet::GetDetList ( )
inline

Get the detector list used in the simulation

Definition at line 83 of file FairBaseParSet.h.

Bool_t FairBaseParSet::getParams ( FairParamList l)
virtual

Fills all persistent data members from the list after reading. The function returns false, when a data member is not in the list.

Parameters
FairParamList: Parameter list to be filled

Implements FairParGenericSet.

Definition at line 53 of file FairBaseParSet.cxx.

FairPrimaryGenerator* FairBaseParSet::GetPriGen ( )
inline

Get the Primery generator used in the simulation

Definition at line 87 of file FairBaseParSet.h.

UInt_t FairBaseParSet::GetRndSeed ( )
inline

Get the Random Seed used in this run

Definition at line 99 of file FairBaseParSet.h.

void FairBaseParSet::putParams ( FairParamList l)
virtual

Fills all persistent data members into the list for write.

Parameters
FairParamList: Parameter list to be filled

Implements FairParGenericSet.

Definition at line 41 of file FairBaseParSet.cxx.

void FairBaseParSet::SetBeamMom ( Double_t  BMom)
inline

Set the beam momentum (if any) used in the simulation

Parameters
BMom,:Beam Momentum in GeV/c

Definition at line 69 of file FairBaseParSet.h.

void FairBaseParSet::SetContListStr ( TObjArray *  list)
inline

Set the list of parameter containers used in a run

Parameters
array,:TObjArray of containers

Definition at line 74 of file FairBaseParSet.h.

void FairBaseParSet::SetDetList ( TObjArray *  array)
inline

Set the detector list used in the simulation

Parameters
array,:TObjArray of detector

Definition at line 59 of file FairBaseParSet.h.

void FairBaseParSet::SetGen ( FairPrimaryGenerator gen)
inline

Set the Generator used in the simulation

Parameters
gen,:Primary generator used in simulation

Definition at line 64 of file FairBaseParSet.h.

void FairBaseParSet::SetRndSeed ( UInt_t  RndSeed)
inline

Set the random seed used in a run

Parameters
RndSeed,:Random Seed

Definition at line 79 of file FairBaseParSet.h.

Member Data Documentation

Double_t FairBaseParSet::fBeamMom
protected

Beam momentum (GeV/c)

Definition at line 107 of file FairBaseParSet.h.

TObjArray* FairBaseParSet::fContNameList
protected

List of parameter container names in the RUN.

Definition at line 109 of file FairBaseParSet.h.

TObjArray* FairBaseParSet::fDetList
protected

Detectors used in the simulation.

Definition at line 103 of file FairBaseParSet.h.

FairPrimaryGenerator* FairBaseParSet::fPriGen
protected

Generator used for simulation.

Definition at line 105 of file FairBaseParSet.h.

UInt_t FairBaseParSet::fRandomSeed
protected

Random Seed from gRandom.

Definition at line 111 of file FairBaseParSet.h.


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