ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
PHGeomIOTGeo store geometry information to DST files in the format of binary streamed TGeoVolume. It completely owns the geometry object For run-time use of TGeoManager, please use PHGeomTGeo For operation of this class with DST node, please use PHGeomUtility. More...
#include <coresoftware/blob/master/offline/packages/PHGeometry/PHGeomIOTGeo.h>
Public Member Functions | |
PHGeomIOTGeo () | |
~PHGeomIOTGeo () override | |
PHObject * | CloneMe () const override |
Virtual copy constructor. | |
void | identify (std::ostream &os=std::cout) const override |
void | Reset () override |
Clear Event. | |
int | isValid () const override |
isValid returns non zero if object contains vailid data | |
void | SetGeometry (const TGeoVolume *g) |
PHGeomIOTGeo do NOT own this TGeoVolume * g. Internally, it will use g to make a copy which PHGeomIOTGeo fully owns. | |
TGeoManager * | ConstructTGeoManager () |
Construct TGeoManager. The result TGeoManager is not yet closed and open for further editing. | |
TGeoVolume * | GetGeometryCopy () |
std::vector< char > & | GetData () |
const std::vector< char > & | GetData () const |
Public Member Functions inherited from PHObject | |
PHObject () | |
ctor | |
~PHObject () override | |
dtor | |
virtual PHObject * | clone () const final |
PHObject * | Clone (const char *newname="") const final |
void | Copy (TObject &object) const final |
virtual int | isValid (const float) const |
virtual int | isValid (const double) const |
virtual int | isValid (const int) const |
virtual int | isValid (const unsigned int) const |
virtual int | isImplemented (const float f) const |
virtual int | isImplemented (const double f) const |
virtual int | isImplemented (const int i) const |
virtual int | isImplemented (const unsigned int i) const |
virtual int | Integrate () const |
virtual int | Integrate (PHObject *) |
virtual void | CopyFrom (const PHObject *obj) |
Protected Attributes | |
std::vector< char > | Data |
store the streamed geometry and its streamer via a binary stream | |
PHGeomIOTGeo store geometry information to DST files in the format of binary streamed TGeoVolume. It completely owns the geometry object For run-time use of TGeoManager, please use PHGeomTGeo For operation of this class with DST node, please use PHGeomUtility.
Definition at line 27 of file PHGeomIOTGeo.h.
View newest version in sPHENIX GitHub at line 27 of file PHGeomIOTGeo.h
PHGeomIOTGeo::PHGeomIOTGeo | ( | ) |
Definition at line 25 of file PHGeomIOTGeo.cc.
View newest version in sPHENIX GitHub at line 25 of file PHGeomIOTGeo.cc
Referenced by CloneMe().
|
override |
Definition at line 30 of file PHGeomIOTGeo.cc.
View newest version in sPHENIX GitHub at line 30 of file PHGeomIOTGeo.cc
References Data.
|
inlineoverridevirtual |
Virtual copy constructor.
Reimplemented from PHObject.
Definition at line 33 of file PHGeomIOTGeo.h.
View newest version in sPHENIX GitHub at line 33 of file PHGeomIOTGeo.h
References PHGeomIOTGeo().
TGeoManager * PHGeomIOTGeo::ConstructTGeoManager | ( | ) |
Construct TGeoManager. The result TGeoManager is not yet closed and open for further editing.
Definition at line 70 of file PHGeomIOTGeo.cc.
View newest version in sPHENIX GitHub at line 70 of file PHGeomIOTGeo.cc
References GetGeometryCopy(), and isValid().
Referenced by MakeActsGeometry::editTPCGeometry().
|
inline |
Definition at line 64 of file PHGeomIOTGeo.h.
View newest version in sPHENIX GitHub at line 64 of file PHGeomIOTGeo.h
References Data.
|
inline |
Definition at line 70 of file PHGeomIOTGeo.h.
View newest version in sPHENIX GitHub at line 70 of file PHGeomIOTGeo.h
References Data.
TGeoVolume * PHGeomIOTGeo::GetGeometryCopy | ( | ) |
Make a copy of TGeoVolume. The caller is responsible for deleting the returned TGeoVolume The caller is also responsible for constructing a valid TGeoManager before calling this function
Definition at line 56 of file PHGeomIOTGeo.cc.
View newest version in sPHENIX GitHub at line 56 of file PHGeomIOTGeo.cc
References Data, f2, and isValid().
Referenced by ConstructTGeoManager().
|
overridevirtual |
identify Function from PHObject
os | Output Stream |
Reimplemented from PHObject.
Definition at line 98 of file PHGeomIOTGeo.cc.
View newest version in sPHENIX GitHub at line 98 of file PHGeomIOTGeo.cc
References Data, and isValid().
|
overridevirtual |
isValid returns non zero if object contains vailid data
Reimplemented from PHObject.
Definition at line 115 of file PHGeomIOTGeo.cc.
View newest version in sPHENIX GitHub at line 115 of file PHGeomIOTGeo.cc
References Data.
Referenced by ConstructTGeoManager(), MakeActsGeometry::editTPCGeometry(), GetGeometryCopy(), and identify().
|
overridevirtual |
Clear Event.
Reimplemented from PHObject.
Definition at line 109 of file PHGeomIOTGeo.cc.
View newest version in sPHENIX GitHub at line 109 of file PHGeomIOTGeo.cc
References Data.
void PHGeomIOTGeo::SetGeometry | ( | const TGeoVolume * | g | ) |
PHGeomIOTGeo do NOT own this TGeoVolume * g. Internally, it will use g to make a copy which PHGeomIOTGeo fully owns.
Definition at line 35 of file PHGeomIOTGeo.cc.
View newest version in sPHENIX GitHub at line 35 of file PHGeomIOTGeo.cc
References Data, f1, n, and n1.
Referenced by PHGeomUtility::UpdateIONode().
|
protected |
store the streamed geometry and its streamer via a binary stream
Definition at line 77 of file PHGeomIOTGeo.h.
View newest version in sPHENIX GitHub at line 77 of file PHGeomIOTGeo.h
Referenced by GetData(), GetGeometryCopy(), identify(), isValid(), Reset(), SetGeometry(), and ~PHGeomIOTGeo().