Changeset 206


Ignore:
Timestamp:
Jun 20, 2006, 9:24:25 AM (18 years ago)
Author:
barrand
Message:

G.Barrand : have histos and plots.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MEMPHYS/HEAD/applications/MEMPHYS_analysis_ROOT.cxx

    r188 r206  
    22// Compiled version of the interpreted
    33//   ../scripts/ROOT/analysis.C
    4 // CINT script that does not work properly
    5 // for the moment (it has huge memory consumption).
    64//
    75
     6// To read data :
    87#include <TFile.h>
    98#include <TTree.h>
     9
     10// To have histos :
     11#include <TH1D.h>
     12#include <TH2D.h>
     13
     14// To plot histos :
     15#include <TCanvas.h>
     16#include <TSystem.h>
     17#include <TApplication.h>
    1018
    1119#include <iostream>
     
    1321#include "../scripts/ROOT/analysis.C"
    1422
    15 int main() {
     23int main(int aArgc,char* aArgv[]) {
    1624  ROOT::GetROOT();
     25 
     26  new TApplication("MEMPHYS_analysis_ROOT",&aArgc,aArgv);
     27
    1728  analysis();
     29
     30  gSystem->Run();
     31
    1832  return 1;
    1933}
Note: See TracChangeset for help on using the changeset viewer.