StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
TResponseTable Class Reference
Inheritance diagram for TResponseTable:
TGenericTable TTable TDataSet

Public Member Functions

 TResponseTable ()
 to be documented
 
 TResponseTable (const char *name, const char *volumepath, const char *responseDefintion, Int_t allocSize)
 Set an empty descriptor.
 
void SetResponse (int track, int *nvl, float *response)
 
- Public Member Functions inherited from TGenericTable
 TGenericTable (const char *structName, const char *name)
 
 TGenericTable (const char *structName, Int_t n)
 
 TGenericTable (const char *structName, const char *name, Int_t n)
 
 TGenericTable (const TTableDescriptor &dsc, const char *name)
 
 TGenericTable (const TTableDescriptor &dsc, Int_t n)
 
 TGenericTable (const TTableDescriptor &dsc, const char *name, Int_t n)
 
virtual ~TGenericTable ()
 destructor
 
char * GetTable (Int_t i=0) const
 
TTableDescriptorGetTableDescriptors () const
 protected: create a new TTableDescriptor descriptor for this table
 
TTableDescriptorGetRowDescriptors () const
 to be documented
 
char & operator[] (Int_t i)
 
const char & operator[] (Int_t i) const
 
iterator begin ()
 
iterator begin () const
 
iterator end ()
 
iterator end () const
 
- Public Member Functions inherited from TTable
 TTable (const char *name=0, Int_t size=0)
 Default TTable ctor.
 
 TTable (const char *name, Int_t n, Int_t size)
 Create TTable object and set array size to n longs.
 
 TTable (const char *name, Int_t n, Char_t *array, Int_t size)
 Create TTable object and initialize it with values of array.
 
 TTable (const char *name, const char *type, Int_t n, Char_t *array, Int_t size)
 Create TTable object and initialize it with values of array.
 
 TTable (const TTable &table)
 Copy constructor.
 
TTableoperator= (const TTable &rhs)
 
virtual ~TTable ()
 Delete TTable object.
 
virtual void Adopt (Int_t n, void *array)
 
virtual Int_t AddAt (const void *c)
 
virtual void AddAt (const void *c, Int_t i)
 
virtual void AddAt (TDataSet *dataset, Int_t idx=0)
 
virtual Long_t AppendRows (const void *row, UInt_t nRows)
 
virtual void AsString (void *buf, EColumnType type, Int_t width, std::ostream &out) const
 
const void * At (Int_t i) const
 Returns a pointer to the i-th row of the table.
 
virtual void Browse (TBrowser *b)
 Wrap each table coulumn with TColumnView object to browse.
 
virtual void CopySet (TTable &array)
 to be documented
 
Int_t CopyRows (const TTable *srcTable, Long_t srcRow=0, Long_t dstRow=0, Long_t nRows=0, Bool_t expand=kFALSE)
 
virtual void DeleteRows (Long_t indx, UInt_t nRows=1)
 
virtual void Draw (Option_t *opt)
 
virtual TH1 * Draw (TCut varexp, TCut selection, Option_t *option="", Int_t nentries=1000000000, Int_t firstentry=0)
 
virtual TH1 * Draw (const char *varexp, const char *selection, Option_t *option="", Int_t nentries=1000000000, Int_t firstentry=0)
 
void * GetArray () const
 
virtual TClass * GetRowClass () const
 to be documented
 
Int_t GetSize () const
 
virtual Long_t GetNRows () const
 Returns the number of the used rows for the wrapped table.
 
virtual Long_t GetRowSize () const
 Returns the size (in bytes) of one table row.
 
virtual Long_t GetTableSize () const
 Returns the number of the allocated rows.
 
virtual const Char_t * GetType () const
 Returns the type of the wrapped C-structure kept as the TNamed title.
 
virtual void Fit (const char *formula, const char *varexp, const char *selection="", Option_t *option="", Option_t *goption="", Int_t nentries=1000000000, Int_t firstentry=0)
 
virtual Long_t HasData () const
 
virtual Long_t InsertRows (const void *rows, Long_t indx, UInt_t nRows=1)
 
virtual Bool_t IsFolder () const
 
Int_t NaN ()
 
virtual Char_t * MakeExpression (const Char_t *expressions[], Int_t nExpressions)
 
virtual Char_t * Print (Char_t *buf, Int_t n) const
 Create IDL table defintion (to be used for XDF I/O)
 
virtual void Print (Option_t *opt="") const
 
virtual const Char_t * Print (Int_t row, Int_t rownumber=10, const Char_t *colfirst="", const Char_t *collast="") const
 
virtual void PrintContents (Option_t *opt="") const
 to be documented
 
virtual const Char_t * PrintHeader () const
 Print general table inforamtion.
 
virtual void Project (const char *hname, const char *varexp, const char *selection="", Option_t *option="", Int_t nentries=1000000000, Int_t firstentry=0)
 
virtual Int_t Purge (Option_t *opt="")
 Shrink the table to free the unused but still allocated rows.
 
void * ReAllocate (Int_t newsize)
 
void * ReAllocate ()
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out".
 
virtual void Set (Int_t n)
 Set array size of TTable object to n longs. If n<0 leave array unchanged.
 
virtual void Set (Int_t n, Char_t *array)
 
virtual void SetNRows (Int_t n)
 
virtual void Reset (Int_t c=0)
 
Fill the entire table with byte "c" ;

/ c=0 "be default"

 
virtual void ResetMap (Bool_t wipe=kTRUE)
 
virtual void Update ()
 to be documented
 
virtual void Update (TDataSet *set, UInt_t opt=0)
 
void * operator[] (Int_t i)
 
const void * operator[] (Int_t i) const
 
virtual Int_t GetColumnIndex (const Char_t *columnName) const
 
virtual const Char_t * GetColumnName (Int_t columnIndex) const
 
virtual const UInt_t * GetIndexArray (Int_t columnIndex) const
 
virtual UInt_t GetNumberOfColumns () const
 
virtual UInt_t GetOffset (Int_t columnIndex) const
 
virtual Int_t GetOffset (const Char_t *columnName=0) const
 
virtual UInt_t GetColumnSize (Int_t columnIndex) const
 
virtual Int_t GetColumnSize (const Char_t *columnName=0) const
 
virtual UInt_t GetTypeSize (Int_t columnIndex) const
 
virtual Int_t GetTypeSize (const Char_t *columnName=0) const
 
virtual UInt_t GetDimensions (Int_t columnIndex) const
 
virtual Int_t GetDimensions (const Char_t *columnName=0) const
 
virtual EColumnType GetColumnType (Int_t columnIndex) const
 
virtual EColumnType GetColumnType (const Char_t *columnName=0) const
 
virtual const Char_t * GetColumnComment (Int_t columnIndex) const
 Get a comment from the table descriptor.
 
piterator pbegin ()
 
piterator pend ()
 
- Public Member Functions inherited from TDataSet
 TDataSet (const char *name="", TDataSet *parent=0, Bool_t arrayFlag=kFALSE)
 
 TDataSet (const TDataSet &src, EDataSetPass iopt=kAll)
 
 TDataSet (TNode &src)
 This copy ctor has been depricated (left for thwe sake of the backweard compatibility)
 
virtual ~TDataSet ()
 std::cout << "Default destructor for " << GetName() << " - " << GetTitle() << std::endl;
 
virtual void Add (TDataSet *dataset)
 
virtual void AddAtAndExpand (TDataSet *dataset, Int_t idx=0)
 
virtual void AddFirst (TDataSet *dataset)
 Add TDataSet object at the beginning of the dataset list of this dataset.
 
virtual void AddLast (TDataSet *dataset)
 Add TDataSet object at the end of the dataset list of this dataset.
 
TDataSetAt (Int_t idx) const
 
virtual TObject * Clone (const char *newname="") const
 the custom implementation fo the TObject::Clone
 
virtual TDataSetFind (const char *path) const
 
virtual TDataSetFindByName (const char *name, const char *path="", Option_t *opt="") const
 
virtual TDataSetFindByPath (const char *path) const
 Aliase for TDataSet::Find(const Char_t *path) method.
 
virtual TDataSetFindByTitle (const char *title, const char *path="", Option_t *opt="") const
 
TObject * FindObject (const char *name) const
 
TObject * FindObject (const TObject *o) const
 
virtual TDataSetFirst () const
 Return the first object in the list. Returns 0 when list is empty.
 
TObjArray * GetObjArray () const
 
virtual TSeqCollection * GetCollection () const
 
TList * GetList () const
 
virtual Int_t GetListSize () const
 
TObject * GetMother () const
 
virtual TObject * GetObject () const
 The depricated method (left here for the sake of the backward compatibility)
 
virtual TDataSetGetParent () const
 
virtual TDataSetInstance () const
 
virtual TString Path () const
 return the full path of this data set
 
virtual EDataSetPass Pass (EDataSetPass(*callback)(TDataSet *), Int_t depth=0)
 
virtual EDataSetPass Pass (EDataSetPass(*callback)(TDataSet *, void *), void *user, Int_t depth=0)
 
virtual void Remove (TDataSet *set)
 Remiove the "set" from this TDataSet.
 
virtual TDataSetRemoveAt (Int_t idx)
 
virtual void SetMother (TDataSet *parent=0)
 
virtual void SetObject (TObject *obj)
 The depricated method (left here for the sake of the backward compatibility)
 
virtual void SetParent (TDataSet *parent=0)
 
virtual void SetWrite ()
 
virtual void Shunt (TDataSet *newParent=0)
 
virtual void Sort ()
 Sort recursively all members of the TDataSet with TList::Sort method.
 
virtual Bool_t IsEmpty () const
 return kTRUE if the "internal" collection has no member
 
virtual Bool_t IsMarked () const
 
virtual Bool_t IsThisDir (const char *dirname, int len=-1, int ignorecase=0) const
 
virtual TDataSetLast () const
 Return the last object in the list. Returns 0 when list is empty.
 
virtual void ls (Option_t *option="") const
 
virtual void ls (Int_t depth) const
 
void Mark ()
 
void UnMark ()
 
void MarkAll ()
 Mark all members of this dataset.
 
void UnMarkAll ()
 UnMark all members of this dataset.
 
void InvertAllMarks ()
 Invert mark bit for all members of this dataset.
 
void Mark (UInt_t flag, EBitOpt reset=kSet)
 
virtual TDataSetNext () const
 
virtual TDataSetPrev () const
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 

Static Public Member Functions

static Int_t FindResponseLocation (TTableDescriptor &dsc)
 
- Static Public Member Functions inherited from TTable
static TTableNew (const Char_t *name, const Char_t *type, void *array, UInt_t size)
 This static method creates a new TTable object if provided.
 
static const char * GetTypeName (EColumnType type)
 return table type name
 
static EColumnType GetTypeId (const char *typeName)
 
static const char * TableDictionary ()
 
- Static Public Member Functions inherited from TDataSet
static TDataSetGetMainSet ()
 return pointer to the main dataset
 
static TDataSetinstance ()
 

Protected Member Functions

void AddVolumePath (const char *path)
 to be documented
 
void AddResponse (const char *chit)
 to be documented
 
void AddElement (const char *path, EColumnType type)
 to be documented
 
- Protected Member Functions inherited from TGenericTable
virtual TTableDescriptorGetDescriptorPointer () const
 to be documented
 
virtual void SetDescriptorPointer (TTableDescriptor *list)
 to be documented
 
void SetGenericType ()
 
- Protected Member Functions inherited from TTable
Bool_t BoundsOk (const char *where, Int_t at) const
 
Bool_t OutOfBoundsError (const char *where, Int_t i) const
 Generate an out-of-bounds error. Always returns false.
 
void CopyStruct (Char_t *dest, const Char_t *src)
 
Char_t * Create ()
 
virtual void Clear (Option_t *opt="")
 
virtual void Delete (Option_t *opt="")
 
virtual Bool_t EntryLoop (const Char_t *exprFileName, Int_t &action, TObject *obj, Int_t nentries=1000000000, Int_t firstentry=0, Option_t *option="")
 
Int_t SetfN (Long_t len)
 to be documented
 
void SetTablePointer (void *table)
 to be documented
 
void SetUsedRows (Int_t n)
 
virtual void SetType (const char *const type)
 to be documented
 
void StreamerHeader (TBuffer &b, Version_t version=3)
 Read "table parameters first".
 
void StreamerTable (TBuffer &b, Version_t version=3)
 Stream an object of class TTable.
 
void ReAlloc (Int_t newsize)
 The table is reallocated if it is an owner of the internal array.
 
- Protected Member Functions inherited from TDataSet
virtual void SetMother (TObject *mother)
 
 TDataSet (const char *name, const char *title)
 
void AddMain (TDataSet *set)
 add data set to main data set
 
TDataSetGetRealParent ()
 return real parent
 
void MakeCollection ()
 Create the internal container at once if any.
 

Additional Inherited Members

- Public Types inherited from TTable
enum  EColumnType {
  kNAN, kFloat, kInt, kLong,
  kShort, kDouble, kUInt, kULong,
  kUShort, kUChar, kChar, kPtr,
  kBool, kEndColumnType
}
 
enum  ETableBits { kIsNotOwn = BIT(23) }
 
- Public Types inherited from TDataSet
enum  EDataSetPass {
  kContinue, kPrune, kStop, kUp,
  kStruct, kAll, kRefs, kMarked
}
 
enum  ESetBits { kMark = BIT(22), kArray = BIT(20) }
 
enum  EBitOpt { kSet = kTRUE, kReset = kFALSE }
 
- Static Public Attributes inherited from TTable
static const char * fgTypeName [kEndColumnType]
 
- Static Protected Member Functions inherited from TTable
static const char * TableDictionary (const char *className, const char *structName, TTableDescriptor *&ColDescriptors)
 
- Static Protected Member Functions inherited from TDataSet
static EDataSetPass SortIt (TDataSet *ds)
 
static EDataSetPass SortIt (TDataSet *ds, void *user)
 
- Protected Attributes inherited from TGenericTable
TTableDescriptorfColDescriptors
 
- Protected Attributes inherited from TTable
Long_t fSize
 
Int_t fN
 
Char_t * fTable
 
Long_t fMaxIndex
 
- Protected Attributes inherited from TDataSet
TDataSetfParent
 
TSeqCollection * fList
 
- Static Protected Attributes inherited from TDataSet
static TDataSetfgMainSet = &mainSet
 

Detailed Description

Definition at line 14 of file TResponseTable.h.

Member Function Documentation

Int_t TResponseTable::FindResponseLocation ( TTableDescriptor dsc)
static

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

Definition at line 144 of file TResponseTable.cxx.

References TTable::GetNRows().

Referenced by TResponseTable().

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

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

Definition at line 107 of file TResponseTable.cxx.

References TTable::AddAt(), TTable::GetNRows(), TTable::GetRowSize(), and TGenericTable::GetTableDescriptors().


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