emcRejectList Class Reference
[Tower calibration]

#include <emcRejectList.h>

Inherits emcManageable.

Inheritance diagram for emcRejectList:

Inheritance graph
[legend]
List of all members.

Detailed Description

Stores list of not-to-be-used towers.

See also:
emcBadModules

Definition at line 20 of file emcRejectList.h.

Public Member Functions

 emcRejectList ()
 CREATORS.
 emcRejectList (const emcRejectList &)
emcRejectListoperator= (const emcRejectList &)
emcRejectListoperator+= (const emcRejectList &)
emcRejectListoperator-= (const emcRejectList &)
virtual ~emcRejectList ()
unsigned int AmplitudeError (int towerid) const
 ACCESSORS.
unsigned int AmplitudeWarning (int towerid) const
unsigned int Error (int towerid) const
const char * GetCategory (void) const
 Category of the object = GAIN,PED,HL,etc.
const PHTimeStamp & GetEndValTime (void) const
 Get the end-of-validity time.
const PHTimeStamp & GetStartValTime (void) const
 Get the start-of-validity time.
bool nonZero (int towerid) const
void print (std::ostream &out=std::cout) const
size_t size () const
size_t maxsize () const
unsigned int TimingError (int towerid) const
unsigned int TimingWarning (int towerid) const
unsigned int Warning (int towerid) const
void Reset (void)
 MUTATORS.
void set (int towerid, unsigned int amp_error, unsigned int amp_warning, unsigned int timing_error, unsigned int timing_warning)
 Set flags for a given tower.
void set_or (int towerid, unsigned int amp_error, unsigned int amp_warning, unsigned int timing_error, unsigned int timing_warning)
 Set/update (make a logical OR on the existing bits) flags to a given tower.
void SetValidityPeriod (const PHTimeStamp &t1, const PHTimeStamp &t2)

Private Types

typedef std::map< int, SixIntsTMAP

Private Member Functions

void Copy (emcRejectList &) const
SixInts getTower (int towerid) const

Private Attributes

TMAP fTowers
PHTimeStamp fStart
PHTimeStamp fEnd

Classes

class  SixInts


Member Typedef Documentation

typedef std::map<int,SixInts> emcRejectList::TMAP [private]
 

Definition at line 119 of file emcRejectList.h.


Constructor & Destructor Documentation

emcRejectList::emcRejectList  ) 
 

CREATORS.

Definition at line 100 of file emcRejectList.C.

References fEnd, fStart, and Reset().

emcRejectList::emcRejectList const emcRejectList  ) 
 

Definition at line 110 of file emcRejectList.C.

References Copy().

emcRejectList::~emcRejectList  )  [virtual]
 

Definition at line 161 of file emcRejectList.C.


Member Function Documentation

unsigned int emcRejectList::AmplitudeError int  towerid  )  const
 

ACCESSORS.

Definition at line 182 of file emcRejectList.C.

References emcRejectList::SixInts::ampError(), and getTower().

Referenced by operator+=(), emcOMRejectListT< BM >::ToPdbCalBank(), and emcOMRejectList::Write().

unsigned int emcRejectList::AmplitudeWarning int  towerid  )  const
 

Definition at line 189 of file emcRejectList.C.

References emcRejectList::SixInts::ampWarning(), and getTower().

Referenced by operator+=(), emcOMRejectListT< BM >::ToPdbCalBank(), and emcOMRejectList::Write().

void emcRejectList::Copy emcRejectList  )  const [private]
 

Definition at line 196 of file emcRejectList.C.

References fEnd, fStart, and fTowers.

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

unsigned int emcRejectList::Error int  towerid  )  const
 

Definition at line 205 of file emcRejectList.C.

References emcRejectList::SixInts::error(), and getTower().

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

Category of the object = GAIN,PED,HL,etc.

.. This category is used to determine the top-level container of this object in the database.

Implements emcManageable.

Definition at line 41 of file emcRejectList.h.

Referenced by emcOMRejectListT< BM >::Read(), and emcOMRejectListT< BM >::Write().

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

Get the end-of-validity time.

Definition at line 44 of file emcRejectList.h.

References fEnd.

Referenced by emcOMRejectListT< BM >::Write().

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

Get the start-of-validity time.

Definition at line 47 of file emcRejectList.h.

References fStart.

Referenced by emcOMRejectListT< BM >::Write().

emcRejectList::SixInts emcRejectList::getTower int  towerid  )  const [private]
 

Definition at line 167 of file emcRejectList.C.

References fTowers.

Referenced by AmplitudeError(), AmplitudeWarning(), Error(), nonZero(), TimingError(), TimingWarning(), and Warning().

size_t emcRejectList::maxsize  )  const [inline]
 

Definition at line 55 of file emcRejectList.h.

Referenced by operator+=(), operator-=(), and emcOMRejectListT< BM >::ToPdbCalBank().

bool emcRejectList::nonZero int  towerid  )  const
 

Definition at line 212 of file emcRejectList.C.

References getTower(), and emcRejectList::SixInts::nonZero().

Referenced by operator+=(), operator-=(), emcOMRejectListT< BM >::ToPdbCalBank(), and emcOMRejectList::Write().

emcRejectList & emcRejectList::operator+= const emcRejectList  ) 
 

Definition at line 129 of file emcRejectList.C.

References AmplitudeError(), AmplitudeWarning(), maxsize(), nonZero(), set_or(), TimingError(), and TimingWarning().

emcRejectList & emcRejectList::operator-= const emcRejectList  ) 
 

Definition at line 145 of file emcRejectList.C.

References fTowers, maxsize(), and nonZero().

emcRejectList & emcRejectList::operator= const emcRejectList  ) 
 

Definition at line 117 of file emcRejectList.C.

References Copy(), and Reset().

void emcRejectList::print std::ostream &  out = std::cout  )  const
 

Definition at line 219 of file emcRejectList.C.

References fTowers.

Referenced by operator<<().

void emcRejectList::Reset void   )  [virtual]
 

MUTATORS.

Reimplemented from emcManageable.

Definition at line 241 of file emcRejectList.C.

References fTowers.

Referenced by emcRejectList(), operator=(), and emcOMRejectListT< BM >::Read().

void emcRejectList::set int  towerid,
unsigned int  amp_error,
unsigned int  amp_warning,
unsigned int  timing_error,
unsigned int  timing_warning
 

Set flags for a given tower.

All flags are 4 bits maximum.

Definition at line 248 of file emcRejectList.C.

References fTowers, and emcRejectList::SixInts::set().

Referenced by emcBadNormt::process().

void emcRejectList::set_or int  towerid,
unsigned int  amp_error,
unsigned int  amp_warning,
unsigned int  timing_error,
unsigned int  timing_warning
 

Set/update (make a logical OR on the existing bits) flags to a given tower.

Definition at line 258 of file emcRejectList.C.

References fTowers, and emcRejectList::SixInts::set_or().

Referenced by emcOMRejectListT< BM >::FromPdbCalBank(), operator+=(), emcBadNormt::process(), and emcOMRejectList::Read().

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

Definition at line 77 of file emcRejectList.h.

References fEnd, and fStart.

size_t emcRejectList::size void   )  const [inline]
 

Definition at line 53 of file emcRejectList.h.

References fTowers.

Referenced by emcOMRejectListT< BM >::ToPdbCalBank().

unsigned int emcRejectList::TimingError int  towerid  )  const
 

Definition at line 268 of file emcRejectList.C.

References getTower(), and emcRejectList::SixInts::tofError().

Referenced by operator+=(), emcOMRejectListT< BM >::ToPdbCalBank(), and emcOMRejectList::Write().

unsigned int emcRejectList::TimingWarning int  towerid  )  const
 

Definition at line 275 of file emcRejectList.C.

References getTower(), and emcRejectList::SixInts::tofWarning().

Referenced by operator+=(), emcOMRejectListT< BM >::ToPdbCalBank(), and emcOMRejectList::Write().

unsigned int emcRejectList::Warning int  towerid  )  const
 

Definition at line 283 of file emcRejectList.C.

References getTower(), and emcRejectList::SixInts::warning().


Member Data Documentation

PHTimeStamp emcRejectList::fEnd [private]
 

Definition at line 125 of file emcRejectList.h.

Referenced by Copy(), emcRejectList(), GetEndValTime(), and SetValidityPeriod().

PHTimeStamp emcRejectList::fStart [private]
 

Definition at line 124 of file emcRejectList.h.

Referenced by Copy(), emcRejectList(), GetStartValTime(), and SetValidityPeriod().

TMAP emcRejectList::fTowers [private]
 

Definition at line 120 of file emcRejectList.h.

Referenced by Copy(), getTower(), operator-=(), print(), Reset(), set(), set_or(), and size().


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