HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HTofLookup Class Reference

#include <htoflookup.h>

Inheritance diagram for HTofLookup:
Collaboration diagram for HTofLookup:

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 ()
 
HTofLookupCrateoperator[] (Int_t i)
 
HTofLookupSlotgetSlot (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)
 
- Public Member Functions inherited from HParSet
 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
 
- Protected Attributes inherited from HParSet
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
 

Detailed Description

Definition at line 97 of file htoflookup.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

void HTofLookup::clear ( void  )
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().

Int_t HTofLookup::getSize ( void  )
inline

Definition at line 114 of file htoflookup.h.

Referenced by printParam(), and HTofParRootFileIo::read().

HTofLookupSlot* HTofLookup::getSlot ( Int_t  c,
Int_t  s 
)
inline

Definition at line 110 of file htoflookup.h.

Bool_t HTofLookup::init ( HParIo inp,
Int_t *  set 
)
virtual

Reimplemented from HParSet.

Definition at line 102 of file htoflookup.cc.

References HParIo::getDetParIo(), HDetParIo::init(), and input.

HTofLookupCrate& HTofLookup::operator[] ( Int_t  i)
inline

Definition at line 107 of file htoflookup.h.

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().

Int_t HTofLookup::write ( HParIo output)
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 
)

Member Data Documentation

TObjArray* HTofLookup::array
protected

Definition at line 99 of file htoflookup.h.

Referenced by fill(), HTofLookup(), and ~HTofLookup().

Int_t HTofLookup::maxCrate
protected

Definition at line 100 of file htoflookup.h.

Referenced by clear(), fill(), and HTofLookup().


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