#include <PndMdtIGeometry.h>
|
| PndMdtIGeometry () |
|
| ~PndMdtIGeometry () |
|
void | SetVerbose (Int_t _v) |
|
void | AddSensor (TString _v) |
|
Bool_t | Init () |
|
Bool_t | GetTubeCenter (Int_t iDetId, TVector3 &pos) const |
|
Bool_t | GetTubeLength (Int_t iDetId, Double_t &len) const |
|
Bool_t | GetStripLength (Int_t iDetId, Double_t &len) const |
|
Bool_t | GetStripCenter (Int_t iDetId, TVector3 &pos) const |
|
Bool_t | GetLayerBoundary (Int_t iLayer, TVector3 &LBPos, TVector3 &RTPos) const |
|
Bool_t | MasterToLocal (Int_t iDetId, TVector3 &master, TVector3 &local) |
|
Bool_t | MapWireToStrip (Int_t iDetId, const TVector3 &fEntryPos, Int_t &fStripDetID) |
|
void | Print () const |
|
Definition at line 17 of file PndMdtIGeometry.h.
◆ PndMdtIGeometry()
PndMdtIGeometry::PndMdtIGeometry |
( |
| ) |
|
◆ ~PndMdtIGeometry()
PndMdtIGeometry::~PndMdtIGeometry |
( |
| ) |
|
◆ AddSensor()
void PndMdtIGeometry::AddSensor |
( |
TString |
_v | ) |
|
|
inline |
◆ GetLayerBoundary()
Bool_t PndMdtIGeometry::GetLayerBoundary |
( |
Int_t |
iLayer, |
|
|
TVector3 & |
LBPos, |
|
|
TVector3 & |
RTPos |
|
) |
| const |
|
inline |
Definition at line 67 of file PndMdtIGeometry.h.
69 std::map<Int_t, LayerBoundary>::const_iterator it = fLayerInfoMap.find(iLayer);
70 if (it == fLayerInfoMap.end())
72 LBPos = TVector3(it->second.minX, it->second.minY, it->second.minZ);
73 RTPos = TVector3(it->second.maxX, it->second.maxY, it->second.maxZ);
◆ GetStripCenter()
Bool_t PndMdtIGeometry::GetStripCenter |
( |
Int_t |
iDetId, |
|
|
TVector3 & |
pos |
|
) |
| const |
|
inline |
Definition at line 59 of file PndMdtIGeometry.h.
61 std::map<Int_t, InfoType>::const_iterator it = fGeoMap.find(iDetId);
62 if (it == fGeoMap.end())
64 pos = it->second.Position;
◆ GetStripLength()
Bool_t PndMdtIGeometry::GetStripLength |
( |
Int_t |
iDetId, |
|
|
Double_t & |
len |
|
) |
| const |
|
inline |
Definition at line 51 of file PndMdtIGeometry.h.
53 std::map<Int_t, InfoType>::const_iterator it = fGeoMap.find(iDetId);
54 if (it == fGeoMap.end())
56 len = it->second.Length;
◆ GetTubeCenter()
Bool_t PndMdtIGeometry::GetTubeCenter |
( |
Int_t |
iDetId, |
|
|
TVector3 & |
pos |
|
) |
| const |
|
inline |
Definition at line 33 of file PndMdtIGeometry.h.
35 std::map<Int_t, InfoType>::const_iterator it = fGeoMap.find(iDetId);
36 if (it == fGeoMap.end())
38 pos = it->second.Position;
◆ GetTubeLength()
Bool_t PndMdtIGeometry::GetTubeLength |
( |
Int_t |
iDetId, |
|
|
Double_t & |
len |
|
) |
| const |
|
inline |
Definition at line 42 of file PndMdtIGeometry.h.
44 std::map<Int_t, InfoType>::const_iterator it = fGeoMap.find(iDetId);
45 if (it == fGeoMap.end())
47 len = it->second.Length;
◆ Init()
Bool_t PndMdtIGeometry::Init |
( |
| ) |
|
◆ Instance()
◆ MapWireToStrip()
Bool_t PndMdtIGeometry::MapWireToStrip |
( |
Int_t |
iDetId, |
|
|
const TVector3 & |
fEntryPos, |
|
|
Int_t & |
fStripDetID |
|
) |
| |
|
inline |
Definition at line 92 of file PndMdtIGeometry.h.
References PndMdtID::Identifier(), PndMdtID::Layer(), PndMdtID::LayerID(), PndMdtID::Module(), Print(), and PndMdtID::Sector().
94 static const Double_t cSTRIPWIDTH = 1.;
95 static const Double_t cGAPOFSTRIPS = 0.0;
100 LayerInfoMapIter it = fLayerInfoMap.find(layerID);
101 if (it == fLayerInfoMap.end())
105 fStripNo = (fEntryPos.Z() - it->second.minZ) / (cSTRIPWIDTH + cGAPOFSTRIPS);
109 fStripNo = (fEntryPos.Y() - it->second.minY) / (cSTRIPWIDTH + cGAPOFSTRIPS);
111 fStripNo = (fEntryPos.X() - it->second.minX) / (cSTRIPWIDTH + cGAPOFSTRIPS);
113 fStripNo = (fEntryPos.X() - it->second.minX) / (cSTRIPWIDTH + cGAPOFSTRIPS);
static Short_t Module(Int_t detID)
static Short_t Layer(Int_t detID)
static Int_t LayerID(Int_t iMod, Int_t iOct, Int_t iLayer)
static Int_t Identifier(Int_t iMod, Int_t iOct, Int_t iLayer, Int_t iBox, Int_t iWire)
static Short_t Sector(Int_t detID)
◆ MasterToLocal()
Bool_t PndMdtIGeometry::MasterToLocal |
( |
Int_t |
iDetId, |
|
|
TVector3 & |
master, |
|
|
TVector3 & |
local |
|
) |
| |
|
inline |
Definition at line 76 of file PndMdtIGeometry.h.
78 std::map<Int_t, InfoType>::const_iterator it = fGeoMap.find(iDetId);
79 if (it == fGeoMap.end())
81 TVector3 center = it->second.Position;
82 TGeoMatrix *fMtrx = it->second.Matrix;
88 fMtrx->MasterToLocal(&master[0], &local[0]);
◆ Print()
void PndMdtIGeometry::Print |
( |
| ) |
const |
◆ SetVerbose()
void PndMdtIGeometry::SetVerbose |
( |
Int_t |
_v | ) |
|
|
inline |
The documentation for this class was generated from the following file: