Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TChainElement.h
Go to the documentation of this file.
1// @(#)root/tree:$Id$
2// Author: Rene Brun 11/02/97
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11#ifndef ROOT_TChainElement
12#define ROOT_TChainElement
13
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// TChainElement //
18// //
19// Describes a component of a TChain. //
20// //
21//////////////////////////////////////////////////////////////////////////
22
23
24#include "TNamed.h"
25
26class TBranch;
27
28class TChainElement : public TNamed {
29
30 /// TChainElement status bits
33 };
34
35protected:
36 Long64_t fEntries; ///< Number of entries in the tree of this chain element
37 Int_t fNPackets; ///< Number of packets
38 Int_t fPacketSize; ///< Number of events in one packet for parallel root
39 Int_t fStatus; ///< branch status when used as a branch
40 void *fBaddress; ///<! branch address when used as a branch
41 TString fBaddressClassName; ///<! Name of the class pointed to by fBaddress
42 UInt_t fBaddressType; ///<! Type of the value pointed to by fBaddress
43 bool fBaddressIsPtr : 1; ///<! True if the address is a pointer to an address
44 bool fDecomposedObj : 1; ///<! True if the address needs the branch in MakeClass/DecomposedObj mode.
45 bool fCheckedType : 1; ///<! True if the branch type and the address type have been checked.
46 char *fPackets; ///<! Packet descriptor string
47 TBranch **fBranchPtr; ///<! Address of user branch pointer (to updated upon loading a file)
48 Int_t fLoadResult; ///<! Return value of TChain::LoadTree(); 0 means success
49
50public:
52 TChainElement(const char *title, const char *filename);
53 ~TChainElement() override;
54 virtual void CreatePackets();
55 virtual void *GetBaddress() const {return fBaddress;}
56 virtual const char *GetBaddressClassName() const { return fBaddressClassName; }
57 virtual bool GetBaddressIsPtr() const { return fBaddressIsPtr; }
58 virtual UInt_t GetBaddressType() const { return fBaddressType; }
59 virtual TBranch **GetBranchPtr() const { return fBranchPtr; }
60 virtual Long64_t GetEntries() const {return fEntries;}
61 Int_t GetLoadResult() const { return fLoadResult; }
62 bool GetCheckedType() const { return fCheckedType; }
63 bool GetDecomposedObj() const { return fDecomposedObj; }
64 virtual char *GetPackets() const {return fPackets;}
65 virtual Int_t GetPacketSize() const {return fPacketSize;}
66 virtual Int_t GetStatus() const {return fStatus;}
67 virtual bool HasBeenLookedUp() { return TestBit(kHasBeenLookedUp); }
68 void ls(Option_t *option="") const override;
69 virtual void SetBaddress(void *add) {fBaddress = add;}
70 virtual void SetBaddressClassName(const char* clname) { fBaddressClassName = clname; }
71 virtual void SetBaddressIsPtr(bool isptr) { fBaddressIsPtr = isptr; }
73 virtual void SetBranchPtr(TBranch **ptr) { fBranchPtr = ptr; }
74 void SetCheckedType(bool m) { fCheckedType = m; }
77 virtual void SetLookedUp(bool y = true);
79 virtual void SetPacketSize(Int_t size = 100);
80 virtual void SetStatus(Int_t status) {fStatus = status;}
81
82 ClassDefOverride(TChainElement,2); //A chain element
83};
84
85#endif
86
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
int Int_t
Definition RtypesCore.h:45
long long Long64_t
Definition RtypesCore.h:80
const char Option_t
Definition RtypesCore.h:66
#define BIT(n)
Definition Rtypes.h:85
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
A TTree is a list of TBranches.
Definition TBranch.h:93
A TChainElement describes a component of a TChain.
bool fBaddressIsPtr
! True if the address is a pointer to an address
void SetLoadResult(Int_t result)
Long64_t fEntries
Number of entries in the tree of this chain element.
bool fDecomposedObj
! True if the address needs the branch in MakeClass/DecomposedObj mode.
virtual void SetBaddressClassName(const char *clname)
virtual Long64_t GetEntries() const
void SetCheckedType(bool m)
virtual char * GetPackets() const
Int_t fPacketSize
Number of events in one packet for parallel root.
TBranch ** fBranchPtr
! Address of user branch pointer (to updated upon loading a file)
virtual void SetPacketSize(Int_t size=100)
Set number of entries per packet for parallel root.
~TChainElement() override
Default destructor for a chain element.
Int_t fNPackets
Number of packets.
char * fPackets
! Packet descriptor string
EStatusBits
TChainElement status bits.
void SetDecomposedObj(bool m)
virtual bool HasBeenLookedUp()
virtual void SetStatus(Int_t status)
virtual void SetLookedUp(bool y=true)
Set/Reset the looked-up bit.
Int_t fLoadResult
! Return value of TChain::LoadTree(); 0 means success
virtual UInt_t GetBaddressType() const
virtual bool GetBaddressIsPtr() const
virtual void SetNumberEntries(Long64_t n)
virtual TBranch ** GetBranchPtr() const
Int_t fStatus
branch status when used as a branch
virtual Int_t GetPacketSize() const
virtual void SetBaddress(void *add)
TChainElement()
Default constructor for a chain element.
virtual void CreatePackets()
Initialize the packet descriptor string.
virtual void SetBranchPtr(TBranch **ptr)
Int_t GetLoadResult() const
void ls(Option_t *option="") const override
List files in the chain.
virtual Int_t GetStatus() const
UInt_t fBaddressType
! Type of the value pointed to by fBaddress
TString fBaddressClassName
! Name of the class pointed to by fBaddress
virtual void * GetBaddress() const
bool GetDecomposedObj() const
virtual void SetBaddressType(UInt_t type)
bool GetCheckedType() const
void * fBaddress
! branch address when used as a branch
bool fCheckedType
! True if the branch type and the address type have been checked.
virtual const char * GetBaddressClassName() const
virtual void SetBaddressIsPtr(bool isptr)
The TNamed class is the base class for all named ROOT classes.
Definition TNamed.h:29
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
Definition TObject.h:201
Basic string class.
Definition TString.h:139
Double_t y[n]
Definition legend1.C:17
const Int_t n
Definition legend1.C:16
TMarker m
Definition textangle.C:8