Sometimes you just need to string ntuples together.
Read on
-- t
________________________________________________________________________________
Tancredi Botto, phone: +1-617-253-9204 mobile: +1-978-490-4124
research scientist MIT/Bates, 21 Manning Av Middleton MA, 01949
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
---------- Forwarded message ----------
Date: Thu, 31 Oct 2002 23:24:04 -0500
From: vitaliy ziskin <vziskin@yahoo.com>
To: Tancredi Botto <tancredi@lns.mit.edu>
Subject: commands for adding ntuples
TFile run1("filename1")
TFile run1("filename2")
TFile run1("filename3")
TFile run1("filename4")
TNtuple *ntp1
TNtuple *ntp2
TNtuple *ntp3
TNtuple *ntp4
ntp1 = (TNtuple*)run1.Get("eep")
ntp2 = (TNtuple*)run2.Get("eep")
ntp3 = (TNtuple*)run3.Get("eep")
ntp4 = (TNtuple*)run4.Get("eep")
ntp1->Draw("ncr>>htemp")
ntp2->Draw("ncr>>+htemp")
ntp13->Draw("ncr>>+htemp")
ntp4->Draw("ncr>>+htemp")
htemp->Draw()
// you don't need to declaire htemp
This archive was generated by hypermail 2.1.2 : Mon Feb 24 2014 - 14:07:28 EST