CMS 3D CMS Logo

VisG4MaterialDetails Class Reference

#include <VisGeant4/VisG4Volumes/interface/VisG4Details.h>

List of all members.

Public Member Functions

float density (void) const
std::string name (void) const
bool operator< (const VisG4MaterialDetails &t) const
bool operator== (const VisG4MaterialDetails &t) const
 VisG4MaterialDetails (const VisG4MaterialDetails &t)
 VisG4MaterialDetails (const G4Material *t)
 VisG4MaterialDetails (void)

Private Attributes

float m_density
std::string m_name

Classes

struct  less


Detailed Description

Definition at line 46 of file VisG4Details.h.


Constructor & Destructor Documentation

VisG4MaterialDetails::VisG4MaterialDetails ( void   ) 

Definition at line 60 of file VisG4Details.cc.

00061 {
00062 }

VisG4MaterialDetails::VisG4MaterialDetails ( const G4Material *  t  ) 

Definition at line 64 of file VisG4Details.cc.

References m_density, and m_name.

00065 {
00066     m_name = t->GetName ();    
00067     m_density = t->GetDensity ();    
00068 }

VisG4MaterialDetails::VisG4MaterialDetails ( const VisG4MaterialDetails t  ) 

Definition at line 70 of file VisG4Details.cc.

References m_density, and m_name.

00071 {
00072     m_name = t.m_name;
00073     m_density = t.m_density;    
00074 }


Member Function Documentation

float VisG4MaterialDetails::density ( void   )  const

Definition at line 83 of file VisG4Details.cc.

References m_density.

Referenced by VisG4MaterialDensityFilter::getSoMaterial(), and VisG4MaterialDetails::less::operator()().

00084 {
00085     return m_density;       
00086 }

std::string VisG4MaterialDetails::name ( void   )  const

Definition at line 77 of file VisG4Details.cc.

References m_name.

Referenced by VisG4MaterialLUTFilter::getSoMaterial(), VisG4MaterialNameFilter::isToBeDrawn(), and VisG4MaterialDetails::less::operator()().

00078 {
00079     return m_name;          
00080 }

bool VisG4MaterialDetails::operator< ( const VisG4MaterialDetails t  )  const

Definition at line 106 of file VisG4Details.cc.

00107 {
00108     less comparison;
00109     return comparison (*this, t);    
00110 }        

bool VisG4MaterialDetails::operator== ( const VisG4MaterialDetails t  )  const

Definition at line 99 of file VisG4Details.cc.

00100 {
00101     less comparison;
00102     return !(comparison (*this, t) || comparison (t, *this));    
00103 }        


Member Data Documentation

float VisG4MaterialDetails::m_density [private]

Definition at line 67 of file VisG4Details.h.

Referenced by density(), and VisG4MaterialDetails().

std::string VisG4MaterialDetails::m_name [private]

Definition at line 66 of file VisG4Details.h.

Referenced by name(), and VisG4MaterialDetails().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:35:24 2009 for CMSSW by  doxygen 1.5.4