AliPhysics  2c6b7ad (2c6b7ad)
ReadWeights.C
Go to the documentation of this file.
1 
23 void ReadWeights(const char* filename="weights.root")
24 {
25  gSystem->AddIncludePath("-I${ALICE_ROOT}/include -I${ALICE_PHYSICS}/include");
26  gROOT->LoadMacro("AliAODTracklet.C+g");
27  gROOT->LoadMacro("AliTrackletWeights.C+g");
28 
29  TFile* file = TFile::Open(filename,"READ");
30  file->ls();
31  AliTrackletBaseWeights* weights =
32  static_cast<AliTrackletBaseWeights*>(file->Get("weights"));
33  TCanvas* c = new TCanvas("c","c");
34  weights->Draw();
35 }
36 
37 /* @} */
38 //
39 // EOF
40 //
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:23
TFile * file
TList with histograms for a given trigger.