REROOT_PlaneSpec Class Reference

#include <REROOT_PlaneSpec.h>

List of all members.

Public Member Functions

 REROOT_PlaneSpec (PLANESPEC_DEF *)
 REROOT_PlaneSpec ()
 ~REROOT_PlaneSpec ()
virtual void accept (REROOT_Visitor &v)
void clear ()
void printEvent (std::ostream &) const
Int_t ID () const
const Char_t * PlnName () const
const Char_t * Shape () const
Float_t Width () const
Float_t Length () const
Float_t Thickness () const
const Float_t * AirGap () const
const Char_t * TMedium () const
Int_t BMap () const
Int_t DigiType () const
Float_t AbsLen () const
Float_t RadLen () const
Float_t Density () const
Int_t NStrip () const
Int_t NExtru () const
Int_t NCell () const
Float_t CellWidth () const
Float_t CellThick () const
Int_t CoverSide () const
Int_t NGSVol () const
const Float_t * GSVol () const
Int_t NLevel () const
const Char_t * NamePth (Int_t i) const
const Int_t * NumbPth () const
const Float_t * RSquash () const
Int_t FirstStrip () const
Int_t LastStrip () const

Private Member Functions

void init ()

Private Attributes

Int_t m_ID
Char_t m_PlnName [5]
Char_t m_Shape [5]
Float_t m_Width
Float_t m_Length
Float_t m_Thickness
Float_t m_AirGap [2]
Char_t m_TMedium [5]
Int_t m_BMap
Int_t m_DigiType
Float_t m_AbsLen
Float_t m_RadLen
Float_t m_Density
Int_t m_NStrip
Int_t m_NExtru
Int_t m_NCell
Float_t m_CellWidth
Float_t m_CellThick
Int_t m_CoverSide
Int_t m_NGSVol
Float_t m_GSVol [10]
Int_t m_NLevel
Char_t m_NamePth [45]
Int_t m_NumbPth [9]
Float_t m_RSquash [8]
Int_t m_FirstStrip
Int_t m_LastStrip

Detailed Description

Definition at line 18 of file REROOT_PlaneSpec.h.


Constructor & Destructor Documentation

REROOT_PlaneSpec::REROOT_PlaneSpec ( PLANESPEC_DEF nr  ) 

Definition at line 58 of file REROOT_PlaneSpec.cxx.

References init().

00058                                                    {
00059   m_ID        = nr->ID - 1;                                   // C index
00060   m_Width     = nr->Width;
00061   m_Length    = nr->Length;
00062   m_Thickness = nr->Thickness;
00063   m_BMap      = nr->BMap;
00064   m_DigiType  = nr->DigiType;
00065   m_AbsLen    = nr->AbsLen;
00066   m_RadLen    = nr->RadLen;
00067   m_Density   = nr->Density;
00068   if (nr->NStrip != 2147483647) m_NStrip = nr->NStrip;
00069   else                          m_NStrip = 0;
00070   m_NExtru    = nr->NExtru;
00071   m_NCell     = nr->NCell;
00072   m_CellWidth = nr->CellWidth;
00073   m_CellThick = nr->CellThick;
00074   m_CoverSide = nr->CoverSide;
00075   m_NGSVol    = nr->NGSVol;
00076   m_NLevel    = nr->NLevel;
00077   if (nr->FirstStrip != 2147483647)
00078                            m_FirstStrip = nr->FirstStrip - 1; // C index
00079   else                     m_FirstStrip = -1;                 // C index
00080   if (nr->LastStrip != 2147483647)
00081                            m_LastStrip = nr->LastStrip - 1;   // C index
00082   else                     m_LastStrip = -1;                  // C index
00083 
00084 // Fill simple arrays from CellPos struct.
00085   Int_t i;    // Keep this declaration here for scope outside for-loops.
00086   for (i=0; i<2; i++) {
00087         m_AirGap[i]   = nr->AirGap[i];
00088   }
00089   for (i=0; i<10; i++) {
00090         m_GSVol[i]   = nr->GSVol[i];
00091   }
00092   for (i=0; i<9; i++) {
00093         m_NumbPth[i]   = nr->NumbPth[i];
00094   }
00095   for (i=0; i<8; i++) {
00096         m_RSquash[i]   = nr->RSquash[i];
00097   }
00098 
00099 // Fill String objects for char vectors from PlaneSpec struct.
00100   for (i=0; i<4; i++) {
00101         if (nr->PlnName[i]=='\0' || nr->PlnName[i]==' ') break;
00102         m_PlnName[i] = nr->PlnName[i];
00103   }
00104   m_PlnName[i] = '\0';
00105   for (i=0; i<4; i++) {
00106         if (nr->Shape[i]=='\0' || nr->Shape[i]==' ') break;
00107         m_Shape[i] = nr->Shape[i];
00108   }
00109   m_Shape[i] = '\0';
00110   for (i=0; i<4; i++) {
00111         if (nr->TMedium[i]=='\0' || nr->TMedium[i]==' ') break;
00112         m_TMedium[i] = nr->TMedium[i];
00113   }
00114   m_TMedium[i] = '\0';
00115 
00116   Int_t k=-5;
00117   for (Int_t j=0; j<9; j++) {
00118     k += 5;
00119     for (i=0; i<4; i++) {
00120       if (nr->NamePth[j][i]=='\0' || nr->NamePth[j][i]==' ') break;
00121       m_NamePth[k+i] = nr->NamePth[j][i];
00122     }
00123     m_NamePth[k+i] = '\0';
00124   }
00125 
00126   init();
00127 }

REROOT_PlaneSpec::REROOT_PlaneSpec (  ) 

Definition at line 129 of file REROOT_PlaneSpec.cxx.

00130 {
00131 }

REROOT_PlaneSpec::~REROOT_PlaneSpec (  ) 

Definition at line 137 of file REROOT_PlaneSpec.cxx.

00138 {
00139 }


Member Function Documentation

Float_t REROOT_PlaneSpec::AbsLen (  )  const [inline]

Definition at line 73 of file REROOT_PlaneSpec.h.

References m_AbsLen.

00073 {return m_AbsLen;}           // AbsLen

virtual void REROOT_PlaneSpec::accept ( REROOT_Visitor v  )  [inline, virtual]

Definition at line 57 of file REROOT_PlaneSpec.h.

References REROOT_Visitor::visit().

00057 {v.visit(this);}

const Float_t* REROOT_PlaneSpec::AirGap (  )  const [inline]

Definition at line 69 of file REROOT_PlaneSpec.h.

References m_AirGap.

Referenced by UgliGeometryReroot::MakeTempDbiPosInfo().

00069 {return m_AirGap;}           // AirGap

Int_t REROOT_PlaneSpec::BMap (  )  const [inline]

Definition at line 71 of file REROOT_PlaneSpec.h.

References m_BMap.

Referenced by UgliGeometryReroot::MakeTempDbiPosInfo().

00071 {return m_BMap;}               // BMap

Float_t REROOT_PlaneSpec::CellThick (  )  const [inline]

Definition at line 80 of file REROOT_PlaneSpec.h.

References m_CellThick.

Referenced by RerootExodus::SEIdHalfThickness().

00080 {return m_CellThick;}     // CellThick

Float_t REROOT_PlaneSpec::CellWidth (  )  const [inline]

Definition at line 79 of file REROOT_PlaneSpec.h.

References m_CellWidth.

Referenced by UgliGeometryReroot::MakeTempDbiPosInfo(), and RerootExodus::SEIdHalfWidth().

00079 {return m_CellWidth;}     // CellWidth

void REROOT_PlaneSpec::clear (  ) 

Definition at line 141 of file REROOT_PlaneSpec.cxx.

00142 {
00143 }

Int_t REROOT_PlaneSpec::CoverSide (  )  const [inline]

Definition at line 81 of file REROOT_PlaneSpec.h.

References m_CoverSide.

00081 {return m_CoverSide;}     // CoverSide

Float_t REROOT_PlaneSpec::Density ( void   )  const [inline]

Definition at line 75 of file REROOT_PlaneSpec.h.

References m_Density.

00075 {return m_Density;}         // Density

Int_t REROOT_PlaneSpec::DigiType (  )  const [inline]

Definition at line 72 of file REROOT_PlaneSpec.h.

References m_DigiType.

00072 {return m_DigiType;}       // DigiType

Int_t REROOT_PlaneSpec::FirstStrip (  )  const [inline]

Definition at line 89 of file REROOT_PlaneSpec.h.

References m_FirstStrip.

Referenced by RerootExodus::GetCellPos(), RerootExodus::NStripsNonZero(), and RerootExodus::PECAB2SEId().

00089 {return m_FirstStrip;}   // FirstStrip

const Float_t* REROOT_PlaneSpec::GSVol (  )  const [inline]

Definition at line 83 of file REROOT_PlaneSpec.h.

References m_GSVol.

00083 {return m_GSVol;}         // GSVol[10]

Int_t REROOT_PlaneSpec::ID (  )  const [inline]

Definition at line 63 of file REROOT_PlaneSpec.h.

References m_ID.

00063 {return m_ID;}                   // ID

void REROOT_PlaneSpec::init ( void   )  [private]

Definition at line 133 of file REROOT_PlaneSpec.cxx.

00134 {
00135 }

Int_t REROOT_PlaneSpec::LastStrip (  )  const [inline]

Definition at line 90 of file REROOT_PlaneSpec.h.

References m_LastStrip.

Referenced by RerootExodus::GetCellPos(), RerootExodus::NStripsNonZero(), and RerootExodus::PECAB2SEId().

00090 {return m_LastStrip;}     // LastStrip

Float_t REROOT_PlaneSpec::Length (  )  const [inline]

Definition at line 67 of file REROOT_PlaneSpec.h.

References m_Length.

00067 {return m_Length;}           // Length

const Char_t* REROOT_PlaneSpec::NamePth ( Int_t  i  )  const [inline]

Definition at line 85 of file REROOT_PlaneSpec.h.

References m_NamePth.

00086                                   {return &m_NamePth[5*i];}

Int_t REROOT_PlaneSpec::NCell (  )  const [inline]

Definition at line 78 of file REROOT_PlaneSpec.h.

References m_NCell.

00078 {return m_NCell;}             // NCell

Int_t REROOT_PlaneSpec::NExtru (  )  const [inline]

Definition at line 77 of file REROOT_PlaneSpec.h.

References m_NExtru.

00077 {return m_NExtru;}           // NExtru

Int_t REROOT_PlaneSpec::NGSVol (  )  const [inline]

Definition at line 82 of file REROOT_PlaneSpec.h.

References m_NGSVol.

00082 {return m_NGSVol;}           // NGSVol

Int_t REROOT_PlaneSpec::NLevel (  )  const [inline]

Definition at line 84 of file REROOT_PlaneSpec.h.

References m_NLevel.

00084 {return m_NLevel;}           // NLevel

Int_t REROOT_PlaneSpec::NStrip (  )  const [inline]

Definition at line 76 of file REROOT_PlaneSpec.h.

References m_NStrip.

00076 {return m_NStrip;}           // NStrip

const Int_t* REROOT_PlaneSpec::NumbPth (  )  const [inline]

Definition at line 87 of file REROOT_PlaneSpec.h.

References m_NumbPth.

00087 {return m_NumbPth;}      // NumbPth[9]

const Char_t* REROOT_PlaneSpec::PlnName (  )  const [inline]

Definition at line 64 of file REROOT_PlaneSpec.h.

References m_PlnName.

Referenced by RerootExodus::RerootPln2PlnId().

00064 {return m_PlnName;}      // PlnName[5]

void REROOT_PlaneSpec::printEvent ( std::ostream &  pstream  )  const

Definition at line 145 of file REROOT_PlaneSpec.cxx.

00146 {
00147   pstream << "====================== PlaneSpec =====================\n";
00148 }

Float_t REROOT_PlaneSpec::RadLen (  )  const [inline]

Definition at line 74 of file REROOT_PlaneSpec.h.

References m_RadLen.

00074 {return m_RadLen;}           // RadLen

const Float_t* REROOT_PlaneSpec::RSquash (  )  const [inline]

Definition at line 88 of file REROOT_PlaneSpec.h.

References m_RSquash.

00088 {return m_RSquash;}      // RSquash[8]

const Char_t* REROOT_PlaneSpec::Shape (  )  const [inline]

Definition at line 65 of file REROOT_PlaneSpec.h.

References m_Shape.

00065 {return m_Shape;}          // Shape[5]

Float_t REROOT_PlaneSpec::Thickness (  )  const [inline]
const Char_t* REROOT_PlaneSpec::TMedium (  )  const [inline]

Definition at line 70 of file REROOT_PlaneSpec.h.

References m_TMedium.

00070 {return m_TMedium;}      // TMedium[5]

Float_t REROOT_PlaneSpec::Width (  )  const [inline]

Definition at line 66 of file REROOT_PlaneSpec.h.

References m_Width.

Referenced by MINFDetGeom::BuildDetectorGeometry().

00066 {return m_Width;}             // Width


Member Data Documentation

Float_t REROOT_PlaneSpec::m_AbsLen [private]

Definition at line 31 of file REROOT_PlaneSpec.h.

Referenced by AbsLen().

Float_t REROOT_PlaneSpec::m_AirGap[2] [private]

Definition at line 27 of file REROOT_PlaneSpec.h.

Referenced by AirGap().

Int_t REROOT_PlaneSpec::m_BMap [private]

Definition at line 29 of file REROOT_PlaneSpec.h.

Referenced by BMap().

Float_t REROOT_PlaneSpec::m_CellThick [private]

Definition at line 38 of file REROOT_PlaneSpec.h.

Referenced by CellThick().

Float_t REROOT_PlaneSpec::m_CellWidth [private]

Definition at line 37 of file REROOT_PlaneSpec.h.

Referenced by CellWidth().

Definition at line 39 of file REROOT_PlaneSpec.h.

Referenced by CoverSide().

Float_t REROOT_PlaneSpec::m_Density [private]

Definition at line 33 of file REROOT_PlaneSpec.h.

Referenced by Density().

Definition at line 30 of file REROOT_PlaneSpec.h.

Referenced by DigiType().

Definition at line 46 of file REROOT_PlaneSpec.h.

Referenced by FirstStrip().

Float_t REROOT_PlaneSpec::m_GSVol[10] [private]

Definition at line 41 of file REROOT_PlaneSpec.h.

Referenced by GSVol().

Int_t REROOT_PlaneSpec::m_ID [private]

Definition at line 21 of file REROOT_PlaneSpec.h.

Referenced by ID().

Definition at line 47 of file REROOT_PlaneSpec.h.

Referenced by LastStrip().

Float_t REROOT_PlaneSpec::m_Length [private]

Definition at line 25 of file REROOT_PlaneSpec.h.

Referenced by Length().

Char_t REROOT_PlaneSpec::m_NamePth[45] [private]

Definition at line 43 of file REROOT_PlaneSpec.h.

Referenced by NamePth().

Int_t REROOT_PlaneSpec::m_NCell [private]

Definition at line 36 of file REROOT_PlaneSpec.h.

Referenced by NCell().

Int_t REROOT_PlaneSpec::m_NExtru [private]

Definition at line 35 of file REROOT_PlaneSpec.h.

Referenced by NExtru().

Int_t REROOT_PlaneSpec::m_NGSVol [private]

Definition at line 40 of file REROOT_PlaneSpec.h.

Referenced by NGSVol().

Int_t REROOT_PlaneSpec::m_NLevel [private]

Definition at line 42 of file REROOT_PlaneSpec.h.

Referenced by NLevel().

Int_t REROOT_PlaneSpec::m_NStrip [private]

Definition at line 34 of file REROOT_PlaneSpec.h.

Referenced by NStrip().

Int_t REROOT_PlaneSpec::m_NumbPth[9] [private]

Definition at line 44 of file REROOT_PlaneSpec.h.

Referenced by NumbPth().

Char_t REROOT_PlaneSpec::m_PlnName[5] [private]

Definition at line 22 of file REROOT_PlaneSpec.h.

Referenced by PlnName().

Float_t REROOT_PlaneSpec::m_RadLen [private]

Definition at line 32 of file REROOT_PlaneSpec.h.

Referenced by RadLen().

Float_t REROOT_PlaneSpec::m_RSquash[8] [private]

Definition at line 45 of file REROOT_PlaneSpec.h.

Referenced by RSquash().

Char_t REROOT_PlaneSpec::m_Shape[5] [private]

Definition at line 23 of file REROOT_PlaneSpec.h.

Referenced by Shape().

Float_t REROOT_PlaneSpec::m_Thickness [private]

Definition at line 26 of file REROOT_PlaneSpec.h.

Referenced by Thickness().

Char_t REROOT_PlaneSpec::m_TMedium[5] [private]

Definition at line 28 of file REROOT_PlaneSpec.h.

Referenced by TMedium().

Float_t REROOT_PlaneSpec::m_Width [private]

Definition at line 24 of file REROOT_PlaneSpec.h.

Referenced by Width().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1