StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
makeTTPlots.C
1 void makeTTPlots(const Char_t *tag = "Plots") {
2 // test data file:
4  int err2 = gROOT->LoadMacro("Xdcor.C++");
5  cout << ".L Xdcor.C++ is done: " << err2 << endl;
6  if (err2) return;
7  int err1 = gROOT->LoadMacro("TT.C++");
8  cout << ".L TT.C++ is done: " << err1 << endl;
9  if (err1) return;
10 
11  TString FileN(gDirectory->GetName());
12  gInterpreter->ProcessLine(".L Chain.C");
13  TChain *theChain = Chain();
14  cout << "Chain pointer: " << theChain << endl;
15  TreeClass *t = new TreeClass((TTree*)theChain);
16  cout << "TreeClass object t is constructed" << endl;
17  TString Out = gSystem->DirName(FileN); cout << Out << endl;
18  TString Dir = gSystem->DirName(Out);
19  if (Out.BeginsWith("/")) Out = Out.Data()+1;
20  Out.ReplaceAll("/","_");
21  Out += tag;
22  TString Tag(tag);
23  t->SetMinNoFitPoints(25);
24  Out += "TBNFP25";
25  Out += Form("rCut%imm",(int)(t->GetRCut()*10.));
26  Out += ".root";
27  cout << " ===> " << Out << endl;
28  t->SetOutFileName(Out);
29  t->Loop();
30  delete t; t=0;
31 }
Definition: TT.h:19