PandaRoot
PndHypGeoHandling Class Reference

Class to access the naming information of the MVD. More...

#include <PndHypGeoHandling.h>

Public Member Functions

 PndHypGeoHandling ()
 
 PndHypGeoHandling (TString fileName)
 
 PndHypGeoHandling (TGeoManager *aGeoMan)
 
virtual ~PndHypGeoHandling ()
 
TString GetCurrentID ()
 returns the ID of the current node More...
 
TString GetID (TString path)
 for a given TGeoManager-path the ID is returned More...
 
TString GetPath (TString id)
 for a given ID the path is returned More...
 
TString GetVolumeID (TString name)
 returns the volume ID for a given volume name More...
 
std::vector< TString > GetNamesLevel (Int_t level, TString startPath="", bool fullPath=false)
 
void GetOUVPath (TString path, TVector3 &o, TVector3 &u, TVector3 &v)
 for a volume given by its path the o, u, v vectors for the plane are returned More...
 
void GetOUVId (TString id, TVector3 &o, TVector3 &u, TVector3 &v)
 for a volume given by its ID the o, u, v vectors for the plane are returned More...
 
TVector3 GetSensorDimensionsID (TString id)
 
TVector3 GetSensorDimensionsPath (TString path)
 
TVector3 MasterToLocalId (const TVector3 &master, const TString &id)
 
TVector3 MasterToLocalPath (const TVector3 &master, const TString &id)
 
TVector3 LocalToMasterId (const TVector3 &local, const TString &id)
 
TVector3 LocalToMasterPath (const TVector3 &local, const TString &id)
 
TVector3 MasterToLocalErrorsId (const TVector3 &master, const TString &id)
 
TVector3 MasterToLocalErrorsPath (const TVector3 &master, const TString &id)
 
TVector3 LocalToMasterErrorsId (const TVector3 &local, const TString &id)
 
TVector3 LocalToMasterErrorsPath (const TVector3 &local, const TString &id)
 
void SetVerbose (Int_t v)
 
Bool_t cd (TString id)
 as the cd command of TGeoManager just with the ID More...
 
void FillLevelNames ()
 fills vector<TString> fLevelNames with the names (or the paths) of the volumes down to the level given by fLevel More...
 

Detailed Description

Class to access the naming information of the MVD.

PndGeoHandling.h

Author
: t.stockmanns t.sto.nosp@m.ckma.nosp@m.ns@fz.nosp@m.-jue.nosp@m.lich..nosp@m.de

To save memory not anylonger the full path of a volume is stored in each hit but an encrypted form of it (f.e. /1_1/34_2/101_1/). The first number is the volumeID comming from the GeoManager and the second number is the copy number. This class helps you converting the encrypted ID into the path information and vice versa. It needs the informations of the GeoManager. Therefore one has to ensure that either an initialized TGeoManager pointer is given in the constructor with the correct goemetry or a filename with the correct geoemetry ("FAIRGeom")

Definition at line 30 of file PndHypGeoHandling.h.

Constructor & Destructor Documentation

◆ PndHypGeoHandling() [1/3]

PndHypGeoHandling::PndHypGeoHandling ( )

◆ PndHypGeoHandling() [2/3]

PndHypGeoHandling::PndHypGeoHandling ( TString  fileName)

◆ PndHypGeoHandling() [3/3]

PndHypGeoHandling::PndHypGeoHandling ( TGeoManager *  aGeoMan)
inline

Definition at line 36 of file PndHypGeoHandling.h.

37  {
38  if (aGeoMan == 0)
39  LOG(error) << " not a valid GeoManager";
40  fGeoMan = aGeoMan;
41  };

◆ ~PndHypGeoHandling()

Member Function Documentation

◆ cd()

Bool_t PndHypGeoHandling::cd ( TString  id)

as the cd command of TGeoManager just with the ID

Referenced by SetVerbose().

◆ FillLevelNames()

void PndHypGeoHandling::FillLevelNames ( )

fills vector<TString> fLevelNames with the names (or the paths) of the volumes down to the level given by fLevel

Referenced by SetVerbose().

◆ GetCurrentID()

TString PndHypGeoHandling::GetCurrentID ( )

returns the ID of the current node

Referenced by ~PndHypGeoHandling().

◆ GetID()

TString PndHypGeoHandling::GetID ( TString  path)

for a given TGeoManager-path the ID is returned

Referenced by ~PndHypGeoHandling().

◆ GetNamesLevel()

std::vector<TString> PndHypGeoHandling::GetNamesLevel ( Int_t  level,
TString  startPath = "",
bool  fullPath = false 
)

Referenced by ~PndHypGeoHandling().

◆ GetOUVId()

void PndHypGeoHandling::GetOUVId ( TString  id,
TVector3 &  o,
TVector3 &  u,
TVector3 &  v 
)

for a volume given by its ID the o, u, v vectors for the plane are returned

Referenced by ~PndHypGeoHandling().

◆ GetOUVPath()

void PndHypGeoHandling::GetOUVPath ( TString  path,
TVector3 &  o,
TVector3 &  u,
TVector3 &  v 
)

for a volume given by its path the o, u, v vectors for the plane are returned

Referenced by ~PndHypGeoHandling().

◆ GetPath()

TString PndHypGeoHandling::GetPath ( TString  id)

for a given ID the path is returned

Referenced by ~PndHypGeoHandling().

◆ GetSensorDimensionsID()

TVector3 PndHypGeoHandling::GetSensorDimensionsID ( TString  id)

Referenced by ~PndHypGeoHandling().

◆ GetSensorDimensionsPath()

TVector3 PndHypGeoHandling::GetSensorDimensionsPath ( TString  path)

Referenced by ~PndHypGeoHandling().

◆ GetVolumeID()

TString PndHypGeoHandling::GetVolumeID ( TString  name)

returns the volume ID for a given volume name

Referenced by ~PndHypGeoHandling().

◆ LocalToMasterErrorsId()

TVector3 PndHypGeoHandling::LocalToMasterErrorsId ( const TVector3 &  local,
const TString &  id 
)

Referenced by ~PndHypGeoHandling().

◆ LocalToMasterErrorsPath()

TVector3 PndHypGeoHandling::LocalToMasterErrorsPath ( const TVector3 &  local,
const TString &  id 
)

Referenced by ~PndHypGeoHandling().

◆ LocalToMasterId()

TVector3 PndHypGeoHandling::LocalToMasterId ( const TVector3 &  local,
const TString &  id 
)

Referenced by ~PndHypGeoHandling().

◆ LocalToMasterPath()

TVector3 PndHypGeoHandling::LocalToMasterPath ( const TVector3 &  local,
const TString &  id 
)

Referenced by ~PndHypGeoHandling().

◆ MasterToLocalErrorsId()

TVector3 PndHypGeoHandling::MasterToLocalErrorsId ( const TVector3 &  master,
const TString &  id 
)

Referenced by ~PndHypGeoHandling().

◆ MasterToLocalErrorsPath()

TVector3 PndHypGeoHandling::MasterToLocalErrorsPath ( const TVector3 &  master,
const TString &  id 
)

Referenced by ~PndHypGeoHandling().

◆ MasterToLocalId()

TVector3 PndHypGeoHandling::MasterToLocalId ( const TVector3 &  master,
const TString &  id 
)

Referenced by ~PndHypGeoHandling().

◆ MasterToLocalPath()

TVector3 PndHypGeoHandling::MasterToLocalPath ( const TVector3 &  master,
const TString &  id 
)

Referenced by ~PndHypGeoHandling().

◆ SetVerbose()

void PndHypGeoHandling::SetVerbose ( Int_t  v)
inline

Definition at line 65 of file PndHypGeoHandling.h.

References cd(), FillLevelNames(), and v.

65 { fVerbose = v; }
__m128 v
Definition: P4_F32vec4.h:3

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