Logo ROOT   6.18/05
Reference Guide
ProcFileElements.h File Reference

Detailed Description

Class to hold information about the processed elements of a file.

#ifndef ROOT_ProcFileElements
#define ROOT_ProcFileElements
#include "TObject.h"
#include "TSortedList.h"
class ProcFileElements : public TObject {
public:
class ProcFileElement : public TObject {
public:
Long64_t fFirst; // Lower bound of this range
Long64_t fLast; // Upper bound of this range
ProcFileElement(Long64_t fst = 0, Long64_t lst = -1) :
fFirst(fst), fLast(lst) { }
virtual ~ProcFileElement() { }
Int_t Compare(const TObject *obj) const;
Bool_t IsSortable() const { return kTRUE; }
Int_t MergeElement(ProcFileElement *);
Int_t Overlapping(ProcFileElement *);
void Print(Option_t *option="") const;
ClassDef(ProcFileElement, 1); // ProcFileElement class
};
private:
TString fName; // File name
TSortedList *fElements; // List of processed elements
Long64_t fFirst; // Overall lower bound
Long64_t fLast; // Overall Upper bound
public:
ProcFileElements(const char *fn = "") : fName(fn), fElements(0),
fFirst(0), fLast(-1) { }
virtual ~ProcFileElements() { if (fElements) { fElements->SetOwner();
delete fElements; } }
const char * GetName() const { return fName; }
ULong_t Hash() const { return fName.Hash(); }
Int_t Add(Long64_t fst = 0, Long64_t lst = -1);
Int_t Merge(TCollection *list);
TSortedList *GetListOfElements() const { return fElements; }
Int_t GetNumElements() const { return (fElements ? fElements->GetSize() : 0); }
Long64_t GetFirst() const { return fFirst; }
Long64_t GetLast() const { return fLast; }
void Print(Option_t *option="") const;
ClassDef(ProcFileElements, 1); // Processed File Elements class
};
#endif
int Int_t
Definition: RtypesCore.h:41
unsigned long ULong_t
Definition: RtypesCore.h:51
bool Bool_t
Definition: RtypesCore.h:59
long long Long64_t
Definition: RtypesCore.h:69
const Bool_t kTRUE
Definition: RtypesCore.h:87
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:326
Int_t Compare(const void *item1, const void *item2)
T1 fFirst
Definition: X11Events.mm:86
Collection abstract base class.
Definition: TCollection.h:63
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Definition: TCollection.h:182
Mother of all ROOT objects.
Definition: TObject.h:37
virtual const char * GetName() const
Returns name of object.
Definition: TObject.cxx:357
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
Definition: TObject.cxx:550
virtual ULong_t Hash() const
Return hash value for this object.
Definition: TObject.cxx:433
A sorted doubly linked list.
Definition: TSortedList.h:28
Basic string class.
Definition: TString.h:131
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.
Definition: TString.cxx:638
void Add(RHist< DIMENSIONS, PRECISION_TO, STAT_TO... > &to, const RHist< DIMENSIONS, PRECISION_FROM, STAT_FROM... > &from)
Add two histograms.
Definition: RHist.hxx:309
void Print(std::ostream &os, const OptionType &opt)
Author
Gerardo Ganis (gerar.nosp@m.do.g.nosp@m.anis@.nosp@m.cern.nosp@m..ch)

Definition in file ProcFileElements.h.