EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairDetParAsciiFileIo.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairDetParAsciiFileIo.h
1 #ifndef FAIRDETPARASCIIFILEIO_H
2 #define FAIRDETPARASCIIFILEIO_H
3 
4 #include <fstream>
5 #include "FairDetParIo.h"
6 #include "TArrayI.h"
7 //#include "hgeomtransform.h"
8 #include "FairParGenericSet.h"
9 class FairDetGeomPar;
10 class FairGeomShapes;
11 
13 {
14  protected:
15  TString fHeader;
16  TString sepLine;
17  std::fstream* pFile;
18 // virtual Bool_t write(HDetector*) {return kTRUE;}
19  Bool_t findContainer(const Text_t* name);
20  Bool_t checkAllFound(Int_t*,Int_t);
21  void writeHeader(const Text_t*, const Text_t* context="",
22  const Text_t* author="", const Text_t* description="");
23  void writeComment(FairParSet*);
24  void readComment(const Char_t*, FairParSet*);
25 // Bool_t readLabPositions(const Text_t*,HDetGeomPar*,Int_t*,Int_t,Int_t);
26 // Bool_t readVolumes(const Text_t*,HDetGeomPar*);
27 // void readTransform(HGeomTransform&);
28 // Bool_t readVolume(HGeomVolume*,HGeomShapes*,Text_t*);
29 // void writeTransform(const HGeomTransform&);
30 // void writeVolume(HGeomVolume*,HGeomShapes*);
31 
32  public:
33  FairDetParAsciiFileIo(std::fstream* f);
35 // Bool_t read(HDetGeomPar*,Int_t*);
36 // Int_t writeFile(HDetGeomPar*);
37 
38  private:
39 
42 
43  ClassDef(FairDetParAsciiFileIo,0) // Class for detector parameter I/O from ascii file
44 };
45 
46 #endif /* !FAIRDETPARASCIIFILEIO_H */