emcLCTofFEM Class Reference
[Tower calibration]

#include <emcLCTofFEM.h>

Inherits emcCalFEM.

Inheritance diagram for emcLCTofFEM:

Inheritance graph
[legend]
List of all members.

Detailed Description

Stores least-count tof values for one FEM.

Definition at line 14 of file emcLCTofFEM.h.

Public Types

typedef std::vector< float > vfloat
typedef std::vector< vfloatLCTof
typedef std::vector< float
>::iterator 
itvfloat
typedef std::vector< float
>::const_iterator 
citvfloat
typedef std::vector< vfloat
>::iterator 
itLCTof
typedef std::vector< vfloat
>::const_iterator 
citLCTof

Public Member Functions

 emcLCTofFEM (int absPosition)
 ctor
 emcLCTofFEM (int absPosition, const PHTimeStamp &t1, const PHTimeStamp &t2)
 ctor
 emcLCTofFEM (const emcLCTofFEM &)
 copy ctor
emcLCTofFEMoperator= (const emcLCTofFEM &)
 assignment operator.
virtual ~emcLCTofFEM ()
 dtor
virtual emcLCTofFEMclone (void) const
virtual emcLCTofFEMcreate (void) const
void AppendOneChannel (const float value1, const float value2)
 Append Tof Least count values for one channel.
virtual const char * GetCategory (void) const
 emcCalFEM "isa" Manageable, so it must have this one.
virtual size_t GetNumberOfChannels (void) const
 Get number of channels handled by this object.
virtual float getValue (int ichannel) const
 Get first value.
virtual float getValueFast (int ichannel) const
 Same as above but without bound checking.
virtual float getValue (int ichannel, int what) const
 Get value(s) from this object.
virtual void setValue (int ichannel, int what, float value)
 Set value(s) from this object.
virtual float getValueFast (int ichannel, int what) const
 Same as above but without bound checking.
virtual bool IsEqual (const emcCalFEM &) const
 comparison.
virtual void Reset (void)
 Reset the object.
virtual std::ostream & Print (std::ostream &out=std::cout, int level=0) const
 Print.

Static Public Member Functions

static emcLCTofFEMDefault (const int &absPosition, const PHTimeStamp &t1, const PHTimeStamp &t2)
 Create default object with 144 channels.

Private Member Functions

void Copy (emcLCTofFEM &) const
 Used by copy ctor.

Private Attributes

LCTof fLCTof


Member Typedef Documentation

typedef std::vector<vfloat>::const_iterator emcLCTofFEM::citLCTof
 

Definition at line 51 of file emcLCTofFEM.h.

typedef std::vector<float>::const_iterator emcLCTofFEM::citvfloat
 

Definition at line 49 of file emcLCTofFEM.h.

typedef std::vector<vfloat>::iterator emcLCTofFEM::itLCTof
 

Definition at line 50 of file emcLCTofFEM.h.

typedef std::vector<float>::iterator emcLCTofFEM::itvfloat
 

Definition at line 48 of file emcLCTofFEM.h.

typedef std::vector<vfloat> emcLCTofFEM::LCTof
 

Definition at line 47 of file emcLCTofFEM.h.

typedef std::vector<float> emcLCTofFEM::vfloat
 

Definition at line 46 of file emcLCTofFEM.h.


Constructor & Destructor Documentation

emcLCTofFEM::emcLCTofFEM int  absPosition  )  [explicit]
 

ctor

Definition at line 35 of file emcLCTofFEM.C.

References classname, name, emcNamed::NameIt(), and title.

Referenced by clone(), create(), and Default().

emcLCTofFEM::emcLCTofFEM int  absPosition,
const PHTimeStamp &  t1,
const PHTimeStamp &  t2
 

ctor

Definition at line 42 of file emcLCTofFEM.C.

References classname, name, emcNamed::NameIt(), and title.

emcLCTofFEM::emcLCTofFEM const emcLCTofFEM  ) 
 

copy ctor

Definition at line 50 of file emcLCTofFEM.C.

References Copy().

emcLCTofFEM::~emcLCTofFEM  )  [virtual]
 

dtor

Definition at line 80 of file emcLCTofFEM.C.

References Reset().


Member Function Documentation

void emcLCTofFEM::AppendOneChannel const float  value1,
const float  value2
 

Append Tof Least count values for one channel.

Definition at line 86 of file emcLCTofFEM.C.

References fLCTof.

Referenced by Default(), and emcOMLCTofFEMT< T >::FromPdbCalBank().

virtual emcLCTofFEM* emcLCTofFEM::clone void   )  const [inline, virtual]
 

Implements emcCalFEM.

Definition at line 35 of file emcLCTofFEM.h.

References emcLCTofFEM().

void emcLCTofFEM::Copy emcLCTofFEM  )  const [private]
 

Used by copy ctor.

Definition at line 69 of file emcLCTofFEM.C.

References emcCalFEM::Copy(), and fLCTof.

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

virtual emcLCTofFEM* emcLCTofFEM::create void   )  const [inline, virtual]
 

Implements emcCalFEM.

Definition at line 38 of file emcLCTofFEM.h.

References emcCalFEM::AbsolutePosition(), emcLCTofFEM(), emcCalFEM::GetEndValTime(), and emcCalFEM::GetStartValTime().

emcLCTofFEM * emcLCTofFEM::Default const int &  absPosition,
const PHTimeStamp &  t1,
const PHTimeStamp &  t2
[static]
 

Create default object with 144 channels.

Definition at line 104 of file emcLCTofFEM.C.

References AppendOneChannel(), and emcLCTofFEM().

Referenced by creator().

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

emcCalFEM "isa" Manageable, so it must have this one.

But it's also a generic base class, so it's still pure virtual.

Implements emcCalFEM.

Definition at line 64 of file emcLCTofFEM.h.

virtual size_t emcLCTofFEM::GetNumberOfChannels void   )  const [inline, virtual]
 

Get number of channels handled by this object.

Implements emcCalFEM.

Definition at line 67 of file emcLCTofFEM.h.

References fLCTof.

Referenced by emcOMLCTofFEMT< T >::ToPdbCalBank().

float emcLCTofFEM::getValue int  ichannel,
int  what
const [virtual]
 

Get value(s) from this object.

Reimplemented from emcCalFEM.

Definition at line 121 of file emcLCTofFEM.C.

References emcCalFEM::DefaultReturnValue(), EMC_WARNING_MSG, fLCTof, and getValueFast().

virtual float emcLCTofFEM::getValue int  ichannel  )  const [inline, virtual]
 

Get first value.

Reimplemented from emcCalFEM.

Definition at line 73 of file emcLCTofFEM.h.

Referenced by emcLCTofs::GetValue1(), emcLCTofs::GetValue2(), IsEqual(), and emcOMLCTofFEMT< T >::ToPdbCalBank().

float emcLCTofFEM::getValueFast int  ichannel,
int  what
const [virtual]
 

Same as above but without bound checking.

Reimplemented from emcCalFEM.

Definition at line 153 of file emcLCTofFEM.C.

References fLCTof.

virtual float emcLCTofFEM::getValueFast int  ichannel  )  const [inline, virtual]
 

Same as above but without bound checking.

Reimplemented from emcCalFEM.

Definition at line 77 of file emcLCTofFEM.h.

Referenced by getValue().

bool emcLCTofFEM::IsEqual const emcCalFEM  )  const [virtual]
 

comparison.

Implements emcCalFEM.

Definition at line 160 of file emcLCTofFEM.C.

References getValue(), j, and emcCalFEM::size().

emcLCTofFEM & emcLCTofFEM::operator= const emcLCTofFEM  ) 
 

assignment operator.

Definition at line 59 of file emcLCTofFEM.C.

References Copy(), and Reset().

virtual std::ostream& emcLCTofFEM::Print std::ostream &  out = std::cout,
int  level = 0
const [virtual]
 

Print.

Reimplemented from emcCalFEM.

void emcLCTofFEM::Reset void   )  [virtual]
 

Reset the object.

Implements emcCalFEM.

Definition at line 176 of file emcLCTofFEM.C.

References fLCTof.

Referenced by emcOMLCTofFEMT< T >::FromPdbCalBank(), operator=(), and ~emcLCTofFEM().

void emcLCTofFEM::setValue int  ichannel,
int  what,
float  value
[virtual]
 

Set value(s) from this object.

Definition at line 144 of file emcLCTofFEM.C.

References EMC_WARNING_MSG, and fLCTof.


Member Data Documentation

LCTof emcLCTofFEM::fLCTof [private]
 

Definition at line 106 of file emcLCTofFEM.h.

Referenced by AppendOneChannel(), Copy(), GetNumberOfChannels(), getValue(), getValueFast(), Reset(), and setValue().


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