ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHGeomIOTGeo.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHGeomIOTGeo.h
1 // $Id: $
2 
11 #ifndef PHGEOMETRY_PHGEOMIOTGEO_H
12 #define PHGEOMETRY_PHGEOMIOTGEO_H
13 
14 #include <phool/PHObject.h>
15 
16 #include <iostream>
17 #include <vector>
18 
19 class TGeoVolume;
20 class TGeoManager;
21 
27 class PHGeomIOTGeo : public PHObject
28 {
29  public:
30  PHGeomIOTGeo();
31  ~PHGeomIOTGeo() override;
32 
33  PHObject* CloneMe() const override {return new PHGeomIOTGeo(*this);}
34 
38  void
39  identify(std::ostream& os = std::cout) const override;
40 
42  void
43  Reset() override;
44 
46  int
47  isValid() const override;
48 
50  void
51  SetGeometry(const TGeoVolume* g);
52 
54  TGeoManager*
56 
60  TGeoVolume*
62 
63  std::vector<char>&
65  {
66  return Data;
67  }
68 
69  const std::vector<char>&
70  GetData() const
71  {
72  return Data;
73  }
74 
75  protected:
77  std::vector<char> Data;
78 
79  ClassDefOverride(PHGeomIOTGeo, 3)
80 };
81 
82 #endif