PTGuiMedium Class Reference

#include <PTGuiMedium.h>

List of all members.

Public Member Functions

 PTGuiMedium ()
 PTGuiMedium (std::string medName, Int_t medId, Int_t matId, Int_t isvol, Int_t ifield, Double_t fieldm, Double_t tmaxfd, Double_t stemax, Double_t deemax, Double_t epsil, Double_t stmin)
virtual ~PTGuiMedium ()
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (Option_t *option="") const
Int_t Id () const
Int_t IdMat () const
Int_t Isvol () const
Int_t Ifield () const
Double_t Fieldm () const
Double_t Tmaxfd () const
Double_t Stemax () const
Double_t Deemax () const
Double_t Epsil () const
Double_t Stmin () const
Double_t Cut (Int_t cut) const
Int_t Process (Int_t process) const
void SetCut (Int_t icut, Double_t cut)
void SetProcess (Int_t iprocess, Int_t processflag)

Private Member Functions

 PTGuiMedium (const PTGuiMedium &that)
PTGuiMediumoperator= (const PTGuiMedium &that)

Private Attributes

Int_t fId
Int_t fIdMat
Int_t fIsvol
Int_t fIfield
Double_t fFieldm
Double_t fTmaxfd
Double_t fStemax
Double_t fDeemax
Double_t fEpsil
Double_t fStmin
Double_t fCut [PTGui::kNCut]
Int_t fProcess [PTGui::kNProcess]

Detailed Description

Definition at line 26 of file PTGuiMedium.h.


Constructor & Destructor Documentation

PTGuiMedium::PTGuiMedium (  ) 

Definition at line 21 of file PTGuiMedium.cxx.

References PTGui::kNCut, and PTGui::kNProcess.

00021                          :
00022       TNamed(),fId(-1),fIdMat(-1),fIsvol(-1),
00023       fIfield(-1),fFieldm(-1),fTmaxfd(-1),fStemax(-1),
00024       fDeemax(-1),fEpsil(-1),fStmin(-1) {
00025   // Def constructor
00026 
00027   for ( Int_t icut = 0; icut < PTGui::kNCut; icut++ ) fCut[icut] = 0;
00028   for ( Int_t ip = 0;   ip   < PTGui::kNProcess; ip++ ) fProcess[ip] = -1;
00029     
00030 }

PTGuiMedium::PTGuiMedium ( std::string  medName,
Int_t  medId,
Int_t  matId,
Int_t  isvol,
Int_t  ifield,
Double_t  fieldm,
Double_t  tmaxfd,
Double_t  stemax,
Double_t  deemax,
Double_t  epsil,
Double_t  stmin 
)

Definition at line 33 of file PTGuiMedium.cxx.

References fCut, fProcess, PTGui::kNCut, and PTGui::kNProcess.

00035                                                                         :
00036       TNamed(medName.c_str(),""),fId(medId),fIdMat(matId),fIsvol(isvol),
00037       fIfield(ifield),fFieldm(fieldm),fTmaxfd(tmaxfd),fStemax(stemax),
00038       fDeemax(deemax),fEpsil(epsil),fStmin(stmin) {
00039   // Normal constructor
00040 
00041   for ( Int_t icut = 0; icut < PTGui::kNCut; icut++ ) fCut[icut] = 0;
00042   for ( Int_t ip = 0;   ip   < PTGui::kNProcess; ip++ ) fProcess[ip] = -1;
00043     
00044 }

virtual PTGuiMedium::~PTGuiMedium (  )  [inline, virtual]

Definition at line 36 of file PTGuiMedium.h.

00036 {}

PTGuiMedium::PTGuiMedium ( const PTGuiMedium that  )  [private]

Member Function Documentation

Double_t PTGuiMedium::Cut ( Int_t  cut  )  const [inline]

Definition at line 51 of file PTGuiMedium.h.

References fCut.

Referenced by PTGuiMainFrame::UpdateCutList().

00051 { return fCut[cut]; }

Double_t PTGuiMedium::Deemax (  )  const [inline]

Definition at line 48 of file PTGuiMedium.h.

References fDeemax.

Referenced by Print(), and PTGuiMainFrame::UpdateMediumList().

00048 { return fDeemax; }

Double_t PTGuiMedium::Epsil (  )  const [inline]

Definition at line 49 of file PTGuiMedium.h.

References fEpsil.

Referenced by Print(), and PTGuiMainFrame::UpdateMediumList().

00049 { return fEpsil; }

Double_t PTGuiMedium::Fieldm (  )  const [inline]

Definition at line 45 of file PTGuiMedium.h.

References fFieldm.

Referenced by Print(), and PTGuiMainFrame::UpdateMediumList().

00045 { return fFieldm; }

Int_t PTGuiMedium::Id (  )  const [inline]

Definition at line 41 of file PTGuiMedium.h.

References fId.

Referenced by Print(), and PTGuiMainFrame::UpdateMediumList().

00041 { return fId; }

Int_t PTGuiMedium::IdMat (  )  const [inline]

Definition at line 42 of file PTGuiMedium.h.

References fIdMat.

Referenced by PTGuiMainFrame::Plot(), Print(), PTGuiMainFrame::UpdateMaterialList(), and PTGuiMainFrame::UpdateMechanismCombo().

00042 { return fIdMat;}

Int_t PTGuiMedium::Ifield (  )  const [inline]

Definition at line 44 of file PTGuiMedium.h.

References fIfield.

Referenced by Print(), and PTGuiMainFrame::UpdateMediumList().

00044 { return fIfield; }

Int_t PTGuiMedium::Isvol (  )  const [inline]

Definition at line 43 of file PTGuiMedium.h.

References fIsvol.

Referenced by Print(), and PTGuiMainFrame::UpdateMediumList().

00043 { return fIsvol; }

PTGuiMedium& PTGuiMedium::operator= ( const PTGuiMedium that  )  [private]
void PTGuiMedium::Print ( Option_t *  option = ""  )  const [virtual]

Definition at line 61 of file PTGuiMedium.cxx.

References Print().

00061                                                     {
00062   // Print record in form supported by TObject::Print
00063   //
00064 
00065   Print(std::cout);
00066   
00067 }

std::ostream & PTGuiMedium::Print ( std::ostream &  os  )  const [virtual]

Definition at line 47 of file PTGuiMedium.cxx.

References Deemax(), Epsil(), Fieldm(), Nav::GetName(), Id(), IdMat(), Ifield(), Isvol(), Stemax(), Stmin(), and Tmaxfd().

Referenced by operator<<(), and Print().

00047                                                    {
00048   //  Print medium definition on ostream.
00049 
00050   os << GetName() << ", " << Id() << ", " << IdMat() 
00051      << ", " << Isvol() << ", " << Ifield() << ", " 
00052      << Fieldm() << ", " << Tmaxfd() << ", " << Stemax()
00053      << ", " << Deemax() << ", " << "," <<  Epsil() 
00054      << ", " << Stmin() << endl;
00055 
00056   return os;
00057 
00058 }

Int_t PTGuiMedium::Process ( Int_t  process  )  const [inline]

Definition at line 52 of file PTGuiMedium.h.

References fProcess.

Referenced by PTGuiMainFrame::UpdateProcessList().

00053                                   { return fProcess[process]; }

void PTGuiMedium::SetCut ( Int_t  icut,
Double_t  cut 
) [inline]

Definition at line 56 of file PTGuiMedium.h.

References fCut.

00056 { fCut[icut] = cut; }

void PTGuiMedium::SetProcess ( Int_t  iprocess,
Int_t  processflag 
) [inline]

Definition at line 57 of file PTGuiMedium.h.

References fProcess.

00058                                 { fProcess[iprocess] = processflag; }   

Double_t PTGuiMedium::Stemax (  )  const [inline]

Definition at line 47 of file PTGuiMedium.h.

References fStemax.

Referenced by Print(), and PTGuiMainFrame::UpdateMediumList().

00047 { return fStemax; }

Double_t PTGuiMedium::Stmin (  )  const [inline]

Definition at line 50 of file PTGuiMedium.h.

References fStmin.

Referenced by Print(), and PTGuiMainFrame::UpdateMediumList().

00050 { return fStmin; }

Double_t PTGuiMedium::Tmaxfd (  )  const [inline]

Definition at line 46 of file PTGuiMedium.h.

References fTmaxfd.

Referenced by Print(), and PTGuiMainFrame::UpdateMediumList().

00046 { return fTmaxfd; }


Member Data Documentation

Double_t PTGuiMedium::fCut[PTGui::kNCut] [private]

Definition at line 76 of file PTGuiMedium.h.

Referenced by Cut(), PTGuiMedium(), and SetCut().

Double_t PTGuiMedium::fDeemax [private]

Definition at line 73 of file PTGuiMedium.h.

Referenced by Deemax().

Double_t PTGuiMedium::fEpsil [private]

Definition at line 74 of file PTGuiMedium.h.

Referenced by Epsil().

Double_t PTGuiMedium::fFieldm [private]

Definition at line 70 of file PTGuiMedium.h.

Referenced by Fieldm().

Int_t PTGuiMedium::fId [private]

Definition at line 66 of file PTGuiMedium.h.

Referenced by Id().

Int_t PTGuiMedium::fIdMat [private]

Definition at line 67 of file PTGuiMedium.h.

Referenced by IdMat().

Int_t PTGuiMedium::fIfield [private]

Definition at line 69 of file PTGuiMedium.h.

Referenced by Ifield().

Int_t PTGuiMedium::fIsvol [private]

Definition at line 68 of file PTGuiMedium.h.

Referenced by Isvol().

Definition at line 77 of file PTGuiMedium.h.

Referenced by Process(), PTGuiMedium(), and SetProcess().

Double_t PTGuiMedium::fStemax [private]

Definition at line 72 of file PTGuiMedium.h.

Referenced by Stemax().

Double_t PTGuiMedium::fStmin [private]

Definition at line 75 of file PTGuiMedium.h.

Referenced by Stmin().

Double_t PTGuiMedium::fTmaxfd [private]

Definition at line 71 of file PTGuiMedium.h.

Referenced by Tmaxfd().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1