HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HMagnetPar Class Reference

#include <hmagnetpar.h>

Inheritance diagram for HMagnetPar:
Collaboration diagram for HMagnetPar:

Public Member Functions

 HMagnetPar (const Char_t *name="MagnetPar", const Char_t *title="Magnet field and polarity", const Char_t *context="MagnetCurrentSetValues")
 
 ~HMagnetPar (void)
 
Int_t getCurrent (void)
 
Int_t getPolarity (void)
 
Int_t getMaximumCurrent (void)
 
Float_t getScalingFactor (void)
 
void setCurrent (Int_t c)
 
Bool_t init (HParIo *, Int_t *set=0)
 
Int_t write (HParIo *)
 
void clear (void)
 
void putParams (HParamList *)
 
Bool_t getParams (HParamList *)
 
- Public Member Functions inherited from HParCond
 HParCond (const Char_t *name, const Char_t *title, const Char_t *context)
 
virtual ~HParCond ()
 
virtual void printParams ()
 
- Public Member Functions inherited from HParSet
 HParSet (const Char_t *name="", const Char_t *title="", const Char_t *context="")
 
virtual ~HParSet ()
 
virtual Bool_t init (void)
 
virtual Bool_t init (HParIo *io)
 
virtual Int_t write ()
 
virtual void print ()
 
const Text_t * 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 setChanged (Bool_t flag=kTRUE)
 
Bool_t hasChanged ()
 
void setParamContext (const Char_t *)
 
const Char_t * getParamContext () const
 
void setAuthor (const Char_t *s)
 
const Char_t * getAuthor () const
 
void setDescription (const Char_t *s)
 
const Char_t * getDescription () const
 
void copyComment (HParSet &r)
 

Protected Attributes

Int_t current
 
Int_t maxCurrent
 
- Protected Attributes inherited from HParSet
Text_t detName [20]
 
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...
 
TString paramContext
 flag is kTRUE if parameters have changed More...
 
TString author
 
TString description
 

Additional Inherited Members

- Protected Member Functions inherited from HParCond
 HParCond ()
 

Detailed Description

Definition at line 7 of file hmagnetpar.h.

Constructor & Destructor Documentation

HMagnetPar::HMagnetPar ( const Char_t *  name = "MagnetPar",
const Char_t *  title = "Magnet field and polarity",
const Char_t *  context = "MagnetCurrentSetValues" 
)
HMagnetPar::~HMagnetPar ( void  )
inline

Definition at line 15 of file hmagnetpar.h.

Member Function Documentation

void HMagnetPar::clear ( void  )
virtual

Reimplemented from HParSet.

Definition at line 49 of file hmagnetpar.cc.

References HParSet::changed, current, HParSet::resetInputVersions(), and HParSet::status.

Int_t HMagnetPar::getCurrent ( void  )
inline

Definition at line 16 of file hmagnetpar.h.

References current.

Referenced by analysisDST(), and createHades().

Int_t HMagnetPar::getMaximumCurrent ( void  )
inline

Definition at line 18 of file hmagnetpar.h.

References maxCurrent.

Bool_t HMagnetPar::getParams ( HParamList l)
virtual

Implements HParCond.

Definition at line 63 of file hmagnetpar.cc.

References current, and HParamList::fill().

Int_t HMagnetPar::getPolarity ( void  )
inline

Definition at line 17 of file hmagnetpar.h.

Float_t HMagnetPar::getScalingFactor ( void  )

Definition at line 30 of file hmagnetpar.cc.

References current, and maxCurrent.

Referenced by HParticleTrackCleaner::reinit(), and HRKTrackBF2::reinit().

Bool_t HMagnetPar::init ( HParIo inp,
Int_t *  set = 0 
)
virtual

Reimplemented from HParCond.

Definition at line 35 of file hmagnetpar.cc.

References HParIo::getDetParIo(), HDetParIo::init(), and input.

void HMagnetPar::putParams ( HParamList l)
virtual

Implements HParCond.

Definition at line 57 of file hmagnetpar.cc.

References HParamList::add(), and current.

void HMagnetPar::setCurrent ( Int_t  c)
inline

Definition at line 20 of file hmagnetpar.h.

Referenced by analysisDST(), and createHades().

Int_t HMagnetPar::write ( HParIo output)
virtual

Reimplemented from HParCond.

Definition at line 42 of file hmagnetpar.cc.

References HParIo::getDetParIo(), and HDetParIo::write().

Member Data Documentation

Int_t HMagnetPar::current
protected

Definition at line 9 of file hmagnetpar.h.

Referenced by clear(), getCurrent(), getParams(), getScalingFactor(), and putParams().

Int_t HMagnetPar::maxCurrent
protected

Definition at line 10 of file hmagnetpar.h.

Referenced by getMaximumCurrent(), and getScalingFactor().


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