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  ) 

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]

Definition at line 63 of file REROOT_PlanePos.h.

References m_ActvName.

Referenced by RerootExodus::ActvPlaneName(), UgliGeometryReroot::CreateAndBackFillPlanePosDef(), RerootExodus::NumberOfPlanes(), and RerootExodus::PlaneName().

00063 {return m_ActvName;  }    // ActvName[5]

Int_t REROOT_PlanePos::ActvSpec (  )  const [inline]

Definition at line 67 of file REROOT_PlanePos.h.

References m_ActvSpec.

Referenced by MINFLST::BookHits(), MINFFLS::BookHits(), MINFEMU::BookHits(), MINFDetGeom::BuildDetectorGeometry(), UgliGeometryReroot::CreateAndBackFillPlanePosDef(), RerootExodus::GetPlaneSpec(), RerootExodus::NStripsNonZero(), RerootExodus::PECAB2SEId(), RerootExodus::RerootPlaneXYZ0(), and RerootExodus::RerootPln2PlnId().

00067 {return m_ActvSpec;  }       // ActvSpec

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

Definition at line 55 of file REROOT_PlanePos.h.

References m_ISuper.

Referenced by MINFDetGeom::BuildDetectorGeometry(), UgliGeometryReroot::CreateAndBackFillPlanePosDef(), and RerootExodus::NumberOfPlanes().

00055 {return m_ISuper;  }           // ISuper

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

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

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

const Char_t* REROOT_PlanePos::PasvName (  )  const [inline]

Definition at line 60 of file REROOT_PlanePos.h.

References m_PasvName.

Referenced by UgliGeometryReroot::CreateAndBackFillPlanePosDef(), RerootExodus::NumberOfPlanes(), RerootExodus::PasvPlaneName(), and RerootExodus::PlaneName().

00060 {return m_PasvName;  }    // PasvName[5]

Int_t REROOT_PlanePos::PasvSpec (  )  const [inline]

Definition at line 68 of file REROOT_PlanePos.h.

References m_PasvSpec.

Referenced by UgliGeometryReroot::CreateAndBackFillPlanePosDef(), RerootExodus::GetPlaneSpec(), and RerootExodus::RerootPlaneXYZ0().

00068 {return m_PasvSpec;  }       // PasvSpec

void REROOT_PlanePos::printEvent ( std::ostream &   )  const

Definition at line 116 of file REROOT_PlanePos.cxx.

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

const Char_t* REROOT_PlanePos::Rotm (  )  const [inline]

Definition at line 66 of file REROOT_PlanePos.h.

References m_Rotm.

Referenced by MINFDetGeom::BuildDetectorGeometry(), UgliGeometryReroot::CreateAndBackFillPlanePosDef(), RerootExodus::GetCellPos(), RerootExodus::PECAB2SEId(), RerootExodus::RerootPlaneToView(), and RerootExodus::RerootPln2PlnId().

00066 {return m_Rotm;  }            // Rotm[5]

Int_t REROOT_PlanePos::RotmID (  )  const [inline]

Definition at line 69 of file REROOT_PlanePos.h.

References m_RotmID.

Referenced by MINFLST::BookHits(), MINFFLS::BookHits(), MINFEMU::BookHits(), UgliGeometryReroot::CreateAndBackFillPlanePosDef(), and RerootExodus::GetRotm().

00069 {return m_RotmID;  }           // RotmID

const Float_t* REROOT_PlanePos::XYActv (  )  const [inline]

Definition at line 64 of file REROOT_PlanePos.h.

References m_XYActv.

Referenced by MINFLST::BookHits(), MINFFLS::BookHits(), MINFEMU::BookHits(), MINFDetGeom::BuildDetectorGeometry(), UgliGeometryReroot::CreateAndBackFillPlanePosDef(), UgliGeometryReroot::MakeTempDbiPosInfo(), RerootExodus::RerootPlaneXYZ0(), RerootExodus::SEIdGlobalToLocal(), and RerootExodus::SEIdLocalToGlobal().

00064 {return m_XYActv;  }        // XYActv[2]

const Float_t* REROOT_PlanePos::XYPasv (  )  const [inline]

Definition at line 61 of file REROOT_PlanePos.h.

References m_XYPasv.

Referenced by UgliGeometryReroot::CreateAndBackFillPlanePosDef(), UgliGeometryReroot::MakeTempDbiPosInfo(), and RerootExodus::RerootPlaneXYZ0().

00061 {return m_XYPasv;  }        // XYPasv[2]

Float_t REROOT_PlanePos::ZFrntActv (  )  const [inline]

Definition at line 65 of file REROOT_PlanePos.h.

References m_ZFrntActv, and zoffset_REROOT().

Referenced by MINFLST::BookHits(), MINFFLS::BookHits(), MINFEMU::BookHits(), MINFDetGeom::BuildDetectorGeometry(), UgliGeometryReroot::CreateAndBackFillPlanePosDef(), RerootExodus::RerootPlaneXYZ0(), RerootExodus::SEIdGlobalToLocal(), and RerootExodus::SEIdLocalToGlobal().

00065 {return m_ZFrntActv + zoffset_REROOT(); } // ZFrntActv

Float_t REROOT_PlanePos::ZFrntPasv (  )  const [inline]

Definition at line 62 of file REROOT_PlanePos.h.

References m_ZFrntPasv, and zoffset_REROOT().

Referenced by UgliGeometryReroot::CreateAndBackFillPlanePosDef(), UgliGeometryReroot::MakeTempDbiPosInfo(), and RerootExodus::RerootPlaneXYZ0().

00062 {return m_ZFrntPasv + zoffset_REROOT(); } // ZFrntPasv


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 Wed Sep 10 22:52:04 2014 for loon by  doxygen 1.4.7