HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
htofgeompar.cc
Go to the documentation of this file.
1 //*-- AUTHOR : Ilse Koenig
2 //*-- Createded : 10/03/2000
3 
4 //_HADES_CLASS_DESCRIPTION
5 //////////////////////////////////////////////////////////////////////////////
6 // HTofGeomPar
7 //
8 // Container class for the basic TOF geometry parameters
9 //
10 //////////////////////////////////////////////////////////////////////////////
11 using namespace std;
12 #include "htofgeompar.h"
13 #include "hades.h"
14 #include "hruntimedb.h"
15 #include "hpario.h"
16 #include "hdetpario.h"
17 #include <iostream>
18 #include <iomanip>
19 
21 
22 HTofGeomPar::HTofGeomPar(const Char_t* name,const Char_t* title,
23  const Char_t* context)
24  : HDetGeomPar(name,title,context,"Tof") {
25  // constructor calling the base class constructor with the detector name
26 }
27 
28 Bool_t HTofGeomPar::init(HParIo* inp,Int_t* set) {
29  // intitializes the container from an input
30  HDetParIo* input=inp->getDetParIo("HTofParIo");
31  if (input) return (input->init(this,set));
32  return kFALSE;
33 }
34 
36  // writes the container to an output
37  HDetParIo* out=output->getDetParIo("HTofParIo");
38  if (out) return out->write(this);
39  return -1;
40 }
virtual Bool_t init(HParSet *, Int_t *)
Definition: hdetpario.h:27
virtual HDetParIo * getDetParIo(const Text_t *)
Definition: hpario.cc:50
Definition: hpario.h:11
virtual Int_t write()
Definition: hparset.cc:119
TString input
Definition: GarReader.C:5
return output
ClassImp(HTofGeomPar) HTofGeomPar
Definition: htofgeompar.cc:20
virtual Int_t write(HParSet *)
Definition: hdetpario.h:30
virtual Bool_t init(void)
Definition: hparset.h:21