AliPhysics  6cf2591 (6cf2591)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ReadWeights.C
Go to the documentation of this file.
1 
17 void ReadWeights(const char* filename="weights.root")
18 {
19  gSystem->AddIncludePath("-I${ALICE_ROOT}/include -I${ALICE_PHYSICS}/include");
20  gROOT->LoadMacro("AliAODTracklet.C+g");
21  gROOT->LoadMacro("AliTrackletWeights.C+g");
22 
23  TFile* file = TFile::Open(filename,"READ");
24  file->ls();
25  AliTrackletBaseWeights* weights =
26  static_cast<AliTrackletBaseWeights*>(file->Get("weights"));
27  TCanvas* c = new TCanvas("c","c");
28  weights->Draw();
29 }
30 
31 /* @} */
32 //
33 // EOF
34 //
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:17
TFile * file