// @(#)root/table:$Id$ // Author: Victor Perevoztchikov (fine@bnl.gov) 01/03/2001 /************************************************************************* * Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. * * Copyright (C) 2001 [BNL] Brookhaven National Laboratory. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #include #include #include #include #include "TDsKey.h" //______________________________________________________________________________ TDsKey::TDsKey(const char *name,UInt_t *uk,int nk) : fUrr(nk) { //to be documented if (name) SetName(name); SetUrr(uk,nk); } //______________________________________________________________________________ TDsKey::TDsKey(const char *name,UInt_t uk) : fUrr(1) { //to be documented if (name) SetName(name); SetUrr(&uk,1); } //______________________________________________________________________________ TDsKey::TDsKey(UInt_t uRun,UInt_t uEvent) :fUrr(2) { //to be documented UInt_t u[2]; u[0]=uRun; u[1]=uEvent; int n = 1; if (u[1]) n=2; SetUrr(u,n); } //______________________________________________________________________________ void TDsKey::SetUrr(const UInt_t *uk,int nk) { //to be documented int n; fUrr[0] = 0; if (!uk) return; for (n=1;n0 && n<100); fName.Replace(0,999,key,n); Int_t i = 0; for (cc=key+n;*cc=='.'; cc+=11,i++) fUrr.AddAt(strtoul(cc+1,0,10),i); } //______________________________________________________________________________ UInt_t TDsKey::GetSum() const { //to be documented UInt_t s = fUrr[0]; for (int i=1;i