BTagJetBrowsable Class Reference

#include <BTagJetBrowsable.hpp>

List of all members.

Public Member Functions

 ~BTagJetBrowsable ()
const char * GetDraw ()
void Browse (TBrowser *b)
 Browse.


Static Public Member Functions

Int_t GetBrowsables (TList &list, const TBranch *branch, const TVirtualBranchBrowsable *parent=0)
 GetBrowsables.

void Register ()
void Unregister ()

Protected Member Functions

 BTagJetBrowsable (const char *name, const char *title, const char *draw, const TBranch *branch, const TVirtualBranchBrowsable *parent=0)

Private Member Functions

 ClassDef (BTagJetBrowsable, 0)

Private Attributes

TString fDraw


Constructor & Destructor Documentation

BTagJetBrowsable::~BTagJetBrowsable  )  [inline]
 

Definition at line 16 of file BTagJetBrowsable.hpp.

BTagJetBrowsable::BTagJetBrowsable const char *  name,
const char *  title,
const char *  draw,
const TBranch *  branch,
const TVirtualBranchBrowsable *  parent = 0
[inline, protected]
 

Definition at line 33 of file BTagJetBrowsable.hpp.

References fDraw.

Referenced by GetBrowsables().


Member Function Documentation

void BTagJetBrowsable::Browse TBrowser *  b  ) 
 

Browse.

This is the method that gets called to actually do the browsing/drawing when the user double clicks on our TBrowser element. We just use the TTree to do all the work, built from our special Draw string (that we've cached).

Definition at line 137 of file BTagJetBrowsable.cpp.

References GetDraw().

BTagJetBrowsable::ClassDef BTagJetBrowsable  ,
[private]
 

Int_t BTagJetBrowsable::GetBrowsables TList &  li,
const TBranch *  branch,
const TVirtualBranchBrowsable *  parent = 0
[static]
 

GetBrowsables.

If this is a list of TMBJets, then we can add our special accessor functions!

See if the colleciton we are looking at contains TMBJets. If so, then we will want to add our stuff.

This browsable mechanism works by generating a string you can pass to the TTree::Draw function. So we have to build it up. Unfortunately, there isn't anything easy about doing that, so we have to do it by hand, here.

This code stolen from TCollectionBrowsable by Axel!

Weird. Not browsable. Outta here.

We now have the basic draw string ready to append our stuff to...

Definition at line 37 of file BTagJetBrowsable.cpp.

References BTagJetBrowsable().

Referenced by ClassImp(), and Unregister().

const char* BTagJetBrowsable::GetDraw  )  [inline]
 

Definition at line 21 of file BTagJetBrowsable.hpp.

References fDraw.

Referenced by Browse().

void BTagJetBrowsable::Register  )  [static]
 

void BTagJetBrowsable::Unregister  )  [static]
 

Definition at line 28 of file BTagJetBrowsable.cpp.

References GetBrowsables().


Member Data Documentation

TString BTagJetBrowsable::fDraw [private]
 

Definition at line 40 of file BTagJetBrowsable.hpp.

Referenced by BTagJetBrowsable(), and GetDraw().


The documentation for this class was generated from the following files:
Generated on Thu Apr 3 04:14:25 2008 for CAF by doxygen 1.3.4