emcQAFEM Class Reference
[Tower calibration]

#include <emcQAFEM.h>

Inherits emcCalFEM.

Inheritance diagram for emcQAFEM:

Inheritance graph
[legend]
List of all members.

Detailed Description

Stores (online) Q&A information for one FEM.

See also:
emcBadModules

Definition at line 21 of file emcQAFEM.h.

Public Member Functions

 emcQAFEM (int absPosition)
 ctor
 emcQAFEM (int absPosition, const PHTimeStamp &t1, const PHTimeStamp &t2)
 ctor
 emcQAFEM (const emcQAFEM &)
 copy ctor
emcQAFEMoperator= (const emcQAFEM &)
 assignment operator.
virtual ~emcQAFEM ()
 dtor
virtual emcQAFEMclone (void) const
virtual emcQAFEMcreate (void) const
void AppendOneChannel (int channel, INT32 error, INT32 warning)
 Append a new channel to this FEM.
void First (void)
 Initialize the iterator to loop over channels.
virtual const char * GetCategory (void) const
 Category of this emcManageable = "QAs".
virtual size_t GetNumberOfChannels (void) const
 Get the number of channels of this FEM.
virtual float getValue (int ichannel) const
 Get error for a given channel.
virtual float getValueFast (int ichannel) const
 Same as above but without bound checking.
virtual float getValue (int ichannel, int what) const
 Get value (what=0->error, what=1->warning) for a given channel.
virtual float getValueFast (int ichannel, int what) const
 Same as above but without bound checking.
virtual bool IsEqual (const emcCalFEM &) const
 Comparison.
bool Next (int &channel, INT32 &error, INT32 &warning)
 Get next values (to be used with First()).
virtual std::ostream & Print (std::ostream &out=std::cout, int level=0) const
 A simple output.
virtual void Reset (void)
 Reset this object completely.

Static Public Member Functions

static emcQAFEMDefault (int absPosition, const PHTimeStamp &tStart=PHTimeStamp(0), const PHTimeStamp &tEnd=PHTimeStamp(PHTimeStamp::PHFarFuture))
 Create a default object with 144 perfect channels.

Private Member Functions

void Copy (emcQAFEM &) const
 Used by copy ctor.
INT32 GetError (int channel) const
 Get the error value of a given channel.
INT32 GetWarning (int channel) const
 Get the warning value of a given channel.

Private Attributes

std::map< int, std::vector<
INT32 > > 
fQA
std::map< int, std::vector<
INT32 > >::const_iterator 
fIterator


Constructor & Destructor Documentation

emcQAFEM::emcQAFEM int  absPosition  )  [explicit]
 

ctor

Definition at line 41 of file emcQAFEM.C.

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

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

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

ctor

Definition at line 49 of file emcQAFEM.C.

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

emcQAFEM::emcQAFEM const emcQAFEM  ) 
 

copy ctor

Definition at line 58 of file emcQAFEM.C.

References Copy(), and First().

emcQAFEM::~emcQAFEM  )  [virtual]
 

dtor

Definition at line 93 of file emcQAFEM.C.

References Reset().


Member Function Documentation

void emcQAFEM::AppendOneChannel int  channel,
INT32  error,
INT32  warning
 

Append a new channel to this FEM.

Definition at line 99 of file emcQAFEM.C.

References fQA.

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

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

Implements emcCalFEM.

Definition at line 42 of file emcQAFEM.h.

References emcQAFEM().

void emcQAFEM::Copy emcQAFEM  )  const [private]
 

Used by copy ctor.

Definition at line 79 of file emcQAFEM.C.

References emcCalFEM::Copy(), fQA, and Reset().

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

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

Implements emcCalFEM.

Definition at line 45 of file emcQAFEM.h.

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

emcQAFEM * emcQAFEM::Default int  absPosition,
const PHTimeStamp &  tStart = PHTimeStamp(0),
const PHTimeStamp &  tEnd = PHTimeStamp(PHTimeStamp::PHFarFuture)
[static]
 

Create a default object with 144 perfect channels.

perfect means no error, no warning.

Definition at line 110 of file emcQAFEM.C.

References AppendOneChannel(), and emcQAFEM().

Referenced by creator().

void emcQAFEM::First void   ) 
 

Initialize the iterator to loop over channels.

Definition at line 126 of file emcQAFEM.C.

References fIterator, and fQA.

Referenced by emcQAFEM(), operator=(), and emcOMQAFEMT< T >::ToPdbCalBank().

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

Category of this emcManageable = "QAs".

Implements emcCalFEM.

Definition at line 68 of file emcQAFEM.h.

INT32 emcQAFEM::GetError int  channel  )  const [private]
 

Get the error value of a given channel.

Definition at line 163 of file emcQAFEM.C.

References fQA.

Referenced by getValueFast().

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

Get the number of channels of this FEM.

Implements emcCalFEM.

Definition at line 71 of file emcQAFEM.h.

References fQA.

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

Get value (what=0->error, what=1->warning) for a given channel.

Reimplemented from emcCalFEM.

Definition at line 133 of file emcQAFEM.C.

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

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

Get error for a given channel.

Reimplemented from emcCalFEM.

Definition at line 77 of file emcQAFEM.h.

Referenced by emcQAs::GetError(), emcQAs::GetWarning(), and IsEqual().

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

Same as above but without bound checking.

Reimplemented from emcCalFEM.

Definition at line 152 of file emcQAFEM.C.

References GetError(), and GetWarning().

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

Same as above but without bound checking.

Reimplemented from emcCalFEM.

Definition at line 81 of file emcQAFEM.h.

Referenced by getValue().

INT32 emcQAFEM::GetWarning int  channel  )  const [private]
 

Get the warning value of a given channel.

Definition at line 177 of file emcQAFEM.C.

References fQA.

Referenced by getValueFast().

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

Comparison.

Implements emcCalFEM.

Definition at line 192 of file emcQAFEM.C.

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

bool emcQAFEM::Next int &  channel,
INT32 error,
INT32 warning
 

Get next values (to be used with First()).

Definition at line 212 of file emcQAFEM.C.

References fIterator, and fQA.

emcQAFEM & emcQAFEM::operator= const emcQAFEM  ) 
 

assignment operator.

Definition at line 67 of file emcQAFEM.C.

References Copy(), First(), and Reset().

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

A simple output.

Reimplemented from emcCalFEM.

void emcQAFEM::Reset void   )  [virtual]
 

Reset this object completely.

Implements emcCalFEM.

Definition at line 254 of file emcQAFEM.C.

References fQA.

Referenced by Copy(), emcOMQAFEMT< T >::FromPdbCalBank(), operator=(), and ~emcQAFEM().


Member Data Documentation

std::map<int,std::vector<INT32> >::const_iterator emcQAFEM::fIterator [private]
 

Definition at line 118 of file emcQAFEM.h.

Referenced by First(), and Next().

std::map<int,std::vector<INT32> > emcQAFEM::fQA [private]
 

Definition at line 117 of file emcQAFEM.h.

Referenced by AppendOneChannel(), Copy(), First(), GetError(), GetNumberOfChannels(), GetWarning(), Next(), and Reset().


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