9#include "GaudiKernel/MsgStream.h"
10#include "GaudiKernel/IService.h"
33 virtual StatusCode
addInput(
const std::string& treename,
const std::string& file);
35 virtual StatusCode
addOutput(
const std::string& treename,
const std::string& file,
int splitx,
int bufsize,
int compression);
37 virtual StatusCode
createBranch(
const std::string& tree,
const std::string& branch ,
const char *classname,
void *addr,
int & branchnr);
40 virtual StatusCode
setBranchAddress(
const std::string treename,
const std::string branchname,
void *addr,
int& nb);
45 virtual StatusCode
getBranchEntry(
int nr,
int entry,
void * addr,
int& nb);
49 virtual bool getEOF() {
return m_EOF;}
64 virtual StatusCode getTreeNr(
const std::string treename,
unsigned int& treenr,
bool doAdd=
false);
66 virtual TTree* getTree(
const std::string treename);
68 virtual TTree* getOtherTree(
const std::string treename);
70 virtual StatusCode createTree(
unsigned int treenr,
const std::string treename);
74 std::vector<TTree *> m_otherTrees;
76 std::vector<TFile *> inputFiles;
78 std::vector<std::string> m_fileNames;
79 std::string m_currentFileName;
85 std::vector<std::string> m_treenames;
87 std::vector<std::string> m_inputFilenames;
89 std::vector<std::string> m_outputFilenames;
91 std::vector<TTree *> m_inputTrees;
93 std::vector<TTree *> m_outputTrees;
95 std::vector<TFile *> m_inputFiles;
97 std::vector<TFile *> m_outputFiles;
99 std::vector<int> m_splitModes;
101 std::vector<int> m_bufSizes;
103 std::vector<int> m_compressionLevels;
107 TClonesArray *m_branches;
110 TClonesArray *m_branchesRead;
124 std::vector<std::string> m_jobOptions;
125 std::string m_bossVer;
126 std::string m_decayOptions;
127 std::vector<int> m_totEvtNo;
131 std::vector<std::string> m_single_treenames;
132 std::vector<std::string> m_single_outputFileNames;
133 std::vector<TFile *> m_single_outputFiles;
134 std::vector<TTree *> m_single_outputTrees;
135 std::vector<int> m_single_splitModes;
136 std::vector<int> m_single_bufSizes;
137 std::vector<int> m_single_compressionLevels;
140 virtual StatusCode
f_addOutput(
const std::string& treename,
141 const std::string& file,
142 int splitx = 1,
int bufsize = 64000,
143 int compression = 1);
145 const std::string treename);
147 const std::string& branchname,
148 const char *classname,
149 void *addr,
int & branchnr);
150 virtual StatusCode
f_getTreeNr(
const std::string treename,
151 unsigned int& treenr,
bool doAdd=
false);
virtual std::vector< int > getTotEvtNo()
RootInterface(MsgStream log)
virtual StatusCode f_createBranch(const std::string &treename, const std::string &branchname, const char *classname, void *addr, int &branchnr)
virtual StatusCode f_getTreeNr(const std::string treename, unsigned int &treenr, bool doAdd=false)
virtual StatusCode f_finalize()
virtual std::string getJobOptions()
virtual StatusCode getBranchEntry(int nr, int entry, int &nb)
get entry from this branch
virtual StatusCode f_fillTrees()
virtual StatusCode finalize()
virtual bool checkEndOfTree()
check if all the files is over 2005-11-28
virtual Int_t getEntries()
get nr of entries
virtual StatusCode createBranch(const std::string &tree, const std::string &branch, const char *classname, void *addr, int &branchnr)
create a branch in this tree
virtual void printJobInfo(TFile *file, int level)
virtual bool getENDFILE()
virtual bool getEOF()
get EOF flag
virtual StatusCode setBranchAddress(const std::string treename, const std::string branchname, void *addr, int &nb)
set branch address
virtual StatusCode addInput(const std::string &treename, const std::string &file)
add input tree to the list
virtual StatusCode f_addOutput(const std::string &treename, const std::string &file, int splitx=1, int bufsize=64000, int compression=1)
static RootInterface * Instance(MsgStream log)
singleton behaviour
virtual StatusCode addOutput(const std::string &treename, const std::string &file, int splitx, int bufsize, int compression)
add output tree to the list
virtual StatusCode fillTrees()
fill in all trees
virtual StatusCode f_createTree(unsigned int treenr, const std::string treename)
virtual std::string getCurrentFileName()
virtual std::string getDecayOptions()