PTGuiMaterial Class Reference

#include <PTGuiMaterial.h>

List of all members.

Public Member Functions

 PTGuiMaterial ()
 PTGuiMaterial (std::string matName, Int_t matId, Double_t a, Double_t z, Double_t dens, Double_t radl, Double_t intl)
virtual ~PTGuiMaterial ()
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (Option_t *option="") const
Int_t Id () const
Double_t A () const
Double_t Z () const
Double_t Density () const
Double_t RadLen () const
Double_t IntLen () const

Private Member Functions

 PTGuiMaterial (const PTGuiMaterial &that)
PTGuiMaterialoperator= (const PTGuiMaterial &that)

Private Attributes

Int_t fId
Double_t fA
Double_t fZ
Double_t fDensity
Double_t fRadLen
Double_t fIntLen

Detailed Description

Definition at line 25 of file PTGuiMaterial.h.


Constructor & Destructor Documentation

PTGuiMaterial::PTGuiMaterial (  ) 

Definition at line 21 of file PTGuiMaterial.cxx.

00021                              : TNamed(),fId(-1),fA(-1),fZ(-1),fDensity(-1),
00022                                  fRadLen(-1),fIntLen(-1) {
00023   // Def
00024 }

PTGuiMaterial::PTGuiMaterial ( std::string  matName,
Int_t  matId,
Double_t  a,
Double_t  z,
Double_t  dens,
Double_t  radl,
Double_t  intl 
)

Definition at line 27 of file PTGuiMaterial.cxx.

00028                                                                              :
00029     TNamed(matName.c_str(),""),fId(matId),fA(a),fZ(z),fDensity(dens),
00030     fRadLen(radl),fIntLen(intl) {
00031 
00032   // Normal constructor
00033 
00034 }

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

Definition at line 33 of file PTGuiMaterial.h.

00033 {}

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

Member Function Documentation

Double_t PTGuiMaterial::A ( void   )  const [inline]

Definition at line 39 of file PTGuiMaterial.h.

References fA.

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

00039 { return fA; }

Double_t PTGuiMaterial::Density ( void   )  const [inline]

Definition at line 41 of file PTGuiMaterial.h.

References fDensity.

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

00041 { return fDensity; }

Int_t PTGuiMaterial::Id (  )  const [inline]

Definition at line 38 of file PTGuiMaterial.h.

References fId.

Referenced by Print().

00038 { return fId; }

Double_t PTGuiMaterial::IntLen (  )  const [inline]

Definition at line 43 of file PTGuiMaterial.h.

References fIntLen.

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

00043 { return fIntLen; }

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

Definition at line 49 of file PTGuiMaterial.cxx.

References Print().

00049                                                       {
00050   // Print record in form supported by TObject::Print
00051   //
00052 
00053   Print(std::cout);
00054   
00055 }

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

Definition at line 37 of file PTGuiMaterial.cxx.

References A(), Density(), Nav::GetName(), Id(), IntLen(), RadLen(), and Z().

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

00037                                                      {
00038   //  Print material definition on ostream.
00039 
00040   os << GetName() << ", " << Id() << ", " << A() 
00041      << ", " << Z() << ", " << Density() << ", " << RadLen() 
00042      << ", " << IntLen() << endl;
00043 
00044   return os;
00045 
00046 }

Double_t PTGuiMaterial::RadLen (  )  const [inline]

Definition at line 42 of file PTGuiMaterial.h.

References fRadLen.

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

00042 { return fRadLen; }

Double_t PTGuiMaterial::Z ( void   )  const [inline]

Definition at line 40 of file PTGuiMaterial.h.

References fZ.

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

00040 { return fZ; }


Member Data Documentation

Double_t PTGuiMaterial::fA [private]

Definition at line 52 of file PTGuiMaterial.h.

Referenced by A().

Double_t PTGuiMaterial::fDensity [private]

Definition at line 54 of file PTGuiMaterial.h.

Referenced by Density().

Int_t PTGuiMaterial::fId [private]

Definition at line 51 of file PTGuiMaterial.h.

Referenced by Id().

Double_t PTGuiMaterial::fIntLen [private]

Definition at line 56 of file PTGuiMaterial.h.

Referenced by IntLen().

Double_t PTGuiMaterial::fRadLen [private]

Definition at line 55 of file PTGuiMaterial.h.

Referenced by RadLen().

Double_t PTGuiMaterial::fZ [private]

Definition at line 53 of file PTGuiMaterial.h.

Referenced by Z().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1