HYDRA_development_version
|
#include <htoflookup.h>
Public Member Functions | |
HTofLookup (const Char_t *name="TofLookup", const Char_t *title="Lookup table for Tof unpacker", const Char_t *context="", Int_t nCrates=1, Int_t nSlots=1) | |
~HTofLookup () | |
HTofLookupCrate & | operator[] (Int_t i) |
HTofLookupSlot * | getSlot (Int_t c, Int_t s) |
Int_t | getSize () |
Bool_t | init (HParIo *, Int_t *) |
Int_t | write (HParIo *) |
void | clear () |
void | printParam () |
void | fill (Int_t, Int_t, Char_t, Int_t, Int_t, Int_t, Int_t, Char_t) |
void | readline (const Char_t *, Int_t *) |
void | putAsciiHeader (TString &) |
Bool_t | writeline (Char_t *, Int_t, Int_t, Int_t) |
![]() | |
HParSet (const Char_t *name="", const Char_t *title="", const Char_t *context="") | |
virtual | ~HParSet () |
virtual Bool_t | init (void) |
virtual Bool_t | init (HParIo *io) |
virtual Int_t | write () |
virtual void | print () |
const Text_t * | getDetectorName () |
void | resetInputVersions () |
void | setInputVersion (Int_t v=-1, Int_t i=0) |
Int_t | getInputVersion (Int_t i) |
void | setStatic (Bool_t flag=kTRUE) |
Bool_t | isStatic () |
void | setChanged (Bool_t flag=kTRUE) |
Bool_t | hasChanged () |
void | setParamContext (const Char_t *) |
const Char_t * | getParamContext () const |
void | setAuthor (const Char_t *s) |
const Char_t * | getAuthor () const |
void | setDescription (const Char_t *s) |
const Char_t * | getDescription () const |
void | copyComment (HParSet &r) |
Protected Attributes | |
TObjArray * | array |
Int_t | maxCrate |
![]() | |
Text_t | detName [20] |
Int_t | versions [3] |
name of the detector the container belongs to More... | |
Bool_t | status |
versions of container in the 2 possible inputs More... | |
Bool_t | changed |
static flag More... | |
TString | paramContext |
flag is kTRUE if parameters have changed More... | |
TString | author |
TString | description |
Definition at line 97 of file htoflookup.h.
HTofLookup::HTofLookup | ( | const Char_t * | name = "TofLookup" , |
const Char_t * | title = "Lookup table for Tof unpacker" , |
||
const Char_t * | context = "" , |
||
Int_t | nCrates = 1 , |
||
Int_t | nSlots = 1 |
||
) |
Definition at line 83 of file htoflookup.cc.
References array, HParSet::detName, and maxCrate.
HTofLookup::~HTofLookup | ( | ) |
Definition at line 96 of file htoflookup.cc.
References array.
|
virtual |
Reimplemented from HParSet.
Definition at line 116 of file htoflookup.cc.
References maxCrate, HParSet::resetInputVersions(), and HParSet::status.
Referenced by HTofParRootFileIo::read().
void HTofLookup::fill | ( | Int_t | crate, |
Int_t | slot, | ||
Char_t | modType, | ||
Int_t | channel, | ||
Int_t | sector, | ||
Int_t | module, | ||
Int_t | cell, | ||
Char_t | side | ||
) |
Definition at line 142 of file htoflookup.cc.
References array, and maxCrate.
Referenced by HTofParRootFileIo::read(), and readline().
|
inline |
Definition at line 114 of file htoflookup.h.
Referenced by printParam(), and HTofParRootFileIo::read().
|
inline |
Definition at line 110 of file htoflookup.h.
|
virtual |
Reimplemented from HParSet.
Definition at line 102 of file htoflookup.cc.
References HParIo::getDetParIo(), HDetParIo::init(), and input.
|
inline |
Definition at line 107 of file htoflookup.h.
void HTofLookup::printParam | ( | void | ) |
Definition at line 125 of file htoflookup.cc.
References HTofLookupChan::getCell(), HTofLookupChan::getModule(), HTofLookupChan::getSector(), HTofLookupChan::getSide(), HTofLookupSlot::getSize(), getSize(), and HTofLookupSlot::getType().
void HTofLookup::putAsciiHeader | ( | TString & | header | ) |
Definition at line 166 of file htoflookup.cc.
void HTofLookup::readline | ( | const Char_t * | buf, |
Int_t * | set | ||
) |
Definition at line 154 of file htoflookup.cc.
References fill().
|
virtual |
Reimplemented from HParSet.
Definition at line 109 of file htoflookup.cc.
References HParIo::getDetParIo(), and HDetParIo::write().
Bool_t HTofLookup::writeline | ( | Char_t * | buf, |
Int_t | crate, | ||
Int_t | slot, | ||
Int_t | chan | ||
) |
Definition at line 174 of file htoflookup.cc.
References HTofLookupChan::getCell(), HTofLookupChan::getModule(), HTofLookupChan::getSector(), HTofLookupChan::getSide(), and HTofLookupSlot::getType().
|
protected |
Definition at line 99 of file htoflookup.h.
Referenced by fill(), HTofLookup(), and ~HTofLookup().
|
protected |
Definition at line 100 of file htoflookup.h.
Referenced by clear(), fill(), and HTofLookup().