#include "htoflookup.h"

HTofLookup


class description - source file - inheritance tree (.pdf)

class HTofLookup : public HParSet

Inheritance Chart:
TObject
<-
TNamed
<-
HParSet
<-
HTofLookup

    public:
HTofLookup(const char* name = "TofLookup", const char* title = "Lookup table for Tof unpacker", const char* context, Int_t nCrates = 1, Int_t nSlots = 1) HTofLookup(const HTofLookup&) ~HTofLookup() static TClass* Class() virtual void clear() void fill(Int_t, Int_t, Char_t, Int_t, Int_t, Int_t, Int_t, Char_t) Int_t getSize() HTofLookupSlot* getSlot(Int_t c, Int_t s) virtual Bool_t init(HParIo*, Int_t*) virtual TClass* IsA() const HTofLookup& operator=(const HTofLookup&) HTofLookupCrate& operator[](Int_t i) void printParam() void putAsciiHeader(TString&) void readline(const char*, Int_t*) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual Int_t write(HParIo*) Bool_t writeline(char*, Int_t, Int_t, Int_t)

Data Members


    protected:
TObjArray* array array of pointers of type HTofLookupCrate Int_t maxCrate actual maximum index of crates

Class Description

 HTofLookup

 Container class for mapping Crate/TdcAdc/Channel to Module/Paddle
   needed by the TOF unpacker



HTofLookup(const char* name,const char* title, const char* context, Int_t nCrates, Int_t nSlots) : HParSet(name,title,context)
 The constructor creates an array of pointers of type HTofLookupCrate of
 size nSlots
 The container name is set to "TofLookup".

~HTofLookup()
 destructor

Bool_t init(HParIo* inp,Int_t* set)
 intitializes the container from an input

Int_t write(HParIo* output)
 writes the container to an output

void clear()
 clears the container

void printParam()
 prints the lookup table

void 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)
 Expands the array, if necessary, creates the objects of type HTofLookupCrate,
 and then calls the fill function of the objects with index slot.

void readline(const char *buf, Int_t *set)
 decodes one line read from ascii file I/O

void putAsciiHeader(TString& header)
 puts the ascii header to the string used in HTofParAsciiFileIo

Bool_t writeline(char *buf, Int_t crate, Int_t slot, Int_t chan)
 writes one line to the buffer used by ascii file I/O



Inline Functions


        HTofLookupCrate& operator[](Int_t i)
         HTofLookupSlot* getSlot(Int_t c, Int_t s)
                   Int_t getSize()
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
              HTofLookup HTofLookup(const HTofLookup&)
             HTofLookup& operator=(const HTofLookup&)


Last update: Fri Jan 26 12:36:18 2007


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.