emcGeometry Class Reference

#include <emcGeometry.h>

Inherits emcManageable.

Inheritance diagram for emcGeometry:

Inheritance graph
[legend]
List of all members.

Detailed Description

Geometry object that can be passed to DataManager.

Definition at line 18 of file emcGeometry.h.

Public Member Functions

 emcGeometry ()
 default ctor.
 emcGeometry (const std::vector< SecGeom > &sectors)
 ctor with given sectors.
 emcGeometry (const emcGeometry &obj)
 copy ctor.
emcGeometryoperator= (const emcGeometry &obj)
 assignment operator.
virtual ~emcGeometry ()
 dtor.
virtual const char * GetCategory (void) const
 Category = "geom.emc.Sectors".
const PHTimeStamp & GetEndValTime (void) const
 End-of-validity time.
const PHTimeStamp & GetStartValTime (void) const
 Start-of-validity time.
bool IsValid (const PHTimeStamp &when) const
 Tells if geometry is valid at a given time.
size_t NumberOfSectors (void) const
 Actual number of sectors.
void Print (void) const
 Output on screen.
void PrintCorners (void) const
 Only output the sector corners.
void Set (const std::vector< SecGeom > &sectors)
 Itinialize geometry from sectors.
void Reset (void)
 Reset the object.
const SecGeomSector (size_t iS) const
 Get an handle to a sector, given its number.
void SetValidityPeriod (const PHTimeStamp &t1, const PHTimeStamp &t2)

Static Public Member Functions

static size_t MaxNumberOfSectors (void)
 Returns the maximum number of sectors handled by this geometry.

Protected Member Functions

void Copy (emcGeometry &) const

Private Attributes

std::vector< SecGeomfSectors
PHTimeStamp fStart
PHTimeStamp fEnd

Static Private Attributes

static size_t fgNumberOfSectors = 8

Friends

std::ostream & operator<< (std::ostream &out, const emcGeometry &obj)
 output stream.


Constructor & Destructor Documentation

emcGeometry::emcGeometry  ) 
 

default ctor.

Definition at line 12 of file emcGeometry.C.

emcGeometry::emcGeometry const std::vector< SecGeom > &  sectors  )  [inline]
 

ctor with given sectors.

Definition at line 31 of file emcGeometry.h.

References Set().

emcGeometry::emcGeometry const emcGeometry obj  ) 
 

copy ctor.

Definition at line 24 of file emcGeometry.C.

References Copy().

emcGeometry::~emcGeometry  )  [virtual]
 

dtor.

Definition at line 18 of file emcGeometry.C.


Member Function Documentation

void emcGeometry::Copy emcGeometry  )  const [protected]
 

Definition at line 39 of file emcGeometry.C.

References emcManageable::Copy(), and fSectors.

Referenced by emcGeometry(), and operator=().

virtual const char* emcGeometry::GetCategory void   )  const [inline, virtual]
 

Category = "geom.emc.Sectors".

Implements emcManageable.

Definition at line 47 of file emcGeometry.h.

Referenced by emcOMGeometryT< BM >::Read().

const PHTimeStamp& emcGeometry::GetEndValTime void   )  const [inline]
 

End-of-validity time.

Definition at line 53 of file emcGeometry.h.

References fEnd.

const PHTimeStamp& emcGeometry::GetStartValTime void   )  const [inline]
 

Start-of-validity time.

Definition at line 59 of file emcGeometry.h.

References fStart.

bool emcGeometry::IsValid const PHTimeStamp &  when  )  const [virtual]
 

Tells if geometry is valid at a given time.

Reimplemented from emcManageable.

Definition at line 54 of file emcGeometry.C.

References fEnd, and fStart.

Referenced by emcOMGeometryT< BM >::Collect().

static size_t emcGeometry::MaxNumberOfSectors void   )  [inline, static]
 

Returns the maximum number of sectors handled by this geometry.

Definition at line 68 of file emcGeometry.h.

References fgNumberOfSectors.

Referenced by emcOMGeometryT< BM >::Read().

size_t emcGeometry::NumberOfSectors void   )  const [inline]
 

Actual number of sectors.

Definition at line 74 of file emcGeometry.h.

References fSectors.

Referenced by mEmcGeometryModule::readFromDB().

emcGeometry & emcGeometry::operator= const emcGeometry obj  ) 
 

assignment operator.

Definition at line 30 of file emcGeometry.C.

References Copy().

void emcGeometry::Print void   )  const [inline]
 

Output on screen.

Definition at line 80 of file emcGeometry.h.

void emcGeometry::PrintCorners void   )  const
 

Only output the sector corners.

Definition at line 90 of file emcGeometry.C.

void emcGeometry::Reset void   )  [virtual]
 

Reset the object.

Reimplemented from emcManageable.

Definition at line 95 of file emcGeometry.C.

References fSectors.

Referenced by emcOMGeometryT< BM >::Read().

const SecGeom & emcGeometry::Sector size_t  iS  )  const
 

Get an handle to a sector, given its number.

Definition at line 62 of file emcGeometry.C.

References fSectors.

Referenced by mEmcGeometryModule::readFromDB().

void emcGeometry::Set const std::vector< SecGeom > &  sectors  )  [inline]
 

Itinialize geometry from sectors.

Definition at line 90 of file emcGeometry.h.

References fSectors.

Referenced by emcGeometry().

void emcGeometry::SetValidityPeriod const PHTimeStamp &  t1,
const PHTimeStamp &  t2
[inline]
 

Definition at line 103 of file emcGeometry.h.

References fEnd, and fStart.


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  out,
const emcGeometry obj
[friend]
 

output stream.


Member Data Documentation

PHTimeStamp emcGeometry::fEnd [private]
 

Definition at line 117 of file emcGeometry.h.

Referenced by GetEndValTime(), IsValid(), and SetValidityPeriod().

size_t emcGeometry::fgNumberOfSectors = 8 [static, private]
 

Definition at line 115 of file emcGeometry.h.

Referenced by MaxNumberOfSectors().

std::vector<SecGeom> emcGeometry::fSectors [private]
 

Definition at line 114 of file emcGeometry.h.

Referenced by Copy(), NumberOfSectors(), operator<<(), Reset(), Sector(), and Set().

PHTimeStamp emcGeometry::fStart [private]
 

Definition at line 116 of file emcGeometry.h.

Referenced by GetStartValTime(), IsValid(), and SetValidityPeriod().


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