ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/batch/merge_scripts/mergeDataFOHiIP.C
Revision: 1.1
Committed: Tue Jun 19 20:36:05 2012 UTC (12 years, 11 months ago) by khahn
Content type: text/plain
Branch: MAIN
CVS Tags: compiled, HEAD
Log Message:
*** empty log message ***

File Contents

# Content
1 #ifndef __CINT__
2 #include <iostream>
3 #include "SimpleLepton.h"
4 #include "TChain.h"
5 using namespace std;
6 int main(int argc, char ** argv) {
7
8 char * label = argv[1];
9 #else
10 mergeDataFO(char * label="4m") {
11 #endif
12
13 TChain * c = new TChain("FOtree");
14
15 char buf[256];
16 sprintf( buf, "%s.*.ref0.4err.root", label );
17 cout << "buf: " << buf << endl;
18 c->Add(buf);
19 sprintf( buf, "FO.%s.ref0.4err.merged.root", label );
20 c->Merge(buf);
21 }