ROOT logo
//*-- AUTHOR : Ilse Koenig
//*-- Created : 28/01/2009

//_HADES_CLASS_DESCRIPTION 
///////////////////////////////////////////////////////////////////////////
//
//  HParCond
//
//  Base class for all condition-stype parameter containers
//
//  The following functions must be implemented by the derived class:
//
//    void putParams(HParamList*)    Fills all persistent data members into
//                                   the list for write.
//
//    Bool_t getParams(HParamList*)  Fills all persistent data members from
//                                   the list after reading. The function
//                                   returns false, when a data member is
//                                   not in the list.
//
///////////////////////////////////////////////////////////////////////////

#include "hparcond.h"
#include "hparamlist.h"
#include "hpario.h"
#include "hdetpario.h"
#include <iostream> 
#include <iomanip>

ClassImp(HParCond)

Bool_t HParCond::init(HParIo* inp,Int_t* set) {
  // intitializes the parameter container from an input
  HDetParIo* input=inp->getDetParIo("HCondParIo");
  if (input) return (input->init(this,set));
  return kFALSE;
}

Int_t HParCond::write(HParIo* output) {
  // writes the parameter container to the output
  HDetParIo* out=output->getDetParIo("HCondParIo");
  if (out) return out->write(this);
  return -1;
}

void HParCond::printParams() {
  // prints information about the container
  std::cout<<"\n---------------------------------------------\n";
  std::cout<<"-----  "<<GetName()<<"  -----\n";
  if (!paramContext.IsNull()) std::cout<<"--  Context/Purpose:  "<<paramContext<<'\n';
  if (!author.IsNull())       std::cout<<"--  Author:           "<<author<<'\n';
  if (!description.IsNull())  std::cout<<"--  Description:      "<<description<<'\n';
  std::cout<<"---------------------------------------------\n";
  HParamList* condList = new HParamList;
  putParams(condList);
  condList->print();
  std::cout<<"---------------------------------------------\n\n";
  delete condList;
} 
 
 hparcond.cc:1
 hparcond.cc:2
 hparcond.cc:3
 hparcond.cc:4
 hparcond.cc:5
 hparcond.cc:6
 hparcond.cc:7
 hparcond.cc:8
 hparcond.cc:9
 hparcond.cc:10
 hparcond.cc:11
 hparcond.cc:12
 hparcond.cc:13
 hparcond.cc:14
 hparcond.cc:15
 hparcond.cc:16
 hparcond.cc:17
 hparcond.cc:18
 hparcond.cc:19
 hparcond.cc:20
 hparcond.cc:21
 hparcond.cc:22
 hparcond.cc:23
 hparcond.cc:24
 hparcond.cc:25
 hparcond.cc:26
 hparcond.cc:27
 hparcond.cc:28
 hparcond.cc:29
 hparcond.cc:30
 hparcond.cc:31
 hparcond.cc:32
 hparcond.cc:33
 hparcond.cc:34
 hparcond.cc:35
 hparcond.cc:36
 hparcond.cc:37
 hparcond.cc:38
 hparcond.cc:39
 hparcond.cc:40
 hparcond.cc:41
 hparcond.cc:42
 hparcond.cc:43
 hparcond.cc:44
 hparcond.cc:45
 hparcond.cc:46
 hparcond.cc:47
 hparcond.cc:48
 hparcond.cc:49
 hparcond.cc:50
 hparcond.cc:51
 hparcond.cc:52
 hparcond.cc:53
 hparcond.cc:54
 hparcond.cc:55
 hparcond.cc:56
 hparcond.cc:57
 hparcond.cc:58
 hparcond.cc:59
 hparcond.cc:60