REROOT_Material Class Reference

#include <REROOT_Material.h>

List of all members.

Public Member Functions

 REROOT_Material (MATERIAL_DEF *)
 REROOT_Material ()
 ~REROOT_Material ()
virtual void accept (REROOT_Visitor &v)
void clear ()
void printEvent (std::ostream &) const
Int_t ID () const
const Char_t * Name () const
Float_t A () const
Float_t Z () const
Float_t Density () const
Float_t RadLen () const
Float_t AbsLen () const
Int_t NMix () const

Private Member Functions

void init ()

Private Attributes

Int_t m_ID
Char_t m_Name [33]
Float_t m_A
Float_t m_Z
Float_t m_Density
Float_t m_RadLen
Float_t m_AbsLen
Int_t m_NMix

Detailed Description

Definition at line 16 of file REROOT_Material.h.


Constructor & Destructor Documentation

REROOT_Material::REROOT_Material ( MATERIAL_DEF nr  ) 

Definition at line 59 of file REROOT_Material.cxx.

References init().

00060 {
00061   m_ID      = nr->ID - 1;                                     // C index
00062   m_A       = nr->A;
00063   m_Z       = nr->Z;
00064   m_Density = nr->Density;
00065   m_RadLen  = nr->RadLen;
00066   m_AbsLen  = nr->AbsLen;
00067   m_NMix    = nr->NMix;
00068 
00069 // Fill String objects for char vectors from Material struct.
00070   Int_t i;    // Keep this declaration here for scope outside for-loops.
00071   for (i=0; i<32; i++)  {
00072         if (nr->Name[i]=='\0' || nr->Name[i]==' ') break;
00073          m_Name[i] = nr->Name[i];
00074   }
00075   m_Name[i] = '\0';
00076 
00077   init();
00078 }

REROOT_Material::REROOT_Material (  ) 

Definition at line 80 of file REROOT_Material.cxx.

00081 {
00082 }

REROOT_Material::~REROOT_Material (  ) 

Definition at line 88 of file REROOT_Material.cxx.

00089 {
00090 }


Member Function Documentation

Float_t REROOT_Material::A ( void   )  const [inline]

Definition at line 43 of file REROOT_Material.h.

References m_A.

00043 {return m_A;  }                        // A

Float_t REROOT_Material::AbsLen (  )  const [inline]

Definition at line 47 of file REROOT_Material.h.

References m_AbsLen.

00047 {return m_AbsLen;  }              // AbsLen

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

Definition at line 35 of file REROOT_Material.h.

References REROOT_Visitor::visit().

00035 { v.visit(this); }

void REROOT_Material::clear (  ) 

Definition at line 92 of file REROOT_Material.cxx.

00093 {
00094 }

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

Definition at line 45 of file REROOT_Material.h.

References m_Density.

00045 {return m_Density;  }            // Density

Int_t REROOT_Material::ID (  )  const [inline]

Definition at line 41 of file REROOT_Material.h.

References m_ID.

00041 {return m_ID;  }                      // ID

void REROOT_Material::init ( void   )  [private]

Definition at line 84 of file REROOT_Material.cxx.

00085 {
00086 }

const Char_t* REROOT_Material::Name ( void   )  const [inline]

Definition at line 42 of file REROOT_Material.h.

References m_Name.

00042 {return m_Name;  }              // Name[33]

Int_t REROOT_Material::NMix (  )  const [inline]

Definition at line 48 of file REROOT_Material.h.

References m_NMix.

00048 {return m_NMix;  }                  // NMix

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

Definition at line 96 of file REROOT_Material.cxx.

00097 {
00098   pstream << "======================= Material =====================\n";
00099 }

Float_t REROOT_Material::RadLen (  )  const [inline]

Definition at line 46 of file REROOT_Material.h.

References m_RadLen.

00046 {return m_RadLen;  }              // RadLen

Float_t REROOT_Material::Z ( void   )  const [inline]

Definition at line 44 of file REROOT_Material.h.

References m_Z.

00044 {return m_Z;  }                        // Z


Member Data Documentation

Float_t REROOT_Material::m_A [private]

Definition at line 21 of file REROOT_Material.h.

Referenced by A().

Float_t REROOT_Material::m_AbsLen [private]

Definition at line 25 of file REROOT_Material.h.

Referenced by AbsLen().

Float_t REROOT_Material::m_Density [private]

Definition at line 23 of file REROOT_Material.h.

Referenced by Density().

Int_t REROOT_Material::m_ID [private]

Definition at line 19 of file REROOT_Material.h.

Referenced by ID().

Char_t REROOT_Material::m_Name[33] [private]

Definition at line 20 of file REROOT_Material.h.

Referenced by Name().

Int_t REROOT_Material::m_NMix [private]

Definition at line 26 of file REROOT_Material.h.

Referenced by NMix().

Float_t REROOT_Material::m_RadLen [private]

Definition at line 24 of file REROOT_Material.h.

Referenced by RadLen().

Float_t REROOT_Material::m_Z [private]

Definition at line 22 of file REROOT_Material.h.

Referenced by Z().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1