TClonesArray Class Reference

#include <TClonesArray.h>

Inheritance diagram for TClonesArray:

TObjArray TObjArray TSeqCollection TSeqCollection TSeqCollection TSeqCollection TCollection TCollection TCollection TCollection TCollection TCollection TCollection TCollection List of all members.

Public Types

enum  
 Saved copies of pointers to objects. More...
enum  
 Saved copies of pointers to objects. More...

Public Member Functions

 TClonesArray ()
 TClonesArray (const char *classname, Int_t size=1000, Bool_t call_dtor=kFALSE)
 TClonesArray (const TClass *cl, Int_t size=1000, Bool_t call_dtor=kFALSE)
 TClonesArray (const TClonesArray &tc)
virtual ~TClonesArray ()
TClonesArrayoperator= (const TClonesArray &tc)
virtual void Compress ()
virtual void Clear (Option_t *option="")
virtual void Delete (Option_t *option="")
virtual void Expand (Int_t newSize)
virtual void ExpandCreate (Int_t n)
virtual void ExpandCreateFast (Int_t n)
TClassGetClass () const
virtual void SetOwner (Bool_t enable=kTRUE)
void AddFirst (TObject *)
void AddLast (TObject *)
void AddAt (TObject *, Int_t)
void AddAtAndExpand (TObject *, Int_t)
Int_t AddAtFree (TObject *)
void AddAfter (const TObject *, TObject *)
void AddBefore (const TObject *, TObject *)
void BypassStreamer (Bool_t bypass=kTRUE)
Bool_t CanBypassStreamer () const
void SetClass (const char *classname, Int_t size=1000)
void SetClass (const TClass *cl, Int_t size=1000)
void AbsorbObjects (TClonesArray *tc)
void MultiSort (Int_t nTCs, TClonesArray **tcs, Int_t upto=kMaxInt)
virtual TObjectRemoveAt (Int_t idx)
virtual TObjectRemove (TObject *obj)
virtual void RemoveRange (Int_t idx1, Int_t idx2)
virtual void Sort (Int_t upto=kMaxInt)
TObjectNew (Int_t idx)
TObjectAddrAt (Int_t idx)
TObject *& operator[] (Int_t idx)
TObjectoperator[] (Int_t idx) const
 TClonesArray ()
 TClonesArray (const char *classname, Int_t size=1000, Bool_t call_dtor=kFALSE)
 TClonesArray (const TClass *cl, Int_t size=1000, Bool_t call_dtor=kFALSE)
 TClonesArray (const TClonesArray &tc)
virtual ~TClonesArray ()
TClonesArrayoperator= (const TClonesArray &tc)
virtual void Compress ()
virtual void Clear (Option_t *option="")
virtual void Delete (Option_t *option="")
virtual void Expand (Int_t newSize)
virtual void ExpandCreate (Int_t n)
virtual void ExpandCreateFast (Int_t n)
TClassGetClass () const
virtual void SetOwner (Bool_t enable=kTRUE)
void AddFirst (TObject *)
void AddLast (TObject *)
void AddAt (TObject *, Int_t)
void AddAtAndExpand (TObject *, Int_t)
Int_t AddAtFree (TObject *)
void AddAfter (const TObject *, TObject *)
void AddBefore (const TObject *, TObject *)
void BypassStreamer (Bool_t bypass=kTRUE)
Bool_t CanBypassStreamer () const
void SetClass (const char *classname, Int_t size=1000)
void SetClass (const TClass *cl, Int_t size=1000)
void AbsorbObjects (TClonesArray *tc)
void MultiSort (Int_t nTCs, TClonesArray **tcs, Int_t upto=kMaxInt)
virtual TObjectRemoveAt (Int_t idx)
virtual TObjectRemove (TObject *obj)
virtual void RemoveRange (Int_t idx1, Int_t idx2)
virtual void Sort (Int_t upto=kMaxInt)
TObjectNew (Int_t idx)
TObjectAddrAt (Int_t idx)
TObject *& operator[] (Int_t idx)
TObjectoperator[] (Int_t idx) const

Protected Attributes

TClassfClass
TObjArrayfKeep
 Pointer to the class.
TClassfClass
TObjArrayfKeep
 Pointer to the class.

Detailed Description

Definition at line 32 of file TClonesArray.h.


Member Enumeration Documentation

anonymous enum

Saved copies of pointers to objects.

Definition at line 39 of file TClonesArray.h.

anonymous enum

Saved copies of pointers to objects.

Definition at line 39 of file TClonesArray.h.


Constructor & Destructor Documentation

TClonesArray::TClonesArray (  ) 

TClonesArray::TClonesArray ( const char *  classname,
Int_t  size = 1000,
Bool_t  call_dtor = kFALSE 
)

Definition at line 117 of file TClonesArray.cxx.

References fKeep, and SetClass().

TClonesArray::TClonesArray ( const TClass cl,
Int_t  size = 1000,
Bool_t  call_dtor = kFALSE 
)

Definition at line 143 of file TClonesArray.cxx.

References fKeep, and SetClass().

TClonesArray::TClonesArray ( const TClonesArray tc  ) 

Definition at line 169 of file TClonesArray.cxx.

References BypassStreamer(), fClass, TObjArray::fCont, fKeep, TCollection::fSize, i, kTRUE, and TObjArray::TObjArray().

TClonesArray::~TClonesArray (  )  [virtual]

Definition at line 223 of file TClonesArray.cxx.

References TClass::Destructor(), fClass, TObjArray::fCont, fKeep, TCollection::fSize, TObject::GetObjectStat(), gObjectTable, i, if(), kFALSE, TObject::kNotDeleted, p, TObjectTable::RemoveQuietly(), SafeDelete, and SetOwner().

TClonesArray::TClonesArray (  ) 

TClonesArray::TClonesArray ( const char *  classname,
Int_t  size = 1000,
Bool_t  call_dtor = kFALSE 
)

TClonesArray::TClonesArray ( const TClass cl,
Int_t  size = 1000,
Bool_t  call_dtor = kFALSE 
)

TClonesArray::TClonesArray ( const TClonesArray tc  ) 

virtual TClonesArray::~TClonesArray (  )  [virtual]


Member Function Documentation

TClonesArray & TClonesArray::operator= ( const TClonesArray tc  ) 

Definition at line 185 of file TClonesArray.cxx.

References TObject::Error(), Expand(), fClass, TObjArray::fCont, fKeep, TCollection::fSize, TObject::GetObjectStat(), gObjectTable, TCollection::GrowBy(), i, if(), TMath::Max(), and TObjectTable::RemoveQuietly().

void TClonesArray::Compress (  )  [virtual]

Reimplemented from TObjArray.

Definition at line 287 of file TClonesArray.cxx.

References TObjArray::fCont, fKeep, TObjArray::fLast, TCollection::fSize, i, j, and R__ASSERT.

void TClonesArray::Clear ( Option_t option = ""  )  [virtual]

Reimplemented from TObjArray.

Definition at line 321 of file TClonesArray.cxx.

References TObjArray::Clear(), TObject::Clear(), TObjArray::GetEntriesFast(), i, kFALSE, n, SetOwner(), and TObjArray::UncheckedAt().

Referenced by JetEvent::Clear(), TUsrHitBuffer::Clear(), Event::Clear(), TBranchClones::GetEntry(), TPythia6::ImportParticles(), TPythia8::ImportParticles(), TGenerator::ImportParticles(), ProofEventProc::Process(), EventTree_Proc::Process(), EventTree_ProcOpt::Process(), TBranchElement::ReadLeavesClones(), tclread(), and tclwrite().

void TClonesArray::Delete ( Option_t option = ""  )  [virtual]

Reimplemented from TObjArray.

Definition at line 352 of file TClonesArray.cxx.

References TObjArray::Clear(), TObjArray::fCont, TCollection::fSize, TObject::GetDtorOnly(), i, kFALSE, TObject::kNotDeleted, TObject::SetDtorOnly(), SetOwner(), and TObject::TestBit().

Referenced by TCloneshit::Clear(), and TTVSession::~TTVSession().

void TClonesArray::Expand ( Int_t  newSize  )  [virtual]

Reimplemented from TObjArray.

Definition at line 378 of file TClonesArray.cxx.

References TObject::Error(), TObjArray::fCont, fKeep, TCollection::fSize, TObject::GetObjectStat(), gObjectTable, i, if(), and TObjectTable::RemoveQuietly().

Referenced by AbsorbObjects(), ExpandCreate(), ExpandCreateFast(), operator=(), and operator[]().

void TClonesArray::ExpandCreate ( Int_t  n  )  [virtual]

Definition at line 405 of file TClonesArray.cxx.

References TObject::Error(), Expand(), fClass, TObjArray::fCont, fKeep, TCollection::fSize, TCollection::GrowBy(), i, TObject::kNotDeleted, TMath::Max(), TClass::New(), and TObject::TestBit().

void TClonesArray::ExpandCreateFast ( Int_t  n  )  [virtual]

Definition at line 446 of file TClonesArray.cxx.

References Expand(), fClass, TObjArray::fCont, fKeep, TCollection::GrowBy(), TObject::kNotDeleted, TMath::Max(), TClass::New(), and TObject::TestBit().

Referenced by TBranchClones::GetEntry(), and TBranchElement::ReadLeavesClones().

TClass* TClonesArray::GetClass (  )  const [inline]

Definition at line 57 of file TClonesArray.h.

References fClass.

Referenced by ROOT::TTreeProxyGenerator::AnalyzeElement(), TTreeFormula::GetLeafWithDatamember(), TBranchElement::Init(), TBranchClones::Init(), TTreeFormula::ParseWithLeaf(), TBranchObject::SetAddress(), ROOT::TBranchProxy::Setup(), and TClonesArraySetItem().

void TClonesArray::SetOwner ( Bool_t  enable = kTRUE  )  [virtual]

Reimplemented from TCollection.

Definition at line 626 of file TClonesArray.cxx.

Referenced by Clear(), Delete(), and ~TClonesArray().

void TClonesArray::AddFirst ( TObject  )  [inline, virtual]

Reimplemented from TObjArray.

Definition at line 60 of file TClonesArray.h.

References TObject::MayNotUse().

void TClonesArray::AddLast ( TObject  )  [inline, virtual]

Reimplemented from TObjArray.

Definition at line 61 of file TClonesArray.h.

References TObject::MayNotUse().

void TClonesArray::AddAt ( TObject ,
Int_t   
) [inline, virtual]

Reimplemented from TObjArray.

Definition at line 62 of file TClonesArray.h.

References TObject::MayNotUse().

void TClonesArray::AddAtAndExpand ( TObject ,
Int_t   
) [inline, virtual]

Reimplemented from TObjArray.

Definition at line 63 of file TClonesArray.h.

References TObject::MayNotUse().

Int_t TClonesArray::AddAtFree ( TObject  )  [inline, virtual]

Reimplemented from TObjArray.

Definition at line 64 of file TClonesArray.h.

References TObject::MayNotUse().

void TClonesArray::AddAfter ( const TObject ,
TObject  
) [inline, virtual]

Reimplemented from TObjArray.

Definition at line 65 of file TClonesArray.h.

References TObject::MayNotUse().

void TClonesArray::AddBefore ( const TObject ,
TObject  
) [inline, virtual]

Reimplemented from TObjArray.

Definition at line 66 of file TClonesArray.h.

References TObject::MayNotUse().

void TClonesArray::BypassStreamer ( Bool_t  bypass = kTRUE  ) 

Definition at line 253 of file TClonesArray.cxx.

References kBypassStreamer, TObject::ResetBit(), and TObject::SetBit().

Referenced by SetClass(), TClonesArray(), and tclwrite().

Bool_t TClonesArray::CanBypassStreamer (  )  const [inline]

Definition at line 68 of file TClonesArray.h.

References kBypassStreamer, and TObject::TestBit().

void TClonesArray::SetClass ( const char *  classname,
Int_t  size = 1000 
)

Definition at line 617 of file TClonesArray.cxx.

References TClass::GetClass().

Referenced by TClonesArray().

void TClonesArray::SetClass ( const TClass cl,
Int_t  size = 1000 
)

Definition at line 568 of file TClonesArray.cxx.

References BypassStreamer(), xmlio::Class, classname, TObject::Error(), fClass, fKeep, TClass::InheritsFrom(), kTRUE, TObject::MakeZombie(), name, TCollection::SetName(), snprintf, and TObjArray::TObjArray().

void TClonesArray::AbsorbObjects ( TClonesArray tc  ) 

Definition at line 875 of file TClonesArray.cxx.

References TSeqCollection::Changed(), TObject::Compare(), TObject::Error(), Expand(), fClass, TObjArray::fCont, fKeep, TObjArray::fLast, TObjArray::GetEntriesFast(), i, TSeqCollection::IsSorted(), TObjArray::Last(), and NULL.

void TClonesArray::MultiSort ( Int_t  nTCs,
TClonesArray **  tcs,
Int_t  upto = kMaxInt 
)

Definition at line 914 of file TClonesArray.cxx.

References b, TObject::Error(), TObjArray::fCont, fKeep, TObjArray::fLast, TSeqCollection::fSorted, TObjArray::GetAbsLast(), TObjArray::GetEntriesFast(), i, TCollection::IsSortable(), kTRUE, TMath::Min(), nentries, TSeqCollection::ObjCompare(), and TSeqCollection::QSort().

TObject * TClonesArray::RemoveAt ( Int_t  idx  )  [virtual]

Reimplemented from TObjArray.

Definition at line 474 of file TClonesArray.cxx.

References TObjArray::BoundsOk(), TSeqCollection::Changed(), TObjArray::fCont, TObjArray::fLast, TObjArray::fLowerBound, TObject::GetDtorOnly(), i, TObject::kNotDeleted, TObject::SetDtorOnly(), and TObject::TestBit().

Referenced by TTVSession::RemoveLastRecord(), and TClonesArraySetItem().

TObject * TClonesArray::Remove ( TObject obj  )  [virtual]

Reimplemented from TObjArray.

Definition at line 504 of file TClonesArray.cxx.

References TSeqCollection::Changed(), TObjArray::fCont, TObjArray::fLast, TObjArray::fLowerBound, TObject::GetDtorOnly(), i, TObjArray::IndexOf(), TObject::kNotDeleted, TObject::SetDtorOnly(), and TObject::TestBit().

void TClonesArray::RemoveRange ( Int_t  idx1,
Int_t  idx2 
) [virtual]

Reimplemented from TObjArray.

Definition at line 533 of file TClonesArray.cxx.

References TObjArray::BoundsOk(), TSeqCollection::Changed(), TObjArray::fCont, TObjArray::fLast, TObjArray::fLowerBound, TObject::GetDtorOnly(), kFALSE, TObject::kNotDeleted, kTRUE, and TObject::SetDtorOnly().

void TClonesArray::Sort ( Int_t  upto = kMaxInt  )  [virtual]

Reimplemented from TObjArray.

Definition at line 636 of file TClonesArray.cxx.

References TObject::Error(), TObjArray::fCont, fKeep, TObjArray::fLast, TObjArray::fLowerBound, TSeqCollection::fSorted, TObjArray::GetAbsLast(), i, TCollection::IsSortable(), kTRUE, TMath::Min(), nentries, and TSeqCollection::QSort().

TObject * TClonesArray::New ( Int_t  idx  ) 

Definition at line 852 of file TClonesArray.cxx.

References TObject::Error(), fClass, and TClass::New().

TObject * TClonesArray::AddrAt ( Int_t  idx  )  [inline]

Definition at line 87 of file TClonesArray.h.

References operator[]().

TObject *& TClonesArray::operator[] ( Int_t  idx  )  [virtual]

Reimplemented from TObjArray.

Definition at line 806 of file TClonesArray.cxx.

References TSeqCollection::Changed(), TObject::Error(), Expand(), fClass, TObjArray::fCont, fKeep, TObjArray::fLast, TObjArray::GetAbsLast(), TCollection::GrowBy(), TMath::Max(), TStorage::ObjectAlloc(), and TClass::Size().

Referenced by AddrAt().

TObject * TClonesArray::operator[] ( Int_t  idx  )  const [virtual]

Reimplemented from TObjArray.

Definition at line 839 of file TClonesArray.cxx.

References TObject::Error(), and TObjArray::fCont.

TClonesArray& TClonesArray::operator= ( const TClonesArray tc  ) 

virtual void TClonesArray::Compress (  )  [virtual]

Reimplemented from TObjArray.

virtual void TClonesArray::Clear ( Option_t option = ""  )  [virtual]

Reimplemented from TObjArray.

virtual void TClonesArray::Delete ( Option_t option = ""  )  [virtual]

Reimplemented from TObjArray.

virtual void TClonesArray::Expand ( Int_t  newSize  )  [virtual]

Reimplemented from TObjArray.

virtual void TClonesArray::ExpandCreate ( Int_t  n  )  [virtual]

virtual void TClonesArray::ExpandCreateFast ( Int_t  n  )  [virtual]

TClass* TClonesArray::GetClass (  )  const [inline]

Definition at line 57 of file TClonesArray.h.

References fClass.

virtual void TClonesArray::SetOwner ( Bool_t  enable = kTRUE  )  [virtual]

Reimplemented from TCollection.

void TClonesArray::AddFirst ( TObject  )  [inline, virtual]

Reimplemented from TObjArray.

Definition at line 60 of file TClonesArray.h.

References TObject::MayNotUse().

void TClonesArray::AddLast ( TObject  )  [inline, virtual]

Reimplemented from TObjArray.

Definition at line 61 of file TClonesArray.h.

References TObject::MayNotUse().

void TClonesArray::AddAt ( TObject ,
Int_t   
) [inline, virtual]

Reimplemented from TObjArray.

Definition at line 62 of file TClonesArray.h.

References TObject::MayNotUse().

void TClonesArray::AddAtAndExpand ( TObject ,
Int_t   
) [inline, virtual]

Reimplemented from TObjArray.

Definition at line 63 of file TClonesArray.h.

References TObject::MayNotUse().

Int_t TClonesArray::AddAtFree ( TObject  )  [inline, virtual]

Reimplemented from TObjArray.

Definition at line 64 of file TClonesArray.h.

References TObject::MayNotUse().

void TClonesArray::AddAfter ( const TObject ,
TObject  
) [inline, virtual]

Reimplemented from TObjArray.

Definition at line 65 of file TClonesArray.h.

References TObject::MayNotUse().

void TClonesArray::AddBefore ( const TObject ,
TObject  
) [inline, virtual]

Reimplemented from TObjArray.

Definition at line 66 of file TClonesArray.h.

References TObject::MayNotUse().

void TClonesArray::BypassStreamer ( Bool_t  bypass = kTRUE  ) 

Bool_t TClonesArray::CanBypassStreamer (  )  const [inline]

Definition at line 68 of file TClonesArray.h.

References kBypassStreamer, and TObject::TestBit().

void TClonesArray::SetClass ( const char *  classname,
Int_t  size = 1000 
)

void TClonesArray::SetClass ( const TClass cl,
Int_t  size = 1000 
)

void TClonesArray::AbsorbObjects ( TClonesArray tc  ) 

void TClonesArray::MultiSort ( Int_t  nTCs,
TClonesArray **  tcs,
Int_t  upto = kMaxInt 
)

virtual TObject* TClonesArray::RemoveAt ( Int_t  idx  )  [virtual]

Reimplemented from TObjArray.

virtual TObject* TClonesArray::Remove ( TObject obj  )  [virtual]

Reimplemented from TObjArray.

virtual void TClonesArray::RemoveRange ( Int_t  idx1,
Int_t  idx2 
) [virtual]

Reimplemented from TObjArray.

virtual void TClonesArray::Sort ( Int_t  upto = kMaxInt  )  [virtual]

Reimplemented from TObjArray.

TObject* TClonesArray::New ( Int_t  idx  ) 

TObject* TClonesArray::AddrAt ( Int_t  idx  ) 

TObject*& TClonesArray::operator[] ( Int_t  idx  )  [virtual]

Reimplemented from TObjArray.

TObject* TClonesArray::operator[] ( Int_t  idx  )  const [virtual]

Reimplemented from TObjArray.


Member Data Documentation

TClass* TClonesArray::fClass [protected]

Definition at line 35 of file TClonesArray.h.

Referenced by AbsorbObjects(), ExpandCreate(), ExpandCreateFast(), GetClass(), New(), operator=(), operator[](), SetClass(), TClonesArray(), and ~TClonesArray().

TObjArray* TClonesArray::fKeep [protected]

Pointer to the class.

Definition at line 36 of file TClonesArray.h.

Referenced by AbsorbObjects(), Compress(), Expand(), ExpandCreate(), ExpandCreateFast(), MultiSort(), operator=(), operator[](), SetClass(), Sort(), TClonesArray(), and ~TClonesArray().

TClass* TClonesArray::fClass [protected]

Definition at line 35 of file TClonesArray.h.

TObjArray* TClonesArray::fKeep [protected]

Pointer to the class.

Definition at line 36 of file TClonesArray.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:35:39 2011 for ROOT_528-00b_version by  doxygen 1.5.1