REROOT_SubVolPos Class Reference

#include <REROOT_SubVolPos.h>

List of all members.

Public Member Functions

 REROOT_SubVolPos (SUBVOLPOS_DEF *)
 REROOT_SubVolPos ()
 ~REROOT_SubVolPos ()
virtual void accept (REROOT_Visitor &v)
void clear ()
void printEvent (std::ostream &) const
Int_t ID () const
const Char_t * VolName () const
Int_t ICopy () const
const Char_t * VolMother () const
Float_t XPos () const
Float_t YPos () const
Float_t ZPos () const
Int_t IRot () const
const Char_t * Only () const

Private Member Functions

void init ()

Private Attributes

Int_t m_ID
Char_t m_VolName [5]
Int_t m_ICopy
Char_t m_VolMother [5]
Float_t m_XPos
Float_t m_YPos
Float_t m_ZPos
Int_t m_IRot
Char_t m_Only [5]

Detailed Description

Definition at line 16 of file REROOT_SubVolPos.h.


Constructor & Destructor Documentation

REROOT_SubVolPos::REROOT_SubVolPos ( SUBVOLPOS_DEF nr  ) 

Definition at line 59 of file REROOT_SubVolPos.cxx.

References init().

00060 {
00061   m_ID    = nr->ID - 1;                                       // C index
00062   m_ICopy = nr->ICopy - 1;                                    // C index
00063   m_XPos  = nr->XPos;
00064   m_YPos  = nr->YPos;
00065   m_ZPos  = nr->ZPos;
00066   m_IRot  = nr->IRot - 1;                                     // C index
00067 
00068 // Fill String objects for char vectors from SubVolPos struct.
00069   Int_t i;    // Keep this declaration here for scope outside for-loops.
00070   for (i=0; i<4; i++)  {
00071         if (nr->VolName[i]=='\0' || nr->VolName[i]==' ') break;
00072         m_VolName[i] = nr->VolName[i];
00073   }
00074   m_VolName[i] = '\0';
00075   for (i=0; i<4; i++)  {
00076         if (nr->VolMother[i]=='\0' || nr->VolMother[i]==' ') break;
00077         m_VolMother[i] = nr->VolMother[i];
00078   }
00079   m_VolMother[i] = '\0';
00080   for (i=0; i<4; i++)  {
00081         if (nr->Only[i]=='\0' || nr->Only[i]==' ') break;
00082         m_Only[i] = nr->Only[i];
00083   }
00084   m_Only[i] = '\0';
00085 
00086   init();
00087 }

REROOT_SubVolPos::REROOT_SubVolPos (  ) 

Definition at line 89 of file REROOT_SubVolPos.cxx.

00090 {
00091 }

REROOT_SubVolPos::~REROOT_SubVolPos (  ) 

Definition at line 97 of file REROOT_SubVolPos.cxx.

00098 {
00099 }


Member Function Documentation

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

Definition at line 36 of file REROOT_SubVolPos.h.

References REROOT_Visitor::visit().

00036 { v.visit(this); }

void REROOT_SubVolPos::clear (  ) 

Definition at line 101 of file REROOT_SubVolPos.cxx.

00102 {
00103 }

Int_t REROOT_SubVolPos::ICopy (  )  const [inline]

Definition at line 44 of file REROOT_SubVolPos.h.

References m_ICopy.

00044 {return m_ICopy;  }            // ICopy

Int_t REROOT_SubVolPos::ID (  )  const [inline]

Definition at line 42 of file REROOT_SubVolPos.h.

References m_ID.

00042 {return m_ID;  }                  // ID

void REROOT_SubVolPos::init ( void   )  [private]

Definition at line 93 of file REROOT_SubVolPos.cxx.

00094 {
00095 }

Int_t REROOT_SubVolPos::IRot (  )  const [inline]

Definition at line 49 of file REROOT_SubVolPos.h.

References m_IRot.

00049 {return m_IRot;  }              // IRot

const Char_t* REROOT_SubVolPos::Only (  )  const [inline]

Definition at line 50 of file REROOT_SubVolPos.h.

References m_Only.

00050 {return m_Only;  }           // Only[5]

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

Definition at line 105 of file REROOT_SubVolPos.cxx.

00106 {
00107   pstream << "====================== SubVolPos =====================\n";
00108 }

const Char_t* REROOT_SubVolPos::VolMother (  )  const [inline]

Definition at line 45 of file REROOT_SubVolPos.h.

References m_VolMother.

00045 {return m_VolMother;  } // VolMother[5]

const Char_t* REROOT_SubVolPos::VolName (  )  const [inline]

Definition at line 43 of file REROOT_SubVolPos.h.

References m_VolName.

00043 {return m_VolName;  }     // VolName[5]

Float_t REROOT_SubVolPos::XPos (  )  const [inline]

Definition at line 46 of file REROOT_SubVolPos.h.

References m_XPos.

00046 {return m_XPos;  }              // XPos

Float_t REROOT_SubVolPos::YPos (  )  const [inline]

Definition at line 47 of file REROOT_SubVolPos.h.

References m_YPos.

00047 {return m_YPos;  }              // YPos

Float_t REROOT_SubVolPos::ZPos (  )  const [inline]

Definition at line 48 of file REROOT_SubVolPos.h.

References m_ZPos.

00048 {return m_ZPos;  }              // ZPos


Member Data Documentation

Int_t REROOT_SubVolPos::m_ICopy [private]

Definition at line 21 of file REROOT_SubVolPos.h.

Referenced by ICopy().

Int_t REROOT_SubVolPos::m_ID [private]

Definition at line 19 of file REROOT_SubVolPos.h.

Referenced by ID().

Int_t REROOT_SubVolPos::m_IRot [private]

Definition at line 26 of file REROOT_SubVolPos.h.

Referenced by IRot().

Char_t REROOT_SubVolPos::m_Only[5] [private]

Definition at line 27 of file REROOT_SubVolPos.h.

Referenced by Only().

Char_t REROOT_SubVolPos::m_VolMother[5] [private]

Definition at line 22 of file REROOT_SubVolPos.h.

Referenced by VolMother().

Char_t REROOT_SubVolPos::m_VolName[5] [private]

Definition at line 20 of file REROOT_SubVolPos.h.

Referenced by VolName().

Float_t REROOT_SubVolPos::m_XPos [private]

Definition at line 23 of file REROOT_SubVolPos.h.

Referenced by XPos().

Float_t REROOT_SubVolPos::m_YPos [private]

Definition at line 24 of file REROOT_SubVolPos.h.

Referenced by YPos().

Float_t REROOT_SubVolPos::m_ZPos [private]

Definition at line 25 of file REROOT_SubVolPos.h.

Referenced by ZPos().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1