FairRoot/PandaRoot
|
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... | |
Private Member Functions | |
ClassDef (PndHypGeoHandling, 3) | |
Private Attributes | |
TGeoManager * | fGeoMan |
std::vector< TString > | fLevelNames |
Int_t | fVerbose |
Int_t | fLevel |
bool | fFullPath |
Class to access the naming information of the MVD.
PndGeoHandling.h
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 29 of file PndHypGeoHandling.h.
PndHypGeoHandling::PndHypGeoHandling | ( | ) |
PndHypGeoHandling::PndHypGeoHandling | ( | TString | fileName | ) |
|
inline |
|
inlinevirtual |
Definition at line 39 of file PndHypGeoHandling.h.
as the cd command of TGeoManager just with the ID
Definition at line 94 of file PndHypGeoHandling.cxx.
References fGeoMan, and GetPath().
|
private |
void PndHypGeoHandling::FillLevelNames | ( | ) |
fills vector<TString> fLevelNames with the names (or the paths) of the volumes down to the level given by fLevel
Definition at line 129 of file PndHypGeoHandling.cxx.
References fFullPath, fGeoMan, fLevel, fLevelNames, and i.
Referenced by GetNamesLevel().
TString PndHypGeoHandling::GetCurrentID | ( | ) |
for a given TGeoManager-path the ID is returned
Definition at line 65 of file PndHypGeoHandling.cxx.
References fGeoMan, GetCurrentID(), and TString.
Referenced by PndHyp::ProcessHits().
std::vector< TString > PndHypGeoHandling::GetNamesLevel | ( | Int_t | level, |
TString | startPath = "" , |
||
bool | fullPath = false |
||
) |
Definition at line 109 of file PndHypGeoHandling.cxx.
References fGeoMan, FillLevelNames(), fLevel, fLevelNames, and TString.
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
Definition at line 173 of file PndHypGeoHandling.cxx.
References GetOUVPath(), and GetPath().
Referenced by PndHypRecoHit::PndHypRecoHit().
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
Definition at line 148 of file PndHypGeoHandling.cxx.
References Double_t, fGeoMan, and TString.
Referenced by GetOUVId().
for a given ID the path is returned
Definition at line 76 of file PndHypGeoHandling.cxx.
References fGeoMan, PndStringVector::GetStringVector(), i, and TString.
Referenced by cd(), PndHypStripHitProducer::Exec(), GetOUVId(), GetSensorDimensionsID(), PndHypIdealRecoTask::InitTransMat(), PndSciTAnaIdeal::InitTransMat(), LocalToMasterErrorsId(), LocalToMasterId(), MasterToLocalErrorsId(), and MasterToLocalId().
TVector3 PndHypGeoHandling::GetSensorDimensionsID | ( | TString | id | ) |
Definition at line 196 of file PndHypGeoHandling.cxx.
References GetPath(), and GetSensorDimensionsPath().
TVector3 PndHypGeoHandling::GetSensorDimensionsPath | ( | TString | path | ) |
Definition at line 179 of file PndHypGeoHandling.cxx.
References fGeoMan, gGeoManager, and TString.
Referenced by GetSensorDimensionsID().
returns the volume ID for a given volume name
Definition at line 99 of file PndHypGeoHandling.cxx.
References fGeoMan, and TString.
TVector3 PndHypGeoHandling::LocalToMasterErrorsId | ( | const TVector3 & | local, |
const TString & | id | ||
) |
Definition at line 277 of file PndHypGeoHandling.cxx.
References GetPath(), and LocalToMasterErrorsPath().
Referenced by PndHypStripClusterTask::Exec().
TVector3 PndHypGeoHandling::LocalToMasterErrorsPath | ( | const TVector3 & | local, |
const TString & | id | ||
) |
Definition at line 280 of file PndHypGeoHandling.cxx.
References Double_t, fabs(), fGeoMan, i, and TString.
Referenced by LocalToMasterErrorsId().
TVector3 PndHypGeoHandling::LocalToMasterId | ( | const TVector3 & | local, |
const TString & | id | ||
) |
Definition at line 225 of file PndHypGeoHandling.cxx.
References GetPath(), and LocalToMasterPath().
Referenced by PndHypStripClusterTask::Exec().
TVector3 PndHypGeoHandling::LocalToMasterPath | ( | const TVector3 & | local, |
const TString & | id | ||
) |
Definition at line 228 of file PndHypGeoHandling.cxx.
References Double_t, fGeoMan, and TString.
Referenced by LocalToMasterId().
TVector3 PndHypGeoHandling::MasterToLocalErrorsId | ( | const TVector3 & | master, |
const TString & | id | ||
) |
Definition at line 247 of file PndHypGeoHandling.cxx.
References GetPath(), and MasterToLocalErrorsPath().
TVector3 PndHypGeoHandling::MasterToLocalErrorsPath | ( | const TVector3 & | master, |
const TString & | id | ||
) |
Definition at line 250 of file PndHypGeoHandling.cxx.
References Double_t, fabs(), fGeoMan, i, and TString.
Referenced by MasterToLocalErrorsId().
TVector3 PndHypGeoHandling::MasterToLocalId | ( | const TVector3 & | master, |
const TString & | id | ||
) |
Definition at line 202 of file PndHypGeoHandling.cxx.
References GetPath(), and MasterToLocalPath().
Referenced by PndHypStripHitProducer::Exec(), and PndHypRecoHit::PndHypRecoHit().
TVector3 PndHypGeoHandling::MasterToLocalPath | ( | const TVector3 & | master, |
const TString & | id | ||
) |
Definition at line 205 of file PndHypGeoHandling.cxx.
References Double_t, fGeoMan, and TString.
Referenced by MasterToLocalId().
|
inline |
Definition at line 61 of file PndHypGeoHandling.h.
|
private |
Definition at line 70 of file PndHypGeoHandling.h.
Referenced by FillLevelNames().
|
private |
Definition at line 67 of file PndHypGeoHandling.h.
Referenced by cd(), FillLevelNames(), GetCurrentID(), GetID(), GetNamesLevel(), GetOUVPath(), GetPath(), GetSensorDimensionsPath(), GetVolumeID(), LocalToMasterErrorsPath(), LocalToMasterPath(), MasterToLocalErrorsPath(), MasterToLocalPath(), and PndHypGeoHandling().
|
private |
Definition at line 69 of file PndHypGeoHandling.h.
Referenced by FillLevelNames(), and GetNamesLevel().
|
private |
Definition at line 68 of file PndHypGeoHandling.h.
Referenced by FillLevelNames(), and GetNamesLevel().
|
private |
Definition at line 68 of file PndHypGeoHandling.h.
Referenced by PndHypGeoHandling(), and SetVerbose().