SLAC PEP-II
BABAR
SLAC<->RAL
Babar logo
HEPIC E,S & H Databases PDG HEP preprints
Organization Detector Computing Physics Documentation
Personnel Glossary Sitemap Search Hypernews
Unwrap page!
Comp. Search
Who's who?
Meetings
FAQ Homepage
Archive
Environment
Administration
New User Info.
Web Info/Tools
Monitoring
Training
Tools & Utils
Programming
C++ Standard
SRT, AFS, CVS
QA and QC
Remedy
Histogramming
Operations
PromptReco
Simulation Production
Online SW
Dataflow
Detector Control
Evt Processing
Run Control
Calibration
Databases
Offline
Workbook
Coding Standards
Simulation
Reconstruction
Prompt Reco.
BaBar Grid
Data Distribution
Beta & BetaTools
Kanga & Root
Analysis Tools
RooFit Toolkit
Data Management
Data Quality
Event display
Event Browser
Code releases
Databases
Check this page for HTML 4.01 Transitional compliance with the
W3C Validator
(More checks...)
#include "KanEventSource.hh"

KanEventSource


class description - source file - inheritance tree (.pdf)

class KanEventSource : public KanChain

Inheritance Chart:
TObject
<-
TNamed
TAttLine
TAttFill
TAttMarker
<-
TTree
KanBranchOwner
<-
KanChain
<-
KanEventSource

    protected:
KanEventSource(const Char_t* name, KanEventReader* reader) static KanEventSource* build(const char* name) public:
virtual ~KanEventSource() virtual KanHeaderTree* Add(const Char_t* coll, const Char_t* ext = ".01") Bool_t addComponent(KanCompMap::Index idx) Bool_t addComponent(const char* name) Bool_t componentActive(KanCompMap::Index idx) const Bool_t componentBorrowed(KanCompMap::Index idx) const static KanEventSource* empty(const char* name = "0") static KanEventSource* find(const char* name) KanChain* getAod() KanBranch* getBorrowedBranch(KanCompMap::Index idx, const Char_t* branch, Bool_t& newFile) KanBranch* getBranch(KanCompMap::Index idx, const Char_t* branch) KanChain* getCnd() KanChain* getComponent(KanCompMap::Index idx) virtual Int_t GetEntry(Long64_t entry = 0, Int_t getall = 0) KanChain* getEsd() KanChain* getHdr() KanChain* getTag() KanChain* getTru() KanChain* getUsr() static void list(bool verbose = false) void listComponents() const KanEventTree* loadComponent(KanCompMap::Index idx, Bool_t& newFile) virtual Long64_t LoadTree(Long64_t entry) static KanEventSource* micro(const char* name = "0") static KanEventSource* microMC(const char* name = "0") static KanEventSource* mini(const char* name = "0") static KanEventSource* miniMC(const char* name = "0") virtual void Print(Option_t* option) const KanEventReader* reader() void removeComponent(KanCompMap::Index idx) void removeComponent(const char* name) virtual void Reset(Option_t* option) Bool_t setBranchToRead(KanHandleBase& handle) void setupFriends()

Data Members

    private:
static map<std::string,KanEventSource*> _sourceMap KanCompMap::Mask _mask The components in this source KanCompMap::Mask _borrowed The components borrowed by this source list<std::string> _collList The list of collections vector<KanChain*> _componentChains The components

Class Description



KanEventSource* micro(const char* name)
 Build an event source with these components:
 hdr usr tag cnd aod

KanEventSource* mini(const char* name)
 Build an event source with these components:
 hdr usr tag cnd aod esd

KanEventSource* microMC(const char* name)
 Build an event source with these components:
 hdr usr tag cnd aod tru

KanEventSource* miniMC(const char* name)
 Build an event source with these components:
 hdr usr tag cnd aod tru esd

KanEventSource* empty(const char* name)
 Build an event source with no components
 (they must be added by hand)

KanEventSource* find(const char* name)
 Find an event source by name

KanEventSource* build(const char* name)
 Build an event source with a give name
 Make sure this is created in the gROOT directory and not in any file

void list(bool verbose)

KanEventSource(const Char_t* name, KanEventReader* reader) :KanChain(name, KanCompMap::hdr, reader), _componentChains(KanCompMap::nCmp)

~KanEventSource()
 close all the files

Bool_t addComponent(KanCompMap::Index idx)
 Add a component to this event source

Bool_t addComponent(const char* name)
 Add a component to this event source

void removeComponent(KanCompMap::Index idx)
 Remove a component from this event source

void removeComponent(const char* name)
 Remove a component from this event source

void listComponents() const
 Print the list of components in the event source

KanEventTree* loadComponent(KanCompMap::Index idx, Bool_t& newFile)

void setupFriends()

Bool_t setBranchToRead(KanHandleBase& handle)

KanBranch* getBranch(KanCompMap::Index idx, const Char_t* branch)

KanBranch* getBorrowedBranch(KanCompMap::Index idx, const Char_t* branch, Bool_t& newFile)

KanHeaderTree* Add(const Char_t* coll, const char* ext)
 Add a collection to this event source

GetEntry(Long64_t, Int_t)
 Read the marked branches for the current entry
 Note that the input arguements are ignored

LoadTree(Long64_t entry)
 Load a particular event
 Note that this also loads the same event for all
 the component trees

void Print(Option_t *option) const
 FIXME.  Not exactly sure what to print,
 Tree structure? list of collections?

void Reset(Option_t *option)
 Clear out all the collections from this chain



Inline Functions


              KanChain* getComponent(KanCompMap::Index idx)
              KanChain* getHdr()
              KanChain* getUsr()
              KanChain* getTag()
              KanChain* getCnd()
              KanChain* getAod()
              KanChain* getTru()
              KanChain* getEsd()
                 Bool_t componentActive(KanCompMap::Index idx) const
                 Bool_t componentBorrowed(KanCompMap::Index idx) const
        KanEventReader* reader()


Author: Eric A Charles
Last update: KanEventSource.cc,v 1.24 2004/12/01 20:07:37 echarles Exp $
Copyright (C) 2003 LBNL


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

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.