class TDSetElement: public TNamed


This class implements a data set to be used for PROOF processing.
The TDSet defines the class of which objects will be processed,
the directory in the file where the objects of that type can be
found and the list of files to be processed. The files can be
specified as logical file names (LFN's) or as physical file names
(PFN's). In case of LFN's the resolution to PFN's will be done
according to the currently active GRID interface.
TDSet treeset("TTree", "AOD");



TDSet objset("MyEvent", "*", "/events");


Validity of file names will only be checked at processing time
(typically on the PROOF master server), not at creation time.

Function Members (Methods)

voidTObject::AbstractMethod(const char* method) const
voidAddAssocObj(TObject* assocobj)
virtual voidAddFriend(TDSetElement* friendElement, const char* alias)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tCompare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual voidDeleteFriends()
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
TObject*GetAssocObj(Long64_t i, Bool_t isentry = kFALSE)
const char*GetDataSet() const
const char*GetDirectory() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Long64_tGetEntries(Bool_t istree = kTRUE, Bool_t openfile = kTRUE)
TObject*GetEntryList() const
TFileInfo*GetFileInfo(const char* type = "TTree")
const char*GetFileName() const
Long64_tGetFirst() const
virtual const char*TObject::GetIconName() const
TList*GetListOfAssocObjs() const
virtual TList*GetListOfFriends() const
Float_tGetMaxProcTime() const
const char*GetMsd() const
virtual const char*TNamed::GetName() const
Long64_tGetNum() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
const char*GetObjName() const
virtual Option_t*TObject::GetOption() const
Long64_tGetTDSetOffset() const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Bool_tGetValid() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tIsSortable() const
Bool_tTObject::IsZombie() const
Int_tLookup(Bool_t force = kFALSE)
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
Int_tMergeElement(TDSetElement* elem)
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* options = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetDataSet(const char* dataset)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetEntries(Long64_t ent)
voidSetEntryList(TObject* aList, Long64_t first = -1, Long64_t num = -1)
voidSetFirst(Long64_t first)
voidSetMaxProcTime(Float_t mpt)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
voidSetNum(Long64_t num)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetTDSetOffset(Long64_t offset)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp) const
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
TDSetElement(const TDSetElement& elem)
TDSetElement(const char* file, const char* objname = 0, const char* dir = 0, Long64_t first = 0, Long64_t num = -1, const char* msd = 0, const char* dataset = 0)
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
voidValidate(Bool_t isTree)
voidValidate(TDSetElement* elem)
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const

Data Members

static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TDSetElement::EStatusBitskCorrupted
static TDSetElement::EStatusBitskEmpty
static TDSetElement::EStatusBitskHasBeenLookedUp
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TDSetElement::EStatusBitskNewPacket
static TDSetElement::EStatusBitskNewRun
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TDSetElement::EStatusBitskWriteV3
static TObject::(anonymous)TObject::kZombie
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
TList*fAssocObjListList of objects associated to this element
TStringfDataSetName of the dataset of which this element is part
TStringfDirectorydirectory in file where to look for objects
Long64_tfEntriestotal number of possible entries in file
TObject*fEntryListentry (or event) list to be used in processing
Long64_tfFirstfirst entry to process
TList*fFriendsfriend elements
Float_tfMaxProcTimeMax processing time in secs; -1 no limit
TStringfMsdmass storage domain name
Long64_tfNumnumber of entries to process
Long64_tfTDSetOffsetthe global offset in the TDSet of the first
Bool_tfValidwhether or not the input values are valid

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

 Default constructor
TDSetElement(const char* file, const char* objname = 0, const char* dir = 0, Long64_t first = 0, Long64_t num = -1, const char* msd = 0, const char* dataset = 0)
 Create a TDSet element.
TDSetElement(const TDSetElement& elem)
 copy constructor
 Clean up the element.
Int_t MergeElement(TDSetElement* elem)
 Check if 'elem' is overlapping or subsequent and, if the case, return
 a merged element.
     1    if the elements are overlapping
     0    if the elements are subsequent
    -1    if the elements are neither overlapping nor subsequent
TFileInfo * GetFileInfo(const char* type = "TTree")
 Return the content of this element in the form of a TFileInfo
const char * GetDirectory() const
 Return directory where to look for object.
void Print(Option_t* options = "") const
 Print a TDSetElement. When option="a" print full data.
void Validate(Bool_t isTree)
 Validate by opening the file.
void Validate(TDSetElement* elem)
 Validate by checking against another element.
Int_t Compare(const TObject* obj) const
Compare elements by filename (and the fFirst).
void AddFriend(TDSetElement* friendElement, const char* alias)
 Add friend TDSetElement to this set. The friend element will be copied to this object.
void DeleteFriends()
 Deletes the list of friends and all the friends on the list.
Long64_t GetEntries(Bool_t istree = kTRUE, Bool_t openfile = kTRUE)
 Returns number of entries in tree or objects in file.
 If not yet defined and 'openfile' is TRUE, get the number from the file
 (may considerably slow down the application).
 Returns -1 in case of error.
Int_t Lookup(Bool_t force = kFALSE)
 Resolve end-point URL for this element
 Return 0 on success and -1 otherwise
void SetEntryList(TObject* aList, Long64_t first = -1, Long64_t num = -1)
 Set entry (or event) list for this element
void AddAssocObj(TObject* assocobj)
 Add an associated object to the list
TObject * GetAssocObj(Long64_t i, Bool_t isentry = kFALSE)
 Get i-th associated object.
 If 'isentry' fFirst is subtracted, so that i == fFirst returns the first
 object in the list.
 If there are not enough elements in the list, the element i%list_size is
 returned (if the list has only one element this only one element is always
 This method is used when packet processing consist in processing the objects
 in the associated object list.
void Streamer(TBuffer& )
 Stream an object of class TDSetElement.
Bool_t HasBeenLookedUp() const
TDSetElement& operator=(const TDSetElement& )
TList * GetListOfFriends() const
{ return fFriends; }
const char * GetFileName() const
{ return GetName(); }
Long64_t GetFirst() const
{ return fFirst; }
void SetFirst(Long64_t first)
{ fFirst = first; }
Long64_t GetNum() const
{ return fNum; }
void SetEntries(Long64_t ent)
{ fEntries = ent; }
const char * GetMsd() const
{ return fMsd; }
void SetNum(Long64_t num)
{ fNum = num; }
Bool_t GetValid() const
{ return fValid; }
const char * GetObjName() const
{ return GetTitle(); }
const char * GetDataSet() const
{ return fDataSet; }
void SetDataSet(const char* dataset)
{ fDataSet = dataset; }
TList * GetListOfAssocObjs() const
{ return fAssocObjList; }
Long64_t GetTDSetOffset() const
{ return fTDSetOffset; }
void SetTDSetOffset(Long64_t offset)
{ fTDSetOffset = offset; }
TObject * GetEntryList() const
{ return fEntryList; }
void Invalidate()
{ fValid = kFALSE; }
void SetValid()
{ fValid = kTRUE; }
Bool_t IsSortable() const
{ return kTRUE; }
void SetLookedUp()
Float_t GetMaxProcTime() const
{ return fMaxProcTime; }
void SetMaxProcTime(Float_t mpt)
{ fMaxProcTime = mpt; }