Selector.cpp

Go to the documentation of this file.
00001 
00002 #include "cafe/Selector.hpp"
00003 
00004 namespace cafe {
00005 
00006 
00007     Selector::Selector(const char *name)
00008         : Controller(name),
00009           TSelector(),
00010           _tree(0)
00011     {
00012     }
00013 
00014     void Selector::Begin(TTree *tree)
00015     {
00016         begin();
00017     }
00018 
00019     void Selector::Init(TTree *tree)
00020     {
00021         _tree = tree;
00022         _event.setBranchAddresses(tree);
00023         inputFileOpened(tree->GetCurrentFile());
00024     }
00025 
00026     void Selector::Terminate()
00027     {
00028         finish();
00029     }
00030 
00031 
00032     Bool_t Selector::Process(Entry_t entry)
00033     {
00034         _tree->LoadTree(entry);
00035         return processEvent(_event);
00036     }
00037 
00038     Int_t Selector::Version() const
00039     {
00040         return 1;
00041     }
00042 
00043 }
00044 
00045 ClassImp(cafe::Selector)

Generated on Thu Apr 3 04:14:23 2008 for CAF by doxygen 1.3.4