More information on this package is here.
#include "TNT10Reader.h"

TNT10Reader


class description - header file - source file

class TNT10Reader: public TChain, public TVirtualReader

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TNT10Reader(const char* name = "CLASEVENT", const char* title = "CLAS Event Tree from hbook ntuple 10 file.")
~TNT10Reader()
voidTObject::AbstractMethod(const char* method) const
voidTObject::AbstractMethod(const char* method) const
Int_tAdd(const char* name, Int_t nentries = TChain::kBigNumber)
virtual Int_tTVirtualReader::AddEPICFile(const Char_t* filename, Int_t nentries)
virtual Int_tAddFile(const char* name, Int_t nentries = TChain::kBigNumber)
virtual Int_tTChain::AddFileInfoList(TList* list, Long64_t nfiles = kBigNumber)
virtual TFriendElement*TChain::AddFriend(const char* chainname, const char* dummy = "")
virtual TFriendElement*TChain::AddFriend(const char* chainname, TFile* dummy)
virtual TFriendElement*TChain::AddFriend(TTree* chain, const char* alias, Bool_t warn = kFALSE)
virtual voidTTree::AddTotBytes(Int_t tot)
virtual voidTTree::AddZipBytes(Int_t zip)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::AppendPad(Option_t* option = "")
virtual Long64_tTTree::AutoSave(Option_t* option = "")
virtual Int_tTTree::Branch(TList* list, Int_t bufsize = 32000, Int_t splitlevel = 99)
virtual Int_tTTree::Branch(const char* folder, Int_t bufsize = 32000, Int_t splitlevel = 99)
virtual Int_tTTree::Branch(TCollection* list, Int_t bufsize = 32000, Int_t splitlevel = 99, const char* name = "")
virtual TBranch*TTree::Branch(const char* name, void* address, const char* leaflist, Int_t bufsize = 32000)
TBranch*TTree::Branch(const char* name, void*** addobj, Int_t bufsize = 32000, Int_t splitlevel = 99)
TBranch*TTree::Branch(const char* name, const char* classname, void*** addobj, Int_t bufsize = 32000, Int_t splitlevel = 99)
virtual TBranch*TTree::BranchOld(const char* name, const char* classname, void* addobj, Int_t bufsize = 32000, Int_t splitlevel = 1)
virtual TBranch*TTree::BranchRef()
virtual TBranch*TTree::Bronch(const char* name, const char* classname, void* addobj, Int_t bufsize = 32000, Int_t splitlevel = 99)
virtual voidBrowse(TBrowser* b)
virtual Int_tTTree::BuildIndex(const char* majorname, const char* minorname = "0")
TStreamerInfo*TTree::BuildStreamerInfo(TClass* cl, void* pointer = 0)
virtual voidTChain::CanDeleteRefs(Bool_t flag = kTRUE)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual const char*TObject::ClassName() const
voidCleanEventClones()
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual TTree*TTree::CloneTree(Long64_t nentries = -1, Option_t* option = "")
Int_tClose()
virtual Int_tTNamed::Compare(const TObject* obj) const
Double_tCompute_Entries()
virtual voidTNamed::Copy(TObject& named) const
virtual voidTTree::CopyAddresses(TTree*)
virtual Long64_tTTree::CopyEntries(TTree* tree, Long64_t nentries = -1)
virtual TTree*TTree::CopyTree(const char* selection, Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
virtual TBasket*TTree::CreateBasket(TBranch*)
virtual voidTChain::CreatePackets()
Int_tTTree::Debug() const
virtual voidTTree::Delete(Option_t* option = "")
voidDir()
Int_tTAttLine::DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual Int_tDraw(const char* varexp, const char* selection, Option_t* option = "", Int_t nentries = TChain::kBigNumber, Int_t firstentry = 0)
virtual voidTObject::DrawClass() const
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTTree::DropBaskets()
virtual voidTTree::DropBuffers(Int_t nbytes)
virtual voidTObject::Dump() const
virtual voidTObject::Dump() const
virtual voidTObject::Error(const char* method, const char* msgfmt) const
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::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::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual Int_tTChain::Fill()
voidFill_CCPB()
voidFill_DCPB()
voidFill_ECPB()
voidFill_EVNT()
voidFill_HEADER()
voidFill_LCPB()
voidFill_SCPB()
Int_tFill_Tree_from_Paw()
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TBranch*TChain::FindBranch(const char* name)
virtual TLeaf*TChain::FindLeaf(const char* name)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Long64_tTTree::Fit(const char* funcname, const char* varexp, const char* selection = "", Option_t* option = "", Option_t* goption = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
virtual const char*TChain::GetAlias(const char* aliasName) const
virtual TObject*GetBankRow(const Char_t* bankname, Int_t nrow)
virtual TBranch*TChain::GetBranch(const char* name)
virtual TBranchRef*TTree::GetBranchRef() const
virtual Bool_tTChain::GetBranchStatus(const char* branchname) const
static Int_tTTree::GetBranchStyle()
virtual Long64_tTTree::GetCacheSize() const
virtual Long64_tTChain::GetChainEntryNumber(Long64_t entry) const
virtual Long64_tTTree::GetChainOffset() const
virtual Int_tGetCurrentEvent()
TFile*TTree::GetCurrentFile() const
Long64_tTTree::GetDebugMax() const
Long64_tTTree::GetDebugMin() const
TDirectory*TTree::GetDirectory() const
virtual Option_t*TObject::GetDrawOption() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
static Long_tTObject::GetDtorOnly()
virtual Long64_tGetEntries() const
virtual Long64_tGetEntriesFast() const
virtual Long64_tTTree::GetEntriesFriend() const
Double_tGetEntriesLoaded()
virtual Int_tGetEntry(Int_t entry = -1, Int_t getall = 0)
virtual Long64_tTTree::GetEntryNumber(Long64_t entry) const
virtual Long64_tTTree::GetEntryNumberWithBestIndex(Int_t major, Int_t minor = 0) const
virtual Long64_tTTree::GetEntryNumberWithIndex(Int_t major, Int_t minor = 0) const
virtual Int_tTChain::GetEntryWithIndex(Int_t major, Int_t minor = 0)
virtual TEPICClass*TVirtualReader::GetEPICClass()
virtual Float_tTVirtualReader::GetEPICValue(const Char_t* fName)
virtual Long64_tTTree::GetEstimate() const
Int_tTTree::GetEvent(Long64_t entry = 0, Int_t getall = 0)
TEventList*TTree::GetEventList() const
virtual Int_tGetEventNumber()
TFile*TChain::GetFile() const
virtual Int_tTTree::GetFileNumber() const
virtual TObjArray*GetFiles()
virtual Color_tTAttFill::GetFillColor() const
virtual Style_tTAttFill::GetFillStyle() const
virtual const char*TTree::GetFriendAlias(TTree*) const
virtual THEADERClass*GetHEADER()
virtual Int_tTVirtualReader::GetHelicity()
TH1*TTree::GetHistogram()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetIconName() const
virtual Int_t*TTree::GetIndex()
virtual Double_t*TTree::GetIndexValues()
virtual TIterator*TTree::GetIteratorOnAllLeaves(Bool_t dir = kIterForward)
virtual TLeaf*TChain::GetLeaf(const char* name)
virtual Color_tTAttLine::GetLineColor() const
virtual Style_tTAttLine::GetLineStyle() const
virtual Width_tTAttLine::GetLineWidth() const
virtual TSeqCollection*TTree::GetListOfAliases() const
virtual TObjArray*TChain::GetListOfBranches()
virtual TList*TTree::GetListOfClones()
TObjArray*TChain::GetListOfFiles() const
virtual TList*TTree::GetListOfFriends() const
virtual TObjArray*TChain::GetListOfLeaves()
Int_tTTree::GetMakeClass() const
virtual Color_tTAttMarker::GetMarkerColor() const
virtual Size_tTAttMarker::GetMarkerSize() const
virtual Style_tTAttMarker::GetMarkerStyle() const
virtual Long64_tTTree::GetMaxEntryLoop() const
virtual Double_tTChain::GetMaximum(const char* columname)
static Long64_tTTree::GetMaxTreeSize()
virtual Long64_tTTree::GetMaxVirtualSize() const
virtual Double_tTChain::GetMinimum(const char* columname)
virtual const char*TNamed::GetName() const
virtual Int_tTChain::GetNbranches()
virtual Int_tTVirtualReader::GetNFiles()
TObject*TTree::GetNotify() const
virtual Int_tGetNPart()
virtual Int_tGetNRows(const Char_t* bankname = "EVNT")
Int_tGetNTEntries() const
virtual Int_tGetNtrees()
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual Option_t*TObject::GetOption() const
virtual Int_tTTree::GetPacketSize() const
virtual TVector3GetPart3Vector(Int_t indx)
virtual Int_tGetPartCharge(Int_t indx)
virtual Int_tGetPartID(Int_t indx)
virtual TVector3GetPartVertex(Int_t indx)
Bool_tGetPawInit()
TVirtualTreePlayer*TTree::GetPlayer()
virtual Long64_tTChain::GetReadEntry() const
virtual TStringGetReaderType()
virtual Long64_tTTree::GetReadEvent() const
virtual Int_tGetRunNumber()
virtual Int_tTTree::GetScanField() const
TTreeFormula*TTree::GetSelect()
virtual Long64_tTTree::GetSelectedRows()
TList*TChain::GetStatus() const
virtual Int_tTTree::GetTimerInterval() const
virtual const char*TNamed::GetTitle() const
virtual Long64_tTTree::GetTotBytes() const
virtual TChain*GetTree(Char_t* treename = "EVENT")
virtual TVirtualIndex*TTree::GetTreeIndex() const
Int_tGetTreeNum()
virtual Int_tTChain::GetTreeNumber() const
Long64_t*GetTreeOffset()
Int_tTChain::GetTreeOffsetLen() const
virtual UInt_tTObject::GetUniqueID() const
virtual UInt_tTObject::GetUniqueID() const
virtual Int_tTTree::GetUpdate() const
virtual TList*TTree::GetUserInfo()
virtual Double_t*TTree::GetV1()
virtual Double_t*TTree::GetV2()
virtual Double_t*TTree::GetV3()
virtual Double_t*TTree::GetV4()
TTreeFormula*TTree::GetVar1()
TTreeFormula*TTree::GetVar2()
TTreeFormula*TTree::GetVar3()
TTreeFormula*TTree::GetVar4()
virtual Double_t*TTree::GetW()
virtual Double_tTChain::GetWeight() const
virtual Long64_tTTree::GetZipBytes() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTTree::IncrementTotalBuffers(Int_t nbytes)
virtual voidTObject::Info(const char* method, const char* msgfmt) 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 Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
voidInitBanks()
Int_tInitBranches()
voidInitClones()
virtual voidTObject::Inspect() const
virtual voidTObject::Inspect() const
voidTObject::InvertBit(UInt_t f)
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTTree::IsFolder() const
Bool_tTObject::IsOnHeap() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tTAttFill::IsTransparent() const
Bool_tIsZombie()
Double_tLoadAll()
virtual Int_tTChain::LoadBaskets(Long64_t maxmemory)
Int_tLoadTree(Int_t entry)
virtual Long64_tTTree::LoadTreeFriend(Long64_t entry, TTree* T)
voidTChain::Lookup()
virtual voidTChain::Loop(Option_t* option = "", Long64_t nentries = kBigNumber, Long64_t firstentry = 0)
virtual voidTChain::ls(Option_t* option = "") const
virtual Int_tTTree::MakeClass(const char* classname = "0", Option_t* option = "")
virtual Int_tTTree::MakeCode(const char* filename = "0")
virtual Int_tTTree::MakeProxy(const char* classname, const char* macrofilename = "0", const char* cutfilename = "0", const char* option = "0", Int_t maxUnrolling = 3)
virtual Int_tTTree::MakeSelector(const char* selector = "0")
voidTObject::MayNotUse(const char* method) const
voidTObject::MayNotUse(const char* method) const
Bool_tTTree::MemoryFull(Int_t nbytes)
virtual Long64_tTChain::Merge(const char* name, Option_t* option = "")
virtual Long64_tTChain::Merge(TCollection* list, Option_t* option = "")
virtual Long64_tTChain::Merge(TFile* file, Int_t basketsize, Option_t* option = "")
static TTree*TTree::MergeTrees(TList* list, Option_t* option = "")
virtual voidTAttLine::Modify()
virtual Int_tNext()
virtual Bool_tTTree::Notify()
voidNTPrint()
Int_tOpen(const char* name)
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
void*TObject::operator new[](size_t sz, void* vp)
TNamed&TNamed::operator=(const TNamed& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Pop()
TPrincipal*TTree::Principal(const char* varexp = "", const char* selection = "", Option_t* option = "np", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
virtual voidTChain::Print(Option_t* option = "") const
virtual voidTVirtualReader::PrintEPICPosition()
virtual voidPrintEventStatus()
virtual Long64_tTChain::Process(const char* filename, Option_t* option = "", Long64_t nentries = kBigNumber, Long64_t firstentry = 0)
virtual Long64_tTChain::Process(TSelector* selector, Option_t* option = "", Long64_t nentries = kBigNumber, Long64_t firstentry = 0)
virtual Long64_tTTree::Project(const char* hname, const char* varexp, const char* selection = "", Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
virtual TSQLResult*TTree::Query(const char* varexp = "", const char* selection = "", Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
virtual Int_tTObject::Read(const char* name)
virtual Int_tTObject::Read(const char* name)
virtual Int_tTVirtualReader::ReadEvent(Int_t event, Int_t runnum = 0)
virtual Long64_tTTree::ReadFile(const char* filename, const char* branchDescriptor = "")
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidTTree::Refresh()
virtual voidTTree::RemoveFriend(TTree*)
virtual voidTChain::Reset(Option_t* option = "")
virtual voidTAttFill::ResetAttFill(Option_t* option = "")
virtual voidTAttLine::ResetAttLine(Option_t* option = "")
virtual voidTAttMarker::ResetAttMarker(Option_t* toption = "")
voidTObject::ResetBit(UInt_t f)
voidTObject::ResetBit(UInt_t f)
virtual voidTChain::ResetBranchAddresses()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTAttFill::SaveFillAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1001)
virtual voidTAttLine::SaveLineAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t widdef = 1)
virtual voidTAttMarker::SaveMarkerAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t sizdef = 1)
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
virtual Long64_tTChain::Scan(const char* varexp = "", const char* selection = "", Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
virtual Bool_tTTree::SetAlias(const char* aliasName, const char* aliasFormula)
virtual voidTChain::SetAutoDelete(Bool_t autodel = kTRUE)
virtual voidTTree::SetAutoSave(Long64_t autos = 10000000)
virtual voidTTree::SetBasketSize(const char* bname, Int_t buffsize = 16000)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetBranchAddress(const char* bname, void** add)
virtual voidTChain::SetBranchStatus(const char* bname, Bool_t status = 1, UInt_t* found = 0)
static voidTTree::SetBranchStyle(Int_t style = 1)
virtual voidTTree::SetCacheSize(Long64_t cachesize = 10000000)
virtual voidTTree::SetChainOffset(Long64_t offset = 0)
virtual voidTTree::SetCircular(Long64_t maxEntries)
virtual voidTTree::SetDebug(Int_t level = 1, Long64_t min = 0, Long64_t max = 9999999)
Int_tTVirtualReader::SetDebugMode(Int_t mode)
virtual voidTChain::SetDirectory(TDirectory* dir)
virtual voidTObject::SetDrawOption(Option_t* option = "")
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetDtorOnly(void* obj)
virtual Long64_tTTree::SetEntries(Long64_t n = -1)
virtual voidTTree::SetEstimate(Long64_t nentries = 10000)
virtual voidTTree::SetEventList(TEventList* list)
virtual voidTTree::SetFileNumber(Int_t number = 0)
virtual voidTAttFill::SetFillAttributes()
virtual voidTAttFill::SetFillColor(Color_t fcolor)
virtual voidTAttFill::SetFillStyle(Style_t fstyle)
virtual voidTAttLine::SetLineAttributes()
virtual voidTAttLine::SetLineColor(Color_t lcolor)
virtual voidTAttLine::SetLineStyle(Style_t lstyle)
virtual voidTAttLine::SetLineWidth(Width_t lwidth)
virtual voidTChain::SetMakeClass(Int_t make)
virtual voidTAttMarker::SetMarkerAttributes()
virtual voidTAttMarker::SetMarkerColor(Color_t tcolor = 1)
virtual voidTAttMarker::SetMarkerSize(Size_t msize = 1)
virtual voidTAttMarker::SetMarkerStyle(Style_t mstyle = 1)
virtual voidTTree::SetMaxEntryLoop(Long64_t maxev = 1000000000)
static voidTTree::SetMaxTreeSize(Long64_t maxsize = 1900000000)
virtual voidTTree::SetMaxVirtualSize(Long64_t size = 0)
virtual voidTTree::SetName(const char* name)
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
virtual voidTTree::SetNotify(TObject* obj)
Int_tSetNtNum(Int_t ntnum = 10)
virtual voidTTree::SetObject(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTChain::SetPacketSize(Int_t size = 100)
virtual voidTChain::SetProof(Bool_t on = kTRUE, Bool_t refresh = kFALSE, Bool_t gettreeheader = kFALSE)
virtual voidTTree::SetScanField(Int_t n = 50)
virtual voidTTree::SetTimerInterval(Int_t msec = 333)
virtual voidTNamed::SetTitle(const char* title = "")
virtual voidTTree::SetTreeIndex(TVirtualIndex* index)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidTTree::SetUpdate(Int_t freq = 0)
virtual voidTChain::SetWeight(Double_t w = 1, Option_t* option = "")
virtual voidTTree::Show(Long64_t entry = -1, Int_t lenmax = 20)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
virtual voidTTree::StartViewer()
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual Long64_tTTree::UnbinnedFit(const char* funcname, const char* varexp, const char* selection = "", Option_t* option = "", Long64_t nentries = 1000000000, Long64_t firstentry = 0)
virtual voidTChain::UseCache(Int_t maxCacheSize = 10, Int_t pageSize = 0)
virtual voidTTree::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
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 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
protected:
voidTTree::AddClone(TTree*)
virtual TBranch*TTree::BranchImp(const char* branchname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel)
virtual TBranch*TTree::BranchImp(const char* branchname, const char* classname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel)
virtual TFile*TTree::ChangeFile(TFile* file)
virtual Bool_tTTree::CheckBranchAddressType(TBranch* branch, TClass* ptrClass, EDataType datatype, Bool_t ptr)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
const char*TTree::GetNameByIndex(TString& varexp, Int_t* index, Int_t colindex) const
virtual voidTTree::KeepCircular()
virtual voidTTree::MakeIndex(TString& varexp, Int_t* index)
voidTObject::MakeZombie()
voidTObject::MakeZombie()
voidTChain::ReleaseChainProof()

Data Members

public:
enum TChain::[unnamed] { kGlobalWeight
kAutoDelete
kProofUptodate
kBigNumber
};
enum TTree::ELockStatusBits { kFindBranch
kFindLeaf
kGetAlias
kGetBranch
kGetEntry
kGetEntryWithIndex
kGetFriendAlias
kGetLeaf
kLoadTree
kPrint
kRemoveFriend
kSetBranchStatus
};
enum TTree::[unnamed] { kForceRead
kCircular
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
public:
THEADERClass*fEvntHeaderEvent Header pointer
THEADClass*fScalerHeadScaler Event Header pointer
TClonesArray*fcaDataPointerPoints to fcaEVNTStore or fcaGSIMStore
TClonesArray*fcaEVNTStoreClones Array for EVNT bank
TClonesArray*fcaECPBStoreClones Array for ECPB bank
TClonesArray*fcaSCPBStoreClones Array for SCPB bank
TClonesArray*fcaDCPBStoreClones Array for DCPB bank
TClonesArray*fcaCCPBStoreClones Array for CCPB bank
TClonesArray*fcaLCPBStoreClones Array for LCPB bank
TClonesArray*fcaTGBIStoreClones Array for TGBI bank
TBranch*fEvntHeaderBranch
TBranch*fEVNTBranch
Int_tfnEVNT_Store
TEVNTClass*fEVNT
TBranch*fECPBBranch
Int_tfnECPB_Store
TECPBClass*fECPB
TBranch*fSCPBBranch
Int_tfnSCPB_Store
TSCPBClass*fSCPB
TBranch*fDCPBBranch
Int_tfnDCPB_Store
TDCPBClass*fDCPB
TBranch*fCCPBBranch
Int_tfnCCPB_Store
TCCPBClass*fCCPB
TBranch*fLCPBBranch
Int_tfnLCPB_Store
TLCPBClass*fLCPB
TObjArray*fHbookFiles
Int_tfNRunThe hbook does not store this. Is extracted from filename!
Int_tfNeventsThis should contain the total number of entries in the current file.
Int_tfNtLastReadContains the last event read from the ntuple chain.
Bool_tfReadSequentialIf set false, allow now sequential reads.
Int_tfNtNumWhich ntuple to use, default is 10.
static Bool_tfgPawInitIs PAW already initialized?
static Int_t*fgLunsStores the Luns. 10 max.
Int_tfHbookLunLun used to open file. Zero if file is not open.
TList*fListlist of objects in memory
TList*fKeyslist of Hbook keys (Ids) on disk.
Int_tTVirtualReader::fDebug_ModeDefines printout, Bit 0 = STD Messages, Bit 1 = Errors, Higherbits = Debug
Int_tTVirtualReader::fCurrentEventCurrent Data Event (for use with Next() )
Int_tTVirtualReader::fCurrentScalerCurrent Scaler Event (for use with NextScaler() )
Int_tTVirtualReader::fScalerLastEvtto synchronize Event tree and Scaler tree this contain the event number of the last Physics Event. Set by SetBranchAddress
Bool_tTVirtualReader::fReadScalerTurn on or off the automatic reading of scaler branch. Default is on.
Bool_tTVirtualReader::fReadMCHDTurn on or off the reading of the MCHD bank.
Bool_tTVirtualReader::fReadGSIMTurn on or off the reading of the GSIM bank.
Bool_tTVirtualReader::fUseGSIMWhen set true, read the GSIM bank INSTEAD of the EVNT bank.
static Int_tTVirtualReader::fgInstanceCountTotal instance count.
Int_tTVirtualReader::fThisInstanceInstance count of this instance.
protected:
Int_tTChain::fTreeOffsetLenCurrent size of fTreeOffset array
Int_tTChain::fNtreesNumber of trees
Int_tTChain::fTreeNumber! Current Tree number in fTreeOffset table
Long64_t*TChain::fTreeOffset[fTreeOffsetLen] Array of variables
Bool_tTChain::fCanDeleteRefs! If true, TProcessIDs are deleted when closing a file
TTree*TChain::fTree! Pointer to current tree (Note: We do *not* own this tree.)
TFile*TChain::fFile! Pointer to current file (We own the file).
TObjArray*TChain::fFiles-> List of file names containing the trees (TChainElement, owned)
TList*TChain::fStatus-> List of active/inactive branches (TChainElement, owned)
TChain*TChain::fProofChain! chain proxy when going to be processed by PROOF
Long64_tTTree::fEntriesNumber of entries
Long64_tTTree::fTotBytesTotal number of bytes in all branches before compression
Long64_tTTree::fZipBytesTotal number of bytes in all branches after compression
Long64_tTTree::fSavedBytesNumber of autosaved bytes
Double_tTTree::fWeightTree weight (see TTree::SetWeight)
Int_tTTree::fTimerIntervalTimer interval in milliseconds
Int_tTTree::fScanFieldNumber of runs before prompting in Scan
Int_tTTree::fUpdateUpdate frequency for EntryLoop
Long64_tTTree::fMaxEntriesMaximum number of entries in case of circular buffers
Long64_tTTree::fMaxEntryLoopMaximum number of entries to process
Long64_tTTree::fMaxVirtualSizeMaximum total size of buffers kept in memory
Long64_tTTree::fAutoSaveAutosave tree when fAutoSave bytes produced
Long64_tTTree::fEstimateNumber of entries to estimate histogram limits
Long64_tTTree::fCacheSize! Maximum size of file buffers
Long64_tTTree::fChainOffset! Offset of 1st entry of this Tree in a TChain
Long64_tTTree::fReadEntry! Number of the entry being processed
Long64_tTTree::fTotalBuffers! Total number of bytes in branch buffers
Int_tTTree::fPacketSize! Number of entries in one packet for parallel root
Int_tTTree::fNfill! Local for EntryLoop
Int_tTTree::fDebug! Debug level
Long64_tTTree::fDebugMin! First entry number to debug
Long64_tTTree::fDebugMax! Last entry number to debug
Int_tTTree::fMakeClass! not zero when processing code generated by MakeClass
Int_tTTree::fFileNumber! current file number (if file extensions)
TObject*TTree::fNotify! Object to be notified when loading a Tree
TDirectory*TTree::fDirectory! Pointer to directory holding this tree
TObjArrayTTree::fBranchesList of Branches
TObjArrayTTree::fLeavesDirect pointers to individual branch leaves
TList*TTree::fAliasesList of aliases for expressions based on the tree branches.
TEventList*TTree::fEventList! Pointer to event selection list (if one)
TArrayDTTree::fIndexValuesSorted index values
TArrayITTree::fIndexIndex of sorted values
TVirtualIndex*TTree::fTreeIndexPointer to the tree Index (if any)
TList*TTree::fFriendspointer to list of friend elements
TList*TTree::fUserInfopointer to a list of user objects associated to this Tree
TVirtualTreePlayer*TTree::fPlayer! Pointer to current Tree player
TList*TTree::fClones! List of cloned trees which share our addresses
TBranchRef*TTree::fBranchRefBranch supporting the TRefTable (if any)
UInt_tTTree::fFriendLockStatus! Record which method is locking the friend recursion
static Int_tTTree::fgBranchStyleOld/New branch style
static Long64_tTTree::fgMaxTreeSizeMaximum size of a file containg a Tree
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
Color_tTAttLine::fLineColorline color
Style_tTAttLine::fLineStyleline style
Width_tTAttLine::fLineWidthline width
Color_tTAttFill::fFillColorfill area color
Style_tTAttFill::fFillStylefill area style
Color_tTAttMarker::fMarkerColorMarker color index
Style_tTAttMarker::fMarkerStyleMarker style
Size_tTAttMarker::fMarkerSizeMarker size

Class Description

____________________ 

TNT10Reader

This clas mimicks the behavior of a TChain object, but is capable of reading the NTuple-10 format instead of native root formats.

Huge Wopping Warning:
When used for certain operations without an output file open, this class will read the ENTIRE set of HBOOK files and stick all of its contents into one Huge Wopping TChain. The result is that the root.exe will eat a serious amount of memory (~1.2 Gb for 2 nt files) This will cause your system to start swapping and everything will stop to a crawl (especially X) leaving your system "hung" for a long time. You want to have a TFile open for writing to prevent this. It will be MUCH MUCH faster, and when you close the file, you have a root version of the ntuple. A different version of an NT10Reader could NOT make a TTree, would not allow you to write a file, but it would read an ntuple faster without having a file open. This would be faster.... (Let me know if you write one.)

Important Note:

Since the NT10 ntuple is NOT a stable definition, you (someone) will need to adopt this class for each run period (cooking code version). The adoption is fairly straight forward. The version is in the include file NT10_E2b.h in I_VERSION and will be reported to you with a GetReaderType() call. Adoptiong to a different NT10 version requires modification of NT10_E2b.h see instructions in that file.

WARNING:
Since the clas inherits from TChain all the calls to TChain methods will exist, however they may not function! Quite a few should be over-written to function, some *may* work just as is.... As I put more effort into this clas, more and more of it will.

This class "borrows" heavily from THbookFile and THbookTree

Improvements needed:

  1. Get the runnumber from the file name and store it.
  2. TESTING
 
 
   

TNT10Reader(const char *name,const char *title)
 Create a new TNT10Reader with a TChain name of "name".
 Usually you would want that to be "CLASEVENT", so you
 may as well use TNT10Reader();
  
~TNT10Reader()
*-*-*-*-*-*Default destructor for a HBookReader*-*-*-*-*-*-*-*-*-*-*-*
*-*        ==============================
TString GetReaderType()
 Returns the type of reader and the I_VERSION.
 The I_VERSION is a string that should contain
 which run period cookings this reader is good for.
 For more info see NT10_commons.h

Int_t Add(const char *name,Int_t nentries)
 Add an HBook file containing an Ntuple-10 ntuple to the list of
 files that will be itterated over.
 Similar to TChain::Add()

 Argument name may have the following format:
   //machine/file_name.root/subdir/tree_name
 machine, subdir and tree_name are optional. If tree_name is missing,
 the chain name will be assumed.
 Name may use the wildcarding notation, eg "xxx*.root" means all files
 starting with xxx in the current file system directory.
 NB. To add all the files of a TChain to a chain, use Add(TChain *chain).

    A- if nentries <= 0, the file is connected and the tree header read
       in memory to get the number of entries.

    B- if (nentries > 0, the file is not connected, nentries is assumed to be
       the number of entries in the file. In this case, no check is made that
       the file exists and the Tree existing in the file. This second mode
       is interesting in case the number of entries in the file is already stored
       in a run data base for example.

    C- if (nentries == kBigNumber) (default), the file is not connected.
       the number of entries in each file will be read only when the file
       will need to be connected to read an entry.
       This option is the default and very efficient if one process
       the chain sequentially. Note that in case TChain::GetEntry(entry)
       is called and entry refers to an entry in the 3rd file, for example,
       this forces the Tree headers in the first and second file
       to be read to find the number of entries in these files.
       Note that if one calls TChain::GetEntriesFast() after having created
       a chain with this default, GetEntriesFast will return kBigNumber!
       TChain::GetEntries will force of the Tree headers in the chain to be
       read to read the number of entries in each Tree.
Int_t AddFile(const char *name,Int_t nentries)
       Add a new file to this HBOOK chain.

    A- if nentries <= 0, the file is connected and the tree header read
       in memory to get the number of entries.

    B- if (nentries > 0, the file is not connected, nentries is assumed to be
       the number of entries in the file. In this case, no check is made that
       the file exists and the Tree existing in the file. This second mode
       is interesting in case the number of entries in the file is already stored
       in a run data base for example.

    C- if (nentries == kBigNumber) (default), the file is not connected.
       the number of entries in each file will be read only when the file
       will need to be connected to read an entry.
       This option is the default and very efficient if one process
       the chain sequentially. Note that in case TChain::GetEntry(entry)
       is called and entry refers to an entry in the 3rd file, for example,
       this forces the Tree headers in the first and second file
       to be read to find the number of entries in these files.
       Note that if one calls TChain::GetEntriesFast() after having created
       a chain with this default, GetEntriesFast will return kBigNumber!
       TChain::GetEntries will force of the Tree headers in the chain to be
       read to read the number of entries in each Tree.
Double_t Compute_Entries()
 Computes the number of entries and fills the 
 Offsets.
Int_t Draw(const char *varexp, const char *selection, Option_t *option,Int_t nentries, Int_t firstentry)
 Process all entries in this chain and draw histogram
 corresponding to expression varexp.
GetEntries_return_t GetEntries()
 return the total number of entries in the chain.
 In case the number of entries in each tree is not yet known,
 the offset table is computed
GetEntries_return_t GetEntriesFast()
 Return the number of events fast.
 Fast, because it uses the result of the GetEntries()
 call when the file was opened.
Int_t GetEntry(Int_t entry, Int_t getall)
 
 Override of the GetEntry function from the TChain.
 Call this function to load one event into the TTree.

Int_t Next()
 Get the next event in the sequence after fCurrentEvent.
Int_t Fill_Tree_from_Paw()
 Fills the Tree object (this) with the information
 from the PAW ntuple. 
 This is mostly a copy operation.
 It finishes with a TChain::Fill() call to fill the
 baskets associated with the tree also.
 returns the number of bytes stored.

 At some future time, perhaps we can add code to only
 read those items that are needed, instead of all of it...
void Fill_HEADER(void)
 This function will fill the HEADER class.
 For Ntuples that deviate from the "standard"
 this routine needs to be over-written.
void Fill_EVNT(void)
 This function will fill the EVNT class.
 For Ntuples that deviate from the "standard"
 this routine needs to be over-written.
void Fill_DCPB(void)
 This function will fill the DCPB class.
 For Ntuples that deviate from the "standard"
 this routine needs to be over-written.
void Fill_ECPB(void)
 This function will fill the ECPB class.
 For Ntuples that deviate from the "standard"
 this routine needs to be over-written.
void Fill_SCPB(void)
 This function will fill the SCPB class.
 For Ntuples that deviate from the "standard"
 this routine needs to be over-written.
void Fill_CCPB(void)
 This function will fill the DCPB class.
 For Ntuples that deviate from the "standard"
 this routine needs to be over-written.
void Fill_LCPB(void)
 This function will fill the LCPB class.
 For Ntuples that deviate from the "standard"
 this routine needs to be over-written.
void InitBanks(void)
 Allocates one copy for each class for
 the BANK data.

void InitClones()
 Internal funtion to initialize the TClonesArray objects so we
 can store classes in them. These TClonesArray-s are stored in 
 the branches of the TTree.
Int_t InitBranches()
 Initialize the branches of the TTree.
 Used internally in the code. 

void SetBranchAddress(const char *bname, void **add)
 
 We have to override this, since the branches are special.
 They do not exist yet! Instead of just "setting" the branch,
 we need to create it. 
 The branches are created with fTree->Branch().
 We need the pointer so that they can be filled from the file.
Double_t LoadAll(void)
 This calls LoadTree() with as argument the last entry in the
 HBook file, thus forcing the entire HBook file to be read.

Int_t LoadTree(Int_t entry)
 The input argument entry is the serial number of the whole chain.
 The function finds the corresponding Tree and reads and returns the
 corresponding entry in this Tree.

 Since we are not reading Trees but HBook files, there is the additional
 complication that we don't want to read the same event from the HBook 
 file into the Tree twice. This is prevented by first checking if the 
 requested event is already in the TTree. 
 Such a mechanism only works if the NTUPLE is read sequentially! So
 unless fReadSequential is set to kFALSE, a sequential read from the
 ntuple is enforced.

 Also, with multiple files, we'd like to keep the Trees around, so we don't
 need to read the HBook file again. As a result, this "chain" actually 
 has only one giant tree. I hope we don't run out of memory.

void CleanEventClones()
 Clears all the TCloneArray object to get ready for next event.

Int_t Close(void)
Int_t Open(const char *name)
 Open an HBOOK file for reading.
 Return 1 on failure, 0 on success.
void PrintEventStatus()
 For Debugging ETC, print usefull information on this event.
 (To be extended )

void Browse(TBrowser *b)
 Allow for browsing of the TTree. Note that you will 
 only be browsing the events that have already been loaded!
 To make sure you read all the events, manually
 call LoadAll() first.
void Dir(void)
  HBOOK directory listing of the hbook file.
Int_t GetNTEntries()
 This gets the number of entries in the currently attached HBook file.
void NTPrint(void)
 HBook style print of the contends of the current ntuple.
Int_t SetNtNum(Int_t ntnum)
 Set the number of the ntuple to use. Default =10.
Int_t GetNRows(const Char_t *bankname)
   This Function returns number of rows (number of 
 entries) of specified Bank (Clones Array). The string
 argument passed to function is the name of bank.
 EVNT,ECPB,SCPB,DCPB,CCPB or LCPB.
 Any other string passed to function will return -1 
 indicating that there is no bank with that name...

TVector3 GetPart3Vector(Int_t indx)
TVector3 GetPartVertex(Int_t indx)
Int_t GetPartID(Int_t indx)
Int_t GetPartCharge(Int_t indx)
Int_t GetEventNumber()
 Return the physics event number from the HEADER bank
Int_t GetRunNumber()
 Return the run number.
 This is currently not properly implemented, it will
 always return 0, since we need to modify the Open
 command to find out the runnumber from the file name.
Int_t GetCurrentEvent()
 Returns the number of the current event in the Next() sequence.
 This is not the "Physics event" number, which you get from the header class.
TObject * GetBankRow(const Char_t *bankname,Int_t nrow)
 Get a specific bank given the bankname at a specific row given the row name  
TChain * GetTree(Char_t *treename)
 Return the TChain that underlies this reader.
 Since we inherit from TChain, this reader IS the chain
 so we return ourselves.

TObjArray * GetFiles(void)
{return fFiles;}
THEADERClass * GetHEADER()
{return(fEvntHeader);}
Int_t GetNPart()
{return(GetNRows());}
Int_t GetNtrees(void)
{return fNtrees;}
Int_t GetTreeNum(void)
{return fTreeNumber;}
GetEntries_return_t * GetTreeOffset(void)
{return (GetEntries_return_t*)fTreeOffset;}
Bool_t IsZombie()
{return(fHbookLun==0);}
Double_t GetEntriesLoaded()
{return fTree->GetEntriesFast();}
Bool_t GetPawInit(void)
{return fgPawInit;}


Author: Maurik Holtrop
Last update: ClasTool/ClasBanks:$Name: $:$Id: TNT10Reader.cc,v 1.10 2007/03/01 22:27:00 holtrop Exp $
CopyLeft - This code is freely available.

ROOT Home page - ClasTool Class index - Class Hierarchy - Top of the page