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;}
77 virtual StatusCode getTreeNr(
const std::string treename,
unsigned int& treenr,
bool doAdd=
false);
79 virtual TTree* getTree(
const std::string treename);
81 virtual TTree* getOtherTree(
const std::string treename);
83 virtual StatusCode createTree(
unsigned int treenr,
const std::string treename);
89 std::vector<TTree *> m_otherTrees;
91 std::vector<TFile *> inputFiles;
93 std::vector<std::string> m_fileNames;
94 std::string m_currentFileName;
96 std::vector<std::string> m_tagInputFile;
104 std::vector<std::string> m_treenames;
106 std::vector<std::string> m_inputFilenames;
108 std::vector<std::string> m_outputFilenames;
110 std::vector<TTree *> m_inputTrees;
112 std::vector<TTree *> m_outputTrees;
114 std::vector<TFile *> m_inputFiles;
116 std::vector<TFile *> m_outputFiles;
118 std::vector<int> m_splitModes;
120 std::vector<int> m_bufSizes;
122 std::vector<int> m_compressionLevels;
126 TClonesArray *m_branches;
129 TClonesArray *m_branchesRead;
143 std::vector<std::string> m_jobOptions;
144 std::string m_bossVer;
145 std::string m_decayOptions;
146 std::vector<int> m_totEvtNo;
150 std::vector<std::string> m_single_treenames;
151 std::vector<std::string> m_single_outputFileNames;
152 std::vector<TFile *> m_single_outputFiles;
153 std::vector<TTree *> m_single_outputTrees;
154 std::vector<int> m_single_splitModes;
155 std::vector<int> m_single_bufSizes;
156 std::vector<int> m_single_compressionLevels;
159 virtual StatusCode
f_addOutput(
const std::string& treename,
160 const std::string&
file,
161 int splitx = 1,
int bufsize = 64000,
162 int compression = 1);
164 const std::string treename);
166 const std::string& branchname,
167 const char *classname,
168 void *addr,
int & branchnr);
169 virtual StatusCode
f_getTreeNr(
const std::string treename,
170 unsigned int& treenr,
bool doAdd=
false);
virtual std::vector< int > getTotEvtNo()
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 int getTotalFileNum()
virtual std::string getJobOptions()
virtual StatusCode getBranchEntry(int nr, int entry, int &nb)
get entry from this branch
virtual StatusCode f_fillTrees()
virtual bool getSelectFromTag()
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 void setTagInputFile(std::vector< std::string > input)
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 std::vector< std::string > getTagInputFile()
virtual StatusCode fillTrees()
fill in all trees
virtual int getCurrentFileNum()
virtual StatusCode f_createTree(unsigned int treenr, const std::string treename)
virtual void setSelectFromTag(bool temp)
virtual std::string getCurrentFileName()
virtual std::string getDecayOptions()