#include <REROOT_CellPos.h>
Public Member Functions | |
| REROOT_CellPos (CELLPOS_DEF *) | |
| REROOT_CellPos () | |
| ~REROOT_CellPos () | |
| virtual void | accept (REROOT_Visitor &v) |
| void | clear () |
| void | printEvent (std::ostream &) const |
| Int_t | ID () const |
| const Char_t * | PlnName () const |
| Int_t | IStrip () const |
| Int_t | IExtr () const |
| Int_t | ICell () const |
| const Float_t * | XYZReadout () const |
| const Float_t * | XYZCenter () const |
| const Float_t * | XYZFarend () const |
| Float_t | FiberTailA () const |
| Float_t | FiberTailB () const |
| Float_t | ClearFiberA () const |
| Float_t | ClearFiberB () const |
Private Member Functions | |
| void | init () |
Private Attributes | |
| Int_t | m_ID |
| Char_t | m_PlnName [5] |
| Int_t | m_IStrip |
| Int_t | m_IExtr |
| Int_t | m_ICell |
| Float_t | m_XYZReadout [3] |
| Float_t | m_XYZCenter [3] |
| Float_t | m_XYZFarend [3] |
| Float_t | m_FiberTailA |
| Float_t | m_FiberTailB |
| Float_t | m_ClearFiberA |
| Float_t | m_ClearFiberB |
Definition at line 18 of file REROOT_CellPos.h.
| REROOT_CellPos::REROOT_CellPos | ( | CELLPOS_DEF * | ) |
Definition at line 57 of file REROOT_CellPos.cxx.
References init().
00058 { 00059 m_ID = nr->ID - 1; // C index 00060 if (nr->IStrip != 2147483647) m_IStrip = nr->IStrip - 1; // C index 00061 else m_IStrip = -1; // C index 00062 m_IExtr = nr->IExtr - 1; // C index 00063 m_ICell = nr->ICell - 1; // C index 00064 m_FiberTailA = nr->FiberTailA; 00065 m_FiberTailB = nr->FiberTailB; 00066 m_ClearFiberA = nr->ClearFiberA; 00067 m_ClearFiberB = nr->ClearFiberB; 00068 00069 // Fill simple arrays from CellPos struct. 00070 Int_t i; // Keep this declaration here for scope outside for-loops. 00071 for (i=0; i<3; i++) { 00072 m_XYZReadout[i] = nr->XYZReadout[i]; 00073 m_XYZCenter[i] = nr->XYZCenter[i]; 00074 m_XYZFarend[i] = nr->XYZFarend[i]; 00075 } 00076 00077 // Fill String objects for char vectors from CellPos struct. 00078 for (i=0; i<4; i++) { 00079 if (nr->PlnName[i]=='\0' || 00080 nr->PlnName[i]==' ') break; 00081 m_PlnName[i] = nr->PlnName[i]; 00082 } 00083 m_PlnName[i] = '\0'; 00084 00085 init(); 00086 }
| REROOT_CellPos::REROOT_CellPos | ( | ) |
| REROOT_CellPos::~REROOT_CellPos | ( | ) |
| virtual void REROOT_CellPos::accept | ( | REROOT_Visitor & | v | ) | [inline, virtual] |
Definition at line 42 of file REROOT_CellPos.h.
References REROOT_Visitor::visit().
00042 {v.visit(this);}
| void REROOT_CellPos::clear | ( | ) |
| Float_t REROOT_CellPos::ClearFiberA | ( | ) | const [inline] |
Definition at line 58 of file REROOT_CellPos.h.
References m_ClearFiberA.
Referenced by UgliGeometryReroot::MakeTempDbiPosInfo().
00058 {return m_ClearFiberA;}//ClearFiberA
| Float_t REROOT_CellPos::ClearFiberB | ( | ) | const [inline] |
Definition at line 59 of file REROOT_CellPos.h.
References m_ClearFiberB.
Referenced by UgliGeometryReroot::MakeTempDbiPosInfo().
00059 {return m_ClearFiberB;}//ClearFiberA
| Float_t REROOT_CellPos::FiberTailA | ( | ) | const [inline] |
Definition at line 56 of file REROOT_CellPos.h.
References m_FiberTailA.
Referenced by UgliGeometryReroot::MakeTempDbiScintStruct().
00056 {return m_FiberTailA;} // FiberTailA
| Float_t REROOT_CellPos::FiberTailB | ( | ) | const [inline] |
Definition at line 57 of file REROOT_CellPos.h.
References m_FiberTailB.
Referenced by UgliGeometryReroot::MakeTempDbiScintStruct().
00057 {return m_FiberTailB;} // FiberTailA
| Int_t REROOT_CellPos::ICell | ( | ) | const [inline] |
Definition at line 52 of file REROOT_CellPos.h.
References m_ICell.
Referenced by RerootExodus::PECAB2SEId().
00052 {return m_ICell;} // ICell
| Int_t REROOT_CellPos::ID | ( | ) | const [inline] |
| Int_t REROOT_CellPos::IExtr | ( | ) | const [inline] |
Definition at line 51 of file REROOT_CellPos.h.
References m_IExtr.
Referenced by UgliGeometryReroot::MakeTempDbiScintStruct(), and RerootExodus::PECAB2SEId().
00051 {return m_IExtr;} // IExtr
| void REROOT_CellPos::init | ( | ) | [private] |
| Int_t REROOT_CellPos::IStrip | ( | ) | const [inline] |
Definition at line 50 of file REROOT_CellPos.h.
References m_IStrip.
00050 {return m_IStrip;} // IStrip
| const Char_t* REROOT_CellPos::PlnName | ( | ) | const [inline] |
Definition at line 49 of file REROOT_CellPos.h.
References m_PlnName.
Referenced by RerootExodus::SEIdToLPos(), and RerootExodus::SEIdToTPos().
00049 {return m_PlnName;} // PlnName[5]
| void REROOT_CellPos::printEvent | ( | std::ostream & | ) | const |
| const Float_t* REROOT_CellPos::XYZCenter | ( | ) | const [inline] |
Definition at line 54 of file REROOT_CellPos.h.
References m_XYZCenter.
Referenced by MINFLST::BookHits(), MINFFLS::BookHits(), MINFEMU::BookHits(), RerootExodus::SEIdGlobalToLocal(), and RerootExodus::SEIdLocalToGlobal().
00054 {return m_XYZCenter;} //XYZCenter[3]
| const Float_t* REROOT_CellPos::XYZFarend | ( | ) | const [inline] |
Definition at line 55 of file REROOT_CellPos.h.
References m_XYZFarend.
Referenced by RerootExodus::GetCellPos(), UgliGeometryReroot::MakeTempDbiScintStruct(), RerootExodus::NStripsNonZero(), RerootExodus::PECAB2SEId(), RerootExodus::SEIdHalfLength(), RerootExodus::SEIdLocalToGlobal(), and RerootExodus::SEIdToLPos().
00055 {return m_XYZFarend;} //XYZFarend[3]
| const Float_t* REROOT_CellPos::XYZReadout | ( | ) | const [inline] |
Definition at line 53 of file REROOT_CellPos.h.
References m_XYZReadout.
Referenced by RerootExodus::GetCellPos(), UgliGeometryReroot::MakeTempDbiScintStruct(), RerootExodus::NStripsNonZero(), RerootExodus::PECAB2SEId(), RerootExodus::SEIdHalfLength(), RerootExodus::SEIdLocalToGlobal(), RerootExodus::SEIdToLPos(), and RerootExodus::SEIdToTPos().
00053 {return m_XYZReadout;}//XYZReadou[3]
Float_t REROOT_CellPos::m_ClearFiberA [private] |
Float_t REROOT_CellPos::m_ClearFiberB [private] |
Float_t REROOT_CellPos::m_FiberTailA [private] |
Float_t REROOT_CellPos::m_FiberTailB [private] |
Int_t REROOT_CellPos::m_ICell [private] |
Int_t REROOT_CellPos::m_ID [private] |
Int_t REROOT_CellPos::m_IExtr [private] |
Int_t REROOT_CellPos::m_IStrip [private] |
Char_t REROOT_CellPos::m_PlnName[5] [private] |
Float_t REROOT_CellPos::m_XYZCenter[3] [private] |
Float_t REROOT_CellPos::m_XYZFarend[3] [private] |
Float_t REROOT_CellPos::m_XYZReadout[3] [private] |
1.4.7