REROOT_BeamSystem Class Reference

#include <REROOT_BeamSystem.h>

List of all members.

Public Member Functions

 REROOT_BeamSystem (BEAMSYSTEM_DEF *)
 REROOT_BeamSystem ()
 ~REROOT_BeamSystem ()
virtual void accept (REROOT_Visitor &v)
void clear ()
void printEvent (std::ostream &) const
Int_t ID () const
Float_t X0 () const
Float_t Y0 () const
Float_t Z0 () const
Float_t dXdZ () const
Float_t dYdZ () const
Int_t KineMethod () const
Int_t FluxMethod () const
Float_t Emin () const
Float_t Emax () const
const Char_t * FluxFile () const

Private Member Functions

void init ()

Private Attributes

Int_t m_ID
Float_t m_X0
Float_t m_Y0
Float_t m_Z0
Float_t m_dXdZ
Float_t m_dYdZ
Int_t m_KineMethod
Int_t m_FluxMethod
Float_t m_Emin
Float_t m_Emax
Char_t m_FluxFile [65]

Detailed Description

Definition at line 17 of file REROOT_BeamSystem.h.


Constructor & Destructor Documentation

REROOT_BeamSystem::REROOT_BeamSystem ( BEAMSYSTEM_DEF nr  ) 

Definition at line 58 of file REROOT_BeamSystem.cxx.

References init().

00059 {
00060   m_ID          = nr->ID - 1;                                 // C index
00061   m_X0          = nr->X0;
00062   m_Y0          = nr->Y0;
00063   m_Z0          = nr->Z0;
00064   m_dXdZ        = nr->dXdZ;
00065   m_dYdZ        = nr->dYdZ;
00066   m_KineMethod  = nr->KineMethod;
00067   m_Emin        = nr->Emin;
00068   m_Emax        = nr->Emax;
00069   m_FluxMethod  = nr->FluxMethod;
00070 
00071 // Fill String objects for char vectors from BeamSystem struct.
00072   Int_t i;    // Keep this declaration here for scope outside for-loops.
00073   for (i=0; i<64; i++)  {
00074         if (nr->FluxFile[i]=='\0' ||
00075             nr->FluxFile[i]==' ') break;
00076         m_FluxFile[i] = nr->FluxFile[i];
00077   }
00078   m_FluxFile[i] = '\0';
00079 
00080   init();
00081 }

REROOT_BeamSystem::REROOT_BeamSystem (  ) 

Definition at line 84 of file REROOT_BeamSystem.cxx.

00085 {
00086 }

REROOT_BeamSystem::~REROOT_BeamSystem (  ) 

Definition at line 94 of file REROOT_BeamSystem.cxx.

00095 {
00096 }


Member Function Documentation

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

Definition at line 40 of file REROOT_BeamSystem.h.

References REROOT_Visitor::visit().

00040 { v.visit(this); }

void REROOT_BeamSystem::clear (  ) 

Definition at line 99 of file REROOT_BeamSystem.cxx.

00100 {
00101 }

Float_t REROOT_BeamSystem::dXdZ (  )  const [inline]

Definition at line 50 of file REROOT_BeamSystem.h.

References m_dXdZ.

00050 {return m_dXdZ;}               // dXdZ

Float_t REROOT_BeamSystem::dYdZ (  )  const [inline]

Definition at line 51 of file REROOT_BeamSystem.h.

References m_dYdZ.

00051 {return m_dYdZ;}               // dYdZ

Float_t REROOT_BeamSystem::Emax (  )  const [inline]

Definition at line 55 of file REROOT_BeamSystem.h.

References m_Emax.

00055 {return m_Emax;}               // Emax

Float_t REROOT_BeamSystem::Emin (  )  const [inline]

Definition at line 54 of file REROOT_BeamSystem.h.

References m_Emin.

00054 {return m_Emin;}               // Emin

const Char_t* REROOT_BeamSystem::FluxFile (  )  const [inline]

Definition at line 56 of file REROOT_BeamSystem.h.

References m_FluxFile.

00056 {return m_FluxFile;}   // FluxFile[65]

Int_t REROOT_BeamSystem::FluxMethod (  )  const [inline]

Definition at line 53 of file REROOT_BeamSystem.h.

References m_FluxMethod.

00053 {return m_FluxMethod;}   // FluxMethod

Int_t REROOT_BeamSystem::ID (  )  const [inline]

Definition at line 46 of file REROOT_BeamSystem.h.

References m_ID.

00046 {return m_ID;}                   // ID

void REROOT_BeamSystem::init ( void   )  [private]

Definition at line 89 of file REROOT_BeamSystem.cxx.

00090 {
00091 }

Int_t REROOT_BeamSystem::KineMethod (  )  const [inline]

Definition at line 52 of file REROOT_BeamSystem.h.

References m_KineMethod.

00052 {return m_KineMethod;}   // KineMethod

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

Definition at line 104 of file REROOT_BeamSystem.cxx.

00105 {
00106   pstream << "====================== BeamSystem ====================\n";
00107 }

Float_t REROOT_BeamSystem::X0 ( void   )  const [inline]

Definition at line 47 of file REROOT_BeamSystem.h.

References m_X0.

00047 {return m_X0;}                   // X0

Float_t REROOT_BeamSystem::Y0 (  )  const [inline]

Definition at line 48 of file REROOT_BeamSystem.h.

References m_Y0.

00048 {return m_Y0;}                   // Y0

Float_t REROOT_BeamSystem::Z0 (  )  const [inline]

Definition at line 49 of file REROOT_BeamSystem.h.

References m_Z0, and zoffset_REROOT().

00049 {return m_Z0 + zoffset_REROOT();}// Z0


Member Data Documentation

Float_t REROOT_BeamSystem::m_dXdZ [private]

Definition at line 24 of file REROOT_BeamSystem.h.

Referenced by dXdZ().

Float_t REROOT_BeamSystem::m_dYdZ [private]

Definition at line 25 of file REROOT_BeamSystem.h.

Referenced by dYdZ().

Float_t REROOT_BeamSystem::m_Emax [private]

Definition at line 29 of file REROOT_BeamSystem.h.

Referenced by Emax().

Float_t REROOT_BeamSystem::m_Emin [private]

Definition at line 28 of file REROOT_BeamSystem.h.

Referenced by Emin().

Char_t REROOT_BeamSystem::m_FluxFile[65] [private]

Definition at line 30 of file REROOT_BeamSystem.h.

Referenced by FluxFile().

Definition at line 27 of file REROOT_BeamSystem.h.

Referenced by FluxMethod().

Int_t REROOT_BeamSystem::m_ID [private]

Definition at line 20 of file REROOT_BeamSystem.h.

Referenced by ID().

Definition at line 26 of file REROOT_BeamSystem.h.

Referenced by KineMethod().

Float_t REROOT_BeamSystem::m_X0 [private]

Definition at line 21 of file REROOT_BeamSystem.h.

Referenced by X0().

Float_t REROOT_BeamSystem::m_Y0 [private]

Definition at line 22 of file REROOT_BeamSystem.h.

Referenced by Y0().

Float_t REROOT_BeamSystem::m_Z0 [private]

Definition at line 23 of file REROOT_BeamSystem.h.

Referenced by Z0().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1