library: libTable #include "TResponseTable.h"

# TResponseTable

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

## class TResponseTable : public TGenericTable

| Inheritance Chart:
`TObject`
| <- | `TNamed`
| <- | `TDataSet`
| <- | `TTable`
| <- | `TGenericTable`
| <- | `TResponseTable` |

        protected:

          void AddElement(const char* path, TTable::EColumnType type)
          void AddResponse(const char* chit)
          void AddVolumePath(const char* path)

        public:

                          TResponseTable()
                          TResponseTable(const char* name, const char* volumepath, const char* responseDefintion, Int_t allocSize)
                          TResponseTable(const TResponseTable&)
                  virtual ~TResponseTable()
           static TClass* Class()
             static Int_t FindResponseLocation(TTableDescriptor& dsc)
          virtual TClass* IsA() const
                     void SetResponse(int track, int* nvl, float* response)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        private:

          Int_t fResponseLocation

## Class Description

TResponseTable():TGenericTable(), fResponseLocation(-1)

TResponseTable(const char *name,const char *volumePath, const char *responseDefinition, Int_t /*allocSize*/) : TGenericTable(), fResponseLocation(-1)

     Set an empty descriptor

void AddVolumePath(const char *path)

void AddResponse(const char *chit)

void AddElement(const char *path,EColumnType type)

void SetResponse(int track, int *nvl, float *response)

     Add one extra his/digit to the table
     Reallocate the table if needed

Int_t FindResponseLocation(TTableDescriptor &dsc)

     Look up the table descriptor to find the
     first respnse value location
     TResponsetable layout:
      offset
       +0    int TRACK
       +1
       ...   int <volume path description>
      +nVl.
      +nVl+1  <----  fResponseLocation
       ...   response values
      RowSize

### Inline Functions

                      void ~TResponseTable()
                   TClass* Class()
                   TClass* IsA() const
                      void ShowMembers(TMemberInspector& insp, char* parent)
                      void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)
            TResponseTable TResponseTable(const TResponseTable&)

Author: Valery Fine(fine@bnl.gov) 03/04/2002
Last update: root/star:$Name: $Id: TResponseTable.cxx,v 1.2 2003/02/11 12:17:19 rdm Exp $