Analysis Software
Documentation for sPHENIX simulation software
|
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>
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 | 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().
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.
Referenced by GetGeometry(), identify(), isValid(), Reset(), SetGeometry(), and ~PHGeomTGeo().
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().
|
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().
|
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().
|
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().
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, assert, ConsistencyCheck(), and Acts::UnitConstants::g.
Referenced by MakeActsGeometry::editTPCGeometry(), PHGeomUtility::ImportCurrentTGeoManager(), PHGeomUtility::ImportGeomFile(), and PHGeomUtility::LoadFromIONode().
|
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().