Last change
on this file since 632 was
286,
checked in by campagne, 18 years ago
|
ELYSE sauvegarde provisoire (JEC)
|
File size:
953 bytes
|
Rev | Line | |
---|
[286] | 1 | // Usage : |
---|
| 2 | // OS> cd <some path>/ELYSE/<version>/cmt |
---|
| 3 | // OS> source setup.csh |
---|
| 4 | // OS> ../<platform>/ELYSE_batch.exe |
---|
| 5 | // OS> root ../scripts/ROOT/ELYSE.C |
---|
| 6 | // |
---|
| 7 | // Note : |
---|
| 8 | // The ELYSE_batch.exe program produces a ELYSE.root file. |
---|
| 9 | // This file sould have been produced with the "export=root" |
---|
| 10 | // option when creating the AIDA::ITree for this file |
---|
| 11 | // (see ELYSE::Analysis constructor). |
---|
| 12 | // By default the Lab package does not stream its histograms |
---|
| 13 | // as THs of ROOT (because the AIDA histos are more rich). |
---|
| 14 | // In ordet that ROOT plot the saved histos, the Lab::Histograms |
---|
| 15 | // can be saved as THs by using the "export=root" option. |
---|
| 16 | |
---|
| 17 | { |
---|
| 18 | TFile* file = new TFile("ELYSE.root"); |
---|
| 19 | file->ls(); |
---|
| 20 | |
---|
| 21 | //TH1F* histoDE = file->Get("histo_DE"); |
---|
| 22 | TH1F* histo = file->Get("histo_HitTotalE"); |
---|
| 23 | |
---|
| 24 | TCanvas* canvas = new TCanvas("canvas","TH1D",10,10,800,600); |
---|
| 25 | |
---|
| 26 | histo->Draw(); |
---|
| 27 | |
---|
| 28 | canvas->Update(); |
---|
| 29 | |
---|
| 30 | file->Close(); |
---|
| 31 | |
---|
| 32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.