/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/src/analyse/Iro/merge_ntuples.C File Reference

#include <iostream>
#include <cmath>
#include <string>
#include "TChain.h"
#include "TFile.h"
#include "TString.h"

Include dependency graph for merge_ntuples.C:

Go to the source code of this file.

Functions

void merge_ntuples ()


Function Documentation

void merge_ntuples (  ) 

Definition at line 9 of file merge_ntuples.C.

00009                     {
00010   
00011   TString energy[13]={"715695","715692","715699","715702","715747","715748","715750","715752","715754","715756","715757","715758","715759"};
00012   
00013   TChain *chain = new TChain("Pions");
00014   
00015   for (int i=0; i<13; i++){
00016     TString filename ="/home1/karyotak/MyData/rootfiles/DSTPions"+energy[i]+"EM.root";
00017     cout << i << " " << filename << endl;
00018     chain->Add(filename);
00019   }
00020   chain->Draw("Ebeam");
00021   TFile *f1=new TFile("DSTPionsAllEM.root","recreate");
00022   f1->cd();
00023   chain->Write();
00024 }


Generated on Mon Jan 7 13:16:55 2013 for MicromegasFramework by  doxygen 1.4.7