#include <string>
#include <sstream>
#include <iostream>
#include <vector>
#include <TFile.h>
#include <TTree.h>
#include <TChain.h>
#include <TObject.h>
using namespace std;
class Rgetfiles {
private:
TChain * calibtree;
public:
Rgetfiles(){};
~Rgetfiles();
TTree * filelistopen(char * files, char * treename = "calibTree");
};
TTree * Rgetfiles::filelistopen(char * files, char * treename){
FILE *fp=fopen(files,"r");
char filename[200];
cout << "Adding files" << endl;
calibtree = new TChain(treename);
while(fscanf(fp,"%s/n",filename)!=EOF){
cout<<filename<<endl;
calibtree->Add(filename);
}
return calibtree;
}
Rgetfiles::~Rgetfiles(){delete calibtree;}
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.