Millepede-II V04-17-04
|
ROOT script to read pede histograms. More...
#include <fstream>
#include <vector>
#include <utility>
#include <iostream>
#include <TROOT.h>
#include <TFile.h>
#include <TDirectory.h>
#include <TError.h>
#include <TH1.h>
#include <TGraph.h>
#include <TGraphErrors.h>
#include <TCanvas.h>
#include <TMath.h>
#include <TPaveText.h>
Go to the source code of this file.
Classes | |
class | ReadPedeHists |
Functions | |
void | readPedeHists (Option_t *option="", const char *txtFile="millepede.his") |
ROOT script to read pede histograms.
* * |-------------------------------------------------------------------| * ||-----------------------------------------------------------------|| * || ROOT script to read the millepede.his file produced by pede || * ||-----------------------------------------------------------------|| * |-------------------------------------------------------------------| * * Author : Gero Flucke, University Hamburg, 2007 * Date : July 2007 * Last update: $Date: 2009/01/20 20:22:27 $ by $Author: flucke $ *
Start ROOT and compile (!) the script:
root [0] .L readPedeHists.C+ Info in <TUnixSystem::ACLiC>: creating shared library ./readPedeHists_C.so
If the millepede.his file is in the directory that ROOT was started in, just call
root [1] readPedeHists()
ROOT will display the histograms (TH1) and XY-data objects (TGraph).
The following options and their combinations can be given as first argument:
Note that both options 'print' and 'write' will overwrite existing files.
If the millepede.his file has been renamed or is not in the local directory, its name can be given as second argument. The names of the postscript or ROOT files will be adjusted to the given name, too.
The following example will read the file '../adir/millepede_result5.his' and directly produce the postscript file '../adir/millepede_result5.his.ps' without displaying and without producing a ROOT file:
root [1] readPedeHists("print nodraw", "../adir/millepede_result5.his") Info in <TCanvas::Print>: ps file ../adir/millepede_result5.hisps has been created Info in <TCanvas::Print>: Current canvas added to ps file ../adir/millepede_result5.his.ps Info in <TCanvas::Print>: Current canvas added to ps file ../adir/millepede_result5.his.ps Info in <TCanvas::Print>: Current canvas added to ps file ../adir/millepede_result5.his.ps Info in <TCanvas::Print>: Current canvas added to ps file ../adir/millepede_result5.his.ps
Definition in file readPedeHists.C.
void readPedeHists | ( | Option_t * | option = "" , |
const char * | txtFile = "millepede.his" |
||
) |
Definition at line 594 of file readPedeHists.C.
References ReadPedeHists::Draw(), ReadPedeHists::Print(), and ReadPedeHists::Write().