AliPhysics  026afea (026afea)
 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()
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("weights.root","READ");
8  file->ls();
9  AliTrackletWeights* weights =
10  static_cast<AliTrackletWeights*>(file->Get("weights"));
11  TCanvas* c = new TCanvas("c","c");
12  weights->Draw();
13 }
14 
TSystem * gSystem
void Draw(Option_t *option="")
TCanvas * c
Definition: TestFitELoss.C:172
TFile * file
void ReadWeights()
Definition: ReadWeights.C:1