Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

caf_util::TRefFinder Class Reference

This class loop over all tracks or vertecis and find object matched to the TRef unique ID. No longer needed. More...

#include <TRefFinder.hpp>

List of all members.

Public Member Functions

 TRefFinder ()
virtual ~TRefFinder ()
void setDebug (int debug)
void setTrackBranchName (const std::string name)
void setVertexBranchName (const std::string name)
void SetVariablesTrack (const cafe::Variables &vars)
void addTrackVariable (const std::string &name)
void SetVariablesVertex (const cafe::Variables &vars)
void addVertexVariable (const std::string &name)
const TMBTrackFindTrack (cafe::Event &event, const TRef &ref) const
const TMBPrimaryVertexFindVertex (cafe::Event &event, const TRef &ref) const
 ClassDef (TRefFinder, 0)

Private Attributes

std::string _trackBranch
std::string _vertexBranch
cafe::Variables _trvars
cafe::Variables _vtxvars
int _debug


Detailed Description

This class loop over all tracks or vertecis and find object matched to the TRef unique ID. No longer needed.

The method FindTrack will find the track using the TRef, if the TRef constaind the valid unique ID. This will only work if the root file was written with only one process ID, this means during one ROOT session. Usually this is the case for the CSG caf tree production and not valid for the file merged from the several production files.

Usage:

Definition at line 32 of file TRefFinder.hpp.


Constructor & Destructor Documentation

caf_util::TRefFinder::TRefFinder  ) 
 

Definition at line 8 of file TRefFinder.cpp.

virtual caf_util::TRefFinder::~TRefFinder  )  [inline, virtual]
 

Definition at line 41 of file TRefFinder.hpp.


Member Function Documentation

void caf_util::TRefFinder::addTrackVariable const std::string &  name  )  [inline]
 

Definition at line 49 of file TRefFinder.hpp.

References _trvars, and cafe::Variables::add().

void caf_util::TRefFinder::addVertexVariable const std::string &  name  )  [inline]
 

Definition at line 51 of file TRefFinder.hpp.

References _vtxvars, and cafe::Variables::add().

caf_util::TRefFinder::ClassDef TRefFinder  ,
 

const TMBTrack * caf_util::TRefFinder::FindTrack cafe::Event event,
const TRef &  ref
const
 

Definition at line 12 of file TRefFinder.cpp.

References _debug, _trackBranch, _trvars, cafe::Collection< T >::begin(), cafe::Collection< T >::end(), and cafe::EventBase::getCollection().

Referenced by caf_util::VertexSelector::selectObject(), and caf_util::ElectronSelector::selectObject().

const TMBPrimaryVertex * caf_util::TRefFinder::FindVertex cafe::Event event,
const TRef &  ref
const
 

Definition at line 46 of file TRefFinder.cpp.

References _vertexBranch, _vtxvars, cafe::Collection< T >::begin(), cafe::Collection< T >::end(), and cafe::EventBase::getCollection().

void caf_util::TRefFinder::setDebug int  debug  )  [inline]
 

Definition at line 43 of file TRefFinder.hpp.

References _debug.

Referenced by caf_util::VertexSelector::begin().

void caf_util::TRefFinder::setTrackBranchName const std::string  name  )  [inline]
 

Definition at line 45 of file TRefFinder.hpp.

References _trackBranch.

void caf_util::TRefFinder::SetVariablesTrack const cafe::Variables vars  )  [inline]
 

Definition at line 48 of file TRefFinder.hpp.

References _trvars.

Referenced by caf_util::ElectronSelector::ElectronSelector(), and caf_util::VertexSelector::VertexSelector().

void caf_util::TRefFinder::SetVariablesVertex const cafe::Variables vars  )  [inline]
 

Definition at line 50 of file TRefFinder.hpp.

References _vtxvars.

void caf_util::TRefFinder::setVertexBranchName const std::string  name  )  [inline]
 

Definition at line 46 of file TRefFinder.hpp.

References _vertexBranch.


Member Data Documentation

int caf_util::TRefFinder::_debug [private]
 

Definition at line 38 of file TRefFinder.hpp.

Referenced by FindTrack(), and setDebug().

std::string caf_util::TRefFinder::_trackBranch [private]
 

Definition at line 34 of file TRefFinder.hpp.

Referenced by FindTrack(), and setTrackBranchName().

cafe::Variables caf_util::TRefFinder::_trvars [private]
 

Definition at line 36 of file TRefFinder.hpp.

Referenced by addTrackVariable(), FindTrack(), and SetVariablesTrack().

std::string caf_util::TRefFinder::_vertexBranch [private]
 

Definition at line 35 of file TRefFinder.hpp.

Referenced by FindVertex(), and setVertexBranchName().

cafe::Variables caf_util::TRefFinder::_vtxvars [private]
 

Definition at line 37 of file TRefFinder.hpp.

Referenced by addVertexVariable(), FindVertex(), and SetVariablesVertex().


The documentation for this class was generated from the following files:
Generated on Tue Mar 28 10:13:10 2006 for CAF by doxygen 1.3.4