![]() |
ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
PHGeomTGeo provide run-time access to TGeoManger. It is transient object and it shall NOT be saved to DST. For DST storage, please use PHGeomIOTGeo For operation of this class with DST node, please use PHGeomUtility. More...
#include <coresoftware/blob/master/offline/packages/PHGeometry/PHGeomTGeo.h>
Inheritance diagram for PHGeomTGeo:
Collaboration diagram for PHGeomTGeo:Public Member Functions | |
| PHGeomTGeo () | |
| ~PHGeomTGeo () override | |
| 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 (TGeoManager *g) |
| TGeoManager * | GetGeometry () |
| bool | ConsistencyCheck () const |
Public Member Functions inherited from PHObject | |
| PHObject () | |
| ctor | |
| ~PHObject () override | |
| dtor | |
| virtual PHObject * | CloneMe () const |
| Virtual copy constructor. | |
| 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 | |
| TGeoManager * | _fGeom |
| store and stream the full geometry via DST objects | |
PHGeomTGeo provide run-time access to TGeoManger. It is transient object and it shall NOT be saved to DST. For DST storage, please use PHGeomIOTGeo For operation of this class with DST node, please use PHGeomUtility.
Definition at line 26 of file PHGeomTGeo.h.
View newest version in sPHENIX GitHub at line 26 of file PHGeomTGeo.h
| PHGeomTGeo::PHGeomTGeo | ( | ) |
Definition at line 21 of file PHGeomTGeo.cc.
View newest version in sPHENIX GitHub at line 21 of file PHGeomTGeo.cc
|
override |
Definition at line 26 of file PHGeomTGeo.cc.
View newest version in sPHENIX GitHub at line 26 of file PHGeomTGeo.cc
References _fGeom, and ConsistencyCheck().
Here is the call graph for this function:| bool PHGeomTGeo::ConsistencyCheck | ( | ) | const |
Since ROOT force TGeoManager is a unique object via global pointer gGeoManager, this function checks whether _fGeom is still the current gGeoManager which avoids operates on an invalid pointer
Definition at line 109 of file PHGeomTGeo.cc.
View newest version in sPHENIX GitHub at line 109 of file PHGeomTGeo.cc
References _fGeom, and g4zmq::exit().
Referenced by GetGeometry(), identify(), isValid(), Reset(), SetGeometry(), and ~PHGeomTGeo().
Here is the call graph for this function:
Here is the caller graph for this function:| TGeoManager * PHGeomTGeo::GetGeometry | ( | ) |
Definition at line 54 of file PHGeomTGeo.cc.
View newest version in sPHENIX GitHub at line 54 of file PHGeomTGeo.cc
References _fGeom, and ConsistencyCheck().
Referenced by PHGeomUtility::GetTGeoManager(), PHGeomUtility::ImportCurrentTGeoManager(), and PHGeomUtility::ImportGeomFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
identify Function from PHObject
| os | Output Stream |
Reimplemented from PHObject.
Definition at line 72 of file PHGeomTGeo.cc.
View newest version in sPHENIX GitHub at line 72 of file PHGeomTGeo.cc
References _fGeom, and ConsistencyCheck().
Here is the call graph for this function:
|
overridevirtual |
isValid returns non zero if object contains vailid data
Reimplemented from PHObject.
Definition at line 98 of file PHGeomTGeo.cc.
View newest version in sPHENIX GitHub at line 98 of file PHGeomTGeo.cc
References _fGeom, and ConsistencyCheck().
Referenced by MakeActsGeometry::editTPCGeometry(), PHGeomUtility::GetTGeoManager(), and PHGeomUtility::ImportCurrentTGeoManager().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Clear Event.
Reimplemented from PHObject.
Definition at line 85 of file PHGeomTGeo.cc.
View newest version in sPHENIX GitHub at line 85 of file PHGeomTGeo.cc
References _fGeom, and ConsistencyCheck().
Referenced by MakeActsGeometry::editTPCGeometry(), and PHGeomUtility::ImportGeomFile().
Here is the call graph for this function:
Here is the caller graph for this function:| void PHGeomTGeo::SetGeometry | ( | TGeoManager * | g | ) |
Assign TGeoManager object. Once assigned, the TGeoManager will be locked to avoid a second TGeoManager override gGeoManager and lead to an invalid PHGeomTGeo The pointer TGeoManager should be the current gGeoManager
Definition at line 36 of file PHGeomTGeo.cc.
View newest version in sPHENIX GitHub at line 36 of file PHGeomTGeo.cc
References _fGeom, ConsistencyCheck(), and Acts::UnitConstants::g.
Referenced by MakeActsGeometry::editTPCGeometry(), PHGeomUtility::ImportCurrentTGeoManager(), PHGeomUtility::ImportGeomFile(), and PHGeomUtility::LoadFromIONode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
store and stream the full geometry via DST objects
Definition at line 58 of file PHGeomTGeo.h.
View newest version in sPHENIX GitHub at line 58 of file PHGeomTGeo.h
Referenced by ConsistencyCheck(), GetGeometry(), identify(), isValid(), Reset(), SetGeometry(), and ~PHGeomTGeo().