FairRoot/PandaRoot
PndSttParRootFileIo.cxx
Go to the documentation of this file.
1 //*-- AUTHOR : Denis Bertini
2 //*-- Modified : 06/10/2005 by Denis Bertini
3 
5 // PndSttParRootFileIo
6 //
7 // Class for Start parameter input/output from/into ROOT file
8 //
9 // It is derived from the base class HDetParRootFileIo and
10 // inherits from it basic functions e.g. write(...)
11 //
13 #include "PndSttParRootFileIo.h"
14 #include "FairParRootFileIo.h"
15 #include "FairRuntimeDb.h"
16 #include "PndSttDigiPar.h"
17 #include <iostream>
18 #include <iomanip>
19 
21 
22 PndSttParRootFileIo::PndSttParRootFileIo(FairParRootFile* f) : FairDetParRootFileIo(f)
23 {
24  fName="PndSttParIo";
25 }
26 
27 
29 {
30 }
31 
32 Bool_t PndSttParRootFileIo::init(FairParSet* pPar,Int_t* set)
33 {
34  const Text_t* name=pPar->GetName();
35  if (pFile)
36  {
37  if (!strcmp(name,"SttDigiPar")) return read((PndSttDigiPar*)pPar,set);
38  }
39  std::cerr<<"initialization of "<<name<<" not possible from ROOT file!"<<std::endl;
40  return kFALSE;
41 }
42 
43 
44 //Bool_t PndSttParRootFileIo::read(PndSttDigiPar* pPar,Int_t* set)
46 {
47  // No params are implemented
48  std::cout << "-I- PndSttParRootFileIo : reading " << std::endl;
49  return kTRUE;
50 }
51 
Bool_t init(FairParSet *, Int_t *)
Bool_t read(PndSttDigiPar *, Int_t *)
TFile * f
Definition: bump_analys.C:12
TString name
ClassImp(PndSttParRootFileIo) PndSttParRootFileIo