PandaTree
Public Member Functions | Protected Attributes | List of all members
panda::Element::datastore Struct Reference

#include <Element.h>

Inheritance diagram for panda::Element::datastore:
panda::PackedTrack::datastore panda::Particle::datastore panda::Proton::datastore panda::SuperCluster::datastore panda::TPPair::datastore panda::Vertex::datastore panda::GenParticleBase::datastore panda::PackedParticle::datastore panda::ParticleM::datastore panda::ParticleP::datastore panda::PFCandBase::datastore panda::RecoVertex::datastore panda::GenParticle::datastore panda::UnpackedGenParticle::datastore panda::HLTObject::datastore panda::GenJet::datastore panda::MicroJet::datastore panda::Parton::datastore panda::SecondaryVertex::datastore panda::Tau::datastore panda::Lepton::datastore panda::Photon::datastore panda::PFCand::datastore panda::UnpackedPFCand::datastore

Public Member Functions

virtual void allocate (UInt_t n)
 
virtual void deallocate ()
 
virtual void setStatus (TTree &, TString const &, utils::BranchList const &)
 
virtual utils::BranchList getStatus (TTree &, TString const &) const
 
virtual utils::BranchList getBranchNames (TString const &="") const
 
virtual void setAddress (TTree &, TString const &, utils::BranchList const &={"*"}, Bool_t setStatus=kTRUE)
 
virtual void book (TTree &, TString const &, utils::BranchList const &={"*"}, Bool_t dynamic=kTRUE)
 
virtual void releaseTree (TTree &, TString const &)
 
UInt_t nmax () const
 
virtual void resizeVectors_ (UInt_t)
 Override when there are vector members. More...
 

Protected Attributes

UInt_t nmax_
 

Detailed Description

Actual arrays and vectors written to the tree are members of datastore. For example, given a tree with branches particle.size/i particle.pt[particle.size]/F the Particle datastore will have Float_t pt[N]; which gets written to / read from the tree. The i-th Particle instance on the other hand has Float_t& pt; which is a reference to datastore::pt[i].

Member Function Documentation

§ resizeVectors_()

virtual void panda::Element::datastore::resizeVectors_ ( UInt_t  )
inlinevirtual

The documentation for this struct was generated from the following file: