1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
|
|
// $Id: TreeBranchLoader.h 2950 2006-06-16 16:26:16Z loizides $
|
3 |
|
|
//
|
4 |
|
|
// TreeBranchLoader
|
5 |
|
|
//
|
6 |
|
|
// TAM plugin that loads data from single tree branches
|
7 |
|
|
// into memory. We use our customed tree data loader in order
|
8 |
|
|
// to reset the contents of the collections and cached pointers
|
9 |
|
|
// properly on each entry.
|
10 |
|
|
//
|
11 |
|
|
// Authors: C.Loizides
|
12 |
|
|
//--------------------------------------------------------------------------------------------------
|
13 |
|
|
|
14 |
|
|
#ifndef TREEMOD_TREEBRANCHLOADER_H
|
15 |
|
|
#define TREEMOD_TREEBRANCHLOADER_H
|
16 |
|
|
|
17 |
|
|
#include "MitAna/TAM/interface/TAMTreeBranchLoader.h"
|
18 |
|
|
|
19 |
|
|
namespace mithep {
|
20 |
|
|
class TreeBranchLoader : public TAMTreeBranchLoader {
|
21 |
|
|
protected:
|
22 |
|
|
Bool_t fDoReset; //=true if Collection::Reset() must be called
|
23 |
|
|
|
24 |
|
|
public:
|
25 |
|
|
TreeBranchLoader(TAMBranchInfo *binfo);
|
26 |
|
|
~TreeBranchLoader() {};
|
27 |
|
|
|
28 |
|
|
void Clear(Option_t *option="");
|
29 |
|
|
Bool_t Notify(TTree *tree);
|
30 |
|
|
|
31 |
|
|
ClassDef(TreeBranchLoader,0) // TAM plugin to load data from a single branch
|
32 |
|
|
};
|
33 |
|
|
}
|
34 |
|
|
#endif
|