[ROOT] TCut array

From: Elena Vataga (vataga@fnal.gov)
Date: Mon May 06 2002 - 14:38:32 MEST


	Dear rooters,

Is it possible to define Array of TCuts?
I tried to make the following - and it does not work:

{
gROOT->Reset();

TFile *f    = new TFile("exe.root");
TTree *dt = (TTree*)f->Get("probe");

char name[100];
const Int_t n = 9;
TCut Ctrk[n];
Float_t x;

TCanvas* can= new TCanvas("can","TCut test");
can->Divide(3,3);

for (i=0;i<n;i++) {
  can->cd(i+1);
  x = 10.*i;
  sprintf(name,"N_Trk < ",x);
  Ctrk[i] = name;
  dt->Draw("M_eff", Ctrk[i]);
}
 f->Close();
}


	Thank you in advance,
				Elena Vataga



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:52 MET