REROOT_PlanePos Class Reference

#include <REROOT_PlanePos.h>

List of all members.

Public Member Functions

 REROOT_PlanePos (PLANEPOS_DEF *)
 REROOT_PlanePos ()
 ~REROOT_PlanePos ()
virtual void accept (REROOT_Visitor &v)
void clear ()
void printEvent (std::ostream &) const
Int_t ID () const
Int_t ISuper () const
Int_t IModule () const
Int_t InMdl () const
Float_t PairZmin () const
Float_t PairZmax () const
const Char_t * PasvName () const
const Float_t * XYPasv () const
Float_t ZFrntPasv () const
const Char_t * ActvName () const
const Float_t * XYActv () const
Float_t ZFrntActv () const
const Char_t * Rotm () const
Int_t ActvSpec () const
Int_t PasvSpec () const
Int_t RotmID () const

Private Member Functions

void init ()

Private Attributes

Int_t m_ID
Int_t m_ISuper
Int_t m_IModule
Int_t m_InMdl
Float_t m_PairZmin
Float_t m_PairZmax
Char_t m_PasvName [5]
Float_t m_XYPasv [2]
Float_t m_ZFrntPasv
Char_t m_ActvName [5]
Float_t m_XYActv [2]
Float_t m_ZFrntActv
Char_t m_Rotm [5]
Int_t m_ActvSpec
Int_t m_PasvSpec
Int_t m_RotmID

Friends

class REROOT_Geom

Detailed Description

Definition at line 17 of file REROOT_PlanePos.h.


Constructor & Destructor Documentation

REROOT_PlanePos::REROOT_PlanePos ( PLANEPOS_DEF nr  ) 

Definition at line 59 of file REROOT_PlanePos.cxx.

References init().

00060 {
00061   m_ID        = nr->ID - 1;                                   // C index
00062   m_ISuper    = nr->ISuper - 1;                               // C index
00063   m_IModule   = nr->IModule - 1;                              // C index
00064   m_InMdl     = nr->InMdl - 1;                                // C index
00065   m_PairZmin  = nr->PairZmin;
00066   m_PairZmax  = nr->PairZmax;
00067   m_ZFrntPasv = nr->ZFrntPasv;
00068   m_ZFrntActv = nr->ZFrntActv;
00069   m_ActvSpec  = nr->ActvSpec - 1;                             // C index
00070   m_PasvSpec  = nr->PasvSpec - 1;                             // C index
00071   m_RotmID    = nr->RotmID - 1;                               // C index
00072 
00073 // Fill simple arrays from PlanePos struct.
00074   Int_t i;    // Keep this declaration here for scope outside for-loops.
00075   for (i=0; i<2; i++) {
00076         m_XYPasv[i] = nr->XYPasv[i];
00077         m_XYActv[i] = nr->XYActv[i];
00078   }
00079 
00080 // Fill String objects for char vectors from PlanePos struct.
00081   for (i=0; i<4; i++) {
00082         if (nr->PasvName[i]=='\0' || nr->PasvName[i]==' ') break;
00083         m_PasvName[i] = nr->PasvName[i];
00084   }
00085   m_PasvName[i] = '\0';
00086   for (i=0; i<4; i++) {
00087         if (nr->ActvName[i]=='\0' || nr->ActvName[i]==' ') break;
00088         m_ActvName[i] = nr->ActvName[i];
00089   }
00090   m_ActvName[i] = '\0';
00091   for (i=0; i<4; i++) {
00092         if (nr->Rotm[i]=='\0' || nr->Rotm[i]==' ') break;
00093         m_Rotm[i] = nr->Rotm[i];
00094   }
00095   m_Rotm[i] = '\0';
00096 
00097   init();
00098 }

REROOT_PlanePos::REROOT_PlanePos (  ) 

Definition at line 100 of file REROOT_PlanePos.cxx.

00101 {
00102 }

REROOT_PlanePos::~REROOT_PlanePos (  ) 

Definition at line 108 of file REROOT_PlanePos.cxx.

00109 {
00110 }


Member Function Documentation

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

Definition at line 48 of file REROOT_PlanePos.h.

References REROOT_Visitor::visit().

00048 { v.visit(this); }

const Char_t* REROOT_PlanePos::ActvName (  )  const [inline]
Int_t REROOT_PlanePos::ActvSpec (  )  const [inline]
void REROOT_PlanePos::clear (  ) 

Definition at line 112 of file REROOT_PlanePos.cxx.

00113 {
00114 }

Int_t REROOT_PlanePos::ID (  )  const [inline]

Definition at line 54 of file REROOT_PlanePos.h.

References m_ID.

Referenced by UgliGeometryReroot::CreateAndBackFillPlanePosDef().

00054 {return m_ID;  }                   // ID

Int_t REROOT_PlanePos::IModule (  )  const [inline]

Definition at line 56 of file REROOT_PlanePos.h.

References m_IModule.

Referenced by UgliGeometryReroot::CreateAndBackFillPlanePosDef().

00056 {return m_IModule;  }         // IModule

void REROOT_PlanePos::init ( void   )  [private]

Definition at line 104 of file REROOT_PlanePos.cxx.

00105 {
00106 }

Int_t REROOT_PlanePos::InMdl (  )  const [inline]

Definition at line 57 of file REROOT_PlanePos.h.

References m_InMdl.

Referenced by UgliGeometryReroot::CreateAndBackFillPlanePosDef().

00057 {return m_InMdl;  }             // InMdl

Int_t REROOT_PlanePos::ISuper (  )  const [inline]
Float_t REROOT_PlanePos::PairZmax (  )  const [inline]

Definition at line 59 of file REROOT_PlanePos.h.

References m_PairZmax, and zoffset_REROOT().

Referenced by UgliGeometryReroot::CreateAndBackFillPlanePosDef(), and RerootExodus::RerootPlaneNo().

00059 {return m_PairZmax + zoffset_REROOT(); } // PairZmax

Float_t REROOT_PlanePos::PairZmin (  )  const [inline]

Definition at line 58 of file REROOT_PlanePos.h.

References m_PairZmin, and zoffset_REROOT().

Referenced by UgliGeometryReroot::CreateAndBackFillPlanePosDef(), and RerootExodus::RerootPlaneNo().

00058 {return m_PairZmin + zoffset_REROOT(); } // PairZmin

const Char_t* REROOT_PlanePos::PasvName (  )  const [inline]
Int_t REROOT_PlanePos::PasvSpec (  )  const [inline]
void REROOT_PlanePos::printEvent ( std::ostream &  pstream  )  const

Definition at line 116 of file REROOT_PlanePos.cxx.

00117 {
00118   pstream << "======================= PlanePos =====================\n";
00119 }

const Char_t* REROOT_PlanePos::Rotm (  )  const [inline]
Int_t REROOT_PlanePos::RotmID (  )  const [inline]
const Float_t* REROOT_PlanePos::XYActv (  )  const [inline]
const Float_t* REROOT_PlanePos::XYPasv (  )  const [inline]
Float_t REROOT_PlanePos::ZFrntActv (  )  const [inline]
Float_t REROOT_PlanePos::ZFrntPasv (  )  const [inline]

Friends And Related Function Documentation

friend class REROOT_Geom [friend]

Definition at line 21 of file REROOT_PlanePos.h.


Member Data Documentation

Char_t REROOT_PlanePos::m_ActvName[5] [private]

Definition at line 33 of file REROOT_PlanePos.h.

Referenced by ActvName().

Int_t REROOT_PlanePos::m_ActvSpec [private]

Definition at line 37 of file REROOT_PlanePos.h.

Referenced by ActvSpec().

Int_t REROOT_PlanePos::m_ID [private]

Definition at line 24 of file REROOT_PlanePos.h.

Referenced by ID().

Int_t REROOT_PlanePos::m_IModule [private]

Definition at line 26 of file REROOT_PlanePos.h.

Referenced by IModule().

Int_t REROOT_PlanePos::m_InMdl [private]

Definition at line 27 of file REROOT_PlanePos.h.

Referenced by InMdl().

Int_t REROOT_PlanePos::m_ISuper [private]

Definition at line 25 of file REROOT_PlanePos.h.

Referenced by ISuper().

Float_t REROOT_PlanePos::m_PairZmax [private]

Definition at line 29 of file REROOT_PlanePos.h.

Referenced by PairZmax().

Float_t REROOT_PlanePos::m_PairZmin [private]

Definition at line 28 of file REROOT_PlanePos.h.

Referenced by REROOT_Geom::FillGlobalZ0Shift(), and PairZmin().

Char_t REROOT_PlanePos::m_PasvName[5] [private]

Definition at line 30 of file REROOT_PlanePos.h.

Referenced by PasvName().

Int_t REROOT_PlanePos::m_PasvSpec [private]

Definition at line 38 of file REROOT_PlanePos.h.

Referenced by PasvSpec().

Char_t REROOT_PlanePos::m_Rotm[5] [private]

Definition at line 36 of file REROOT_PlanePos.h.

Referenced by Rotm().

Int_t REROOT_PlanePos::m_RotmID [private]

Definition at line 39 of file REROOT_PlanePos.h.

Referenced by RotmID().

Float_t REROOT_PlanePos::m_XYActv[2] [private]

Definition at line 34 of file REROOT_PlanePos.h.

Referenced by XYActv().

Float_t REROOT_PlanePos::m_XYPasv[2] [private]

Definition at line 31 of file REROOT_PlanePos.h.

Referenced by XYPasv().

Float_t REROOT_PlanePos::m_ZFrntActv [private]

Definition at line 35 of file REROOT_PlanePos.h.

Referenced by ZFrntActv().

Float_t REROOT_PlanePos::m_ZFrntPasv [private]

Definition at line 32 of file REROOT_PlanePos.h.

Referenced by ZFrntPasv().


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

Generated on 21 Oct 2017 for loon by  doxygen 1.6.1