AliPhysics  f05a842 (f05a842)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ReadWeights.C
Go to the documentation of this file.
1 void ReadWeights(const char* filename="weights.root")
2 {
3  gSystem->AddIncludePath("-I${ALICE_ROOT}/include -I${ALICE_PHYSICS}/include");
4  gROOT->LoadMacro("AliAODTracklet.C+g");
5  gROOT->LoadMacro("AliTrackletWeights.C+g");
6 
7  TFile* file = TFile::Open(filename,"READ");
8  file->ls();
9  AliTrackletBaseWeights* weights =
10  static_cast<AliTrackletBaseWeights*>(file->Get("weights"));
11  TCanvas* c = new TCanvas("c","c");
12  weights->Draw();
13 }
14 
const char * filename
Definition: TestFCM.C:1
TSystem * gSystem
TCanvas * c
Definition: TestFitELoss.C:172
void ReadWeights(const char *filename="weights.root")
Definition: ReadWeights.C:1
TFile * file