REROOT_CellPos Class Reference

#include <REROOT_CellPos.h>

List of all members.

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


Detailed Description

Definition at line 18 of file REROOT_CellPos.h.


Constructor & Destructor Documentation

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 (  ) 

Definition at line 88 of file REROOT_CellPos.cxx.

00089 {
00090 }

REROOT_CellPos::~REROOT_CellPos (  ) 

Definition at line 96 of file REROOT_CellPos.cxx.

00097 {
00098 }


Member Function Documentation

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 (  ) 

Definition at line 100 of file REROOT_CellPos.cxx.

00101 {
00102 }

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]

Definition at line 48 of file REROOT_CellPos.h.

References m_ID.

00048 {return m_ID;}                 // ID

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]

Definition at line 92 of file REROOT_CellPos.cxx.

00093 {
00094 }

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

Definition at line 104 of file REROOT_CellPos.cxx.

00105 {
00106   pstream << "======================== CellPos =====================\n";
00107 }

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]


Member Data Documentation

Float_t REROOT_CellPos::m_ClearFiberA [private]

Definition at line 31 of file REROOT_CellPos.h.

Referenced by ClearFiberA().

Float_t REROOT_CellPos::m_ClearFiberB [private]

Definition at line 32 of file REROOT_CellPos.h.

Referenced by ClearFiberB().

Float_t REROOT_CellPos::m_FiberTailA [private]

Definition at line 29 of file REROOT_CellPos.h.

Referenced by FiberTailA().

Float_t REROOT_CellPos::m_FiberTailB [private]

Definition at line 30 of file REROOT_CellPos.h.

Referenced by FiberTailB().

Int_t REROOT_CellPos::m_ICell [private]

Definition at line 25 of file REROOT_CellPos.h.

Referenced by ICell().

Int_t REROOT_CellPos::m_ID [private]

Definition at line 21 of file REROOT_CellPos.h.

Referenced by ID().

Int_t REROOT_CellPos::m_IExtr [private]

Definition at line 24 of file REROOT_CellPos.h.

Referenced by IExtr().

Int_t REROOT_CellPos::m_IStrip [private]

Definition at line 23 of file REROOT_CellPos.h.

Referenced by IStrip().

Char_t REROOT_CellPos::m_PlnName[5] [private]

Definition at line 22 of file REROOT_CellPos.h.

Referenced by PlnName().

Float_t REROOT_CellPos::m_XYZCenter[3] [private]

Definition at line 27 of file REROOT_CellPos.h.

Referenced by XYZCenter().

Float_t REROOT_CellPos::m_XYZFarend[3] [private]

Definition at line 28 of file REROOT_CellPos.h.

Referenced by XYZFarend().

Float_t REROOT_CellPos::m_XYZReadout[3] [private]

Definition at line 26 of file REROOT_CellPos.h.

Referenced by XYZReadout().


The documentation for this class was generated from the following files:
Generated on Thu Jul 10 22:53:38 2014 for loon by  doxygen 1.4.7