ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHGeomIOTGeo Class Reference

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>

+ Inheritance diagram for PHGeomIOTGeo:
+ Collaboration diagram for PHGeomIOTGeo:

Public Member Functions

 PHGeomIOTGeo ()
 
 ~PHGeomIOTGeo () override
 
PHObjectCloneMe () 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 PHObjectclone () const final
 
PHObjectClone (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
 

Detailed Description

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

Constructor & Destructor Documentation

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

+ Here is the caller graph for this function:

PHGeomIOTGeo::~PHGeomIOTGeo ( )
override

Definition at line 30 of file PHGeomIOTGeo.cc.

View newest version in sPHENIX GitHub at line 30 of file PHGeomIOTGeo.cc

References Data.

Member Function Documentation

PHObject* PHGeomIOTGeo::CloneMe ( ) const
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().

+ Here is the call graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::vector<char>& PHGeomIOTGeo::GetData ( )
inline

Definition at line 64 of file PHGeomIOTGeo.h.

View newest version in sPHENIX GitHub at line 64 of file PHGeomIOTGeo.h

References Data.

const std::vector<char>& PHGeomIOTGeo::GetData ( ) const
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

identify Function from PHObject

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

+ Here is the call graph for this function:

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

+ Here is the caller graph for this function:

void PHGeomIOTGeo::Reset ( )
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().

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<char> PHGeomIOTGeo::Data
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().


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