#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 29 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 79 of file PndMdtIGeometry.h.
81 std::map<Int_t, LayerBoundary>::const_iterator it = fLayerInfoMap.find(iLayer);
82 if (it == fLayerInfoMap.end())
84 LBPos = TVector3(it->second.minX, it->second.minY, it->second.minZ);
85 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 71 of file PndMdtIGeometry.h.
73 std::map<Int_t, InfoType>::const_iterator it = fGeoMap.find(iDetId);
74 if (it == fGeoMap.end())
76 pos = it->second.Position;
◆ GetStripLength()
Bool_t PndMdtIGeometry::GetStripLength |
( |
Int_t |
iDetId, |
|
|
Double_t & |
len |
|
) |
| const |
|
inline |
Definition at line 63 of file PndMdtIGeometry.h.
65 std::map<Int_t, InfoType>::const_iterator it = fGeoMap.find(iDetId);
66 if (it == fGeoMap.end())
68 len = it->second.Length;
◆ GetTubeCenter()
Bool_t PndMdtIGeometry::GetTubeCenter |
( |
Int_t |
iDetId, |
|
|
TVector3 & |
pos |
|
) |
| const |
|
inline |
Definition at line 45 of file PndMdtIGeometry.h.
47 std::map<Int_t, InfoType>::const_iterator it = fGeoMap.find(iDetId);
48 if (it == fGeoMap.end())
50 pos = it->second.Position;
◆ GetTubeLength()
Bool_t PndMdtIGeometry::GetTubeLength |
( |
Int_t |
iDetId, |
|
|
Double_t & |
len |
|
) |
| const |
|
inline |
Definition at line 54 of file PndMdtIGeometry.h.
56 std::map<Int_t, InfoType>::const_iterator it = fGeoMap.find(iDetId);
57 if (it == fGeoMap.end())
59 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 104 of file PndMdtIGeometry.h.
References PndMdtID::Identifier(), PndMdtID::Layer(), PndMdtID::LayerID(), PndMdtID::Module(), Print(), and PndMdtID::Sector().
106 static const Double_t cSTRIPWIDTH = 1.;
107 static const Double_t cGAPOFSTRIPS = 0.0;
112 LayerInfoMapIter it = fLayerInfoMap.find(layerID);
113 if (it == fLayerInfoMap.end())
117 fStripNo = (fEntryPos.Z() - it->second.minZ) / (cSTRIPWIDTH + cGAPOFSTRIPS);
121 fStripNo = (fEntryPos.Y() - it->second.minY) / (cSTRIPWIDTH + cGAPOFSTRIPS);
123 fStripNo = (fEntryPos.X() - it->second.minX) / (cSTRIPWIDTH + cGAPOFSTRIPS);
125 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 88 of file PndMdtIGeometry.h.
90 std::map<Int_t, InfoType>::const_iterator it = fGeoMap.find(iDetId);
91 if (it == fGeoMap.end())
93 TVector3 center = it->second.Position;
94 TGeoMatrix *fMtrx = it->second.Matrix;
100 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: