REROOT_SubVolSpec Class Reference

#include <REROOT_SubVolSpec.h>

List of all members.

Public Member Functions

 REROOT_SubVolSpec (SUBVOLSPEC_DEF *)
 REROOT_SubVolSpec ()
 ~REROOT_SubVolSpec ()
virtual void accept (REROOT_Visitor &v)
void clear ()
void printEvent (std::ostream &) const
Int_t ID () const
const Char_t * VolName () const
const Char_t * Shape () const
const Char_t * TMedium () const
Int_t NGSVol () const
const Float_t * GSVol () const

Private Member Functions

void init ()

Private Attributes

Int_t m_ID
Char_t m_VolName [5]
Char_t m_Shape [5]
Char_t m_TMedium [5]
Int_t m_NGSVol
Float_t m_GSVol [10]


Detailed Description

Definition at line 16 of file REROOT_SubVolSpec.h.


Constructor & Destructor Documentation

REROOT_SubVolSpec::REROOT_SubVolSpec ( SUBVOLSPEC_DEF  ) 

Definition at line 59 of file REROOT_SubVolSpec.cxx.

References init().

00060 {
00061   m_ID     = nr->ID - 1;                                      // C index
00062   m_NGSVol = nr->NGSVol;
00063 
00064 // Fill simple arrays from SubVolSpec struct.
00065   Int_t i;    // Keep this declaration here for scope outside for-loops.
00066   for (i=0; i<10; i++) {
00067         m_GSVol[i]   = nr->GSVol[i];
00068   }
00069 
00070 // Fill 4 vector String objects with vectors from SubVolSpec struct.
00071   for (i=0; i<4; i++) {
00072         if (nr->VolName[i]=='\0' || nr->VolName[i]==' ') break;
00073         m_VolName[i] = nr->VolName[i];
00074   }
00075   m_VolName[i] = '\0';
00076   for (i=0; i<4; i++) {
00077         if (nr->Shape[i]=='\0' || nr->Shape[i]==' ') break;
00078         m_Shape[i] = nr->Shape[i];
00079   }
00080   m_Shape[i] = '\0';
00081   for (i=0; i<4; i++) {
00082         if (nr->TMedium[i]=='\0' || nr->TMedium[i]==' ') break;
00083         m_TMedium[i] = nr->TMedium[i];
00084   }
00085   m_TMedium[i] = '\0';
00086 
00087   init();
00088 }

REROOT_SubVolSpec::REROOT_SubVolSpec (  ) 

Definition at line 90 of file REROOT_SubVolSpec.cxx.

00091 {
00092 }

REROOT_SubVolSpec::~REROOT_SubVolSpec (  ) 

Definition at line 98 of file REROOT_SubVolSpec.cxx.

00099 {
00100 }


Member Function Documentation

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

Definition at line 33 of file REROOT_SubVolSpec.h.

References REROOT_Visitor::visit().

00033 { v.visit(this); }

void REROOT_SubVolSpec::clear (  ) 

Definition at line 102 of file REROOT_SubVolSpec.cxx.

00103 {
00104 }

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

Definition at line 44 of file REROOT_SubVolSpec.h.

References m_GSVol.

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

Int_t REROOT_SubVolSpec::ID (  )  const [inline]

Definition at line 39 of file REROOT_SubVolSpec.h.

References m_ID.

00039 {return m_ID;  }                    // ID

void REROOT_SubVolSpec::init (  )  [private]

Definition at line 94 of file REROOT_SubVolSpec.cxx.

00095 {
00096 }

Int_t REROOT_SubVolSpec::NGSVol (  )  const [inline]

Definition at line 43 of file REROOT_SubVolSpec.h.

References m_NGSVol.

00043 {return m_NGSVol;  }            // NGSVol

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

Definition at line 106 of file REROOT_SubVolSpec.cxx.

00107 {
00108   pstream << "===================== SubVolSpec =====================\n";
00109 }

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

Definition at line 41 of file REROOT_SubVolSpec.h.

References m_Shape.

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

const Char_t* REROOT_SubVolSpec::TMedium (  )  const [inline]

Definition at line 42 of file REROOT_SubVolSpec.h.

References m_TMedium.

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

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

Definition at line 40 of file REROOT_SubVolSpec.h.

References m_VolName.

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


Member Data Documentation

Float_t REROOT_SubVolSpec::m_GSVol[10] [private]

Definition at line 24 of file REROOT_SubVolSpec.h.

Referenced by GSVol().

Int_t REROOT_SubVolSpec::m_ID [private]

Definition at line 19 of file REROOT_SubVolSpec.h.

Referenced by ID().

Int_t REROOT_SubVolSpec::m_NGSVol [private]

Definition at line 23 of file REROOT_SubVolSpec.h.

Referenced by NGSVol().

Char_t REROOT_SubVolSpec::m_Shape[5] [private]

Definition at line 21 of file REROOT_SubVolSpec.h.

Referenced by Shape().

Char_t REROOT_SubVolSpec::m_TMedium[5] [private]

Definition at line 22 of file REROOT_SubVolSpec.h.

Referenced by TMedium().

Char_t REROOT_SubVolSpec::m_VolName[5] [private]

Definition at line 20 of file REROOT_SubVolSpec.h.

Referenced by VolName().


The documentation for this class was generated from the following files:
Generated on Mon Nov 10 00:56:24 2014 for loon by  doxygen 1.4.7