/usr/include/root/TBranchClones.h is in libroot-tree-dev 5.34.19+dfsg-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | // @(#)root/tree:$Id$
// Author: Rene Brun 11/02/96
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TBranchClones
#define ROOT_TBranchClones
//////////////////////////////////////////////////////////////////////////
// //
// TBranchClones //
// //
// A Branch for the case of an array of clone objects. //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TBranch
#include "TBranch.h"
#endif
class TClonesArray;
class TTreeCloner;
class TBranchClones : public TBranch {
protected:
TClonesArray *fList; //!Pointer to the clonesarray
Int_t fRead; //!flag = 1 if clonesarray has been read
Int_t fN; //!Number of elements in ClonesArray
Int_t fNdataMax; //!Maximum value of fN
TString fClassName; //name of the class of the objets in the ClonesArray
TBranch *fBranchCount; //Branch with clones count
friend class TTreeCloner;
void Init(TTree *tree, TBranch *parent, const char *name, void *clonesaddress, Int_t basketsize=32000,Int_t compress=-1, Int_t splitlevel=1);
public:
TBranchClones();
TBranchClones(TTree *tree, const char *name, void *clonesaddress, Int_t basketsize=32000,Int_t compress=-1, Int_t splitlevel=1);
TBranchClones(TBranch *parent, const char *name, void *clonesaddress, Int_t basketsize=32000,Int_t compress=-1, Int_t splitlevel=1);
virtual ~TBranchClones();
virtual void Browse(TBrowser *b);
virtual Int_t Fill();
virtual const char* GetClassName() const { return fClassName; }
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall = 0);
virtual Int_t GetN() const {return fN;}
TClonesArray *GetList() const {return fList;}
Bool_t IsFolder() const {return kTRUE;}
virtual void Print(Option_t *option="") const;
virtual void Reset(Option_t *option="");
virtual void ResetAfterMerge(TFileMergeInfo *);
virtual void SetAddress(void *add);
virtual void SetBasketSize(Int_t buffsize);
virtual void UpdateFile();
ClassDef(TBranchClones,2); //Branch in case of an array of clone objects
};
#endif
|