Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHGeomTGeo Class Reference

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 PHObjectCloneMe () const
 Virtual copy constructor.
 
virtual PHObjectclone () const final
 
PHObjectClone (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
 

Detailed Description

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

Constructor & Destructor Documentation

PHGeomTGeo::PHGeomTGeo ( )

Definition at line 21 of file PHGeomTGeo.cc.

View newest version in sPHENIX GitHub at line 21 of file PHGeomTGeo.cc

PHGeomTGeo::~PHGeomTGeo ( )
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:

Member Function Documentation

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().

+ 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:

void PHGeomTGeo::identify ( std::ostream &  os = std::cout) const
overridevirtual

identify Function from PHObject

Parameters
osOutput 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:

int PHGeomTGeo::isValid ( ) const
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:

void PHGeomTGeo::Reset ( )
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, assert, 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:

Member Data Documentation

TGeoManager* PHGeomTGeo::_fGeom
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().


The documentation for this class was generated from the following files: