Commit 137d61ce authored by Claus Kleinwort's avatar Claus Kleinwort
Browse files

More cleanup

git-svn-id: http://svnsrv.desy.de/public/MillepedeII/trunk@176 3547b9b0-65b8-46d3-b95d-921b3f43af62
parent 09144409
...@@ -64,6 +64,8 @@ ...@@ -64,6 +64,8 @@
!! !!
!! This will create (and use) the necessary text and binary files. !! This will create (and use) the necessary text and binary files.
!! !!
!! Alternatively tarballs can be found [here](http://www.desy.de/~kleinwrt/MP2/tar).
!!
!! \section news_sec News !! \section news_sec News
!! * 131008: New solution method \ref ch-minresqlp "MINRES-QLP" !! * 131008: New solution method \ref ch-minresqlp "MINRES-QLP"
!! [\ref ref_sec "ref 9"] implemented. !! [\ref ref_sec "ref 9"] implemented.
......
// /** \file
// |-------------------------------------------------------------------| * ROOT script to read pede histograms.
// ||-----------------------------------------------------------------|| *
// || ROOT script to read the millepede.his file produced by pede || * \author Gero Flucke, University Hamburg, 2007
// ||-----------------------------------------------------------------|| *
// |-------------------------------------------------------------------| * \copyright
// * Copyright (c) 2009 Deutsches Elektronen-Synchroton,
// Author : Gero Flucke, University Hamburg, 2007 * Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY \n\n
// Date : July 2007 * This library is free software; you can redistribute it and/or modify
// Last update: $Date: 2009/01/20 20:22:27 $ by $Author: flucke $ * it under the terms of the GNU Library General Public License as
// * published by the Free Software Foundation; either version 2 of the
// * License, or (at your option) any later version. \n\n
// Usage: * This library is distributed in the hope that it will be useful,
// ====== * but WITHOUT ANY WARRANTY; without even the implied warranty of
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// Start ROOT and compile (!) the script: * GNU Library General Public License for more details. \n\n
// * You should have received a copy of the GNU Library General Public
// root [0] .L readPedeHists.C+ * License along with this program (see the file COPYING.LIB for more
// Info in <TUnixSystem::ACLiC>: creating shared library ./readPedeHists_C.so * details); if not, write to the Free Software Foundation, Inc.,
// * 675 Mass Ave, Cambridge, MA 02139, USA.
// If the millepede.his file is in the directory that ROOT was started in, just call *
// *
// root [1] readPedeHists() * \verbatim
// *
// ROOT will display the histograms (TH1) and XY-data objects (TGraph). * |-------------------------------------------------------------------|
// * ||-----------------------------------------------------------------||
// The following options and their combinations can be given as first argument: * || ROOT script to read the millepede.his file produced by pede ||
// - print: produce a postscript file millepede.his.ps * ||-----------------------------------------------------------------||
// - write: write the histograms and graphs into the ROOT file millepede.his.root * |-------------------------------------------------------------------|
// - nodraw: skip displaying (write/print work still fine) *
// * Author : Gero Flucke, University Hamburg, 2007
// Note that both options 'print' and 'write' will overwrite existing files. * Date : July 2007
// * Last update: $Date: 2009/01/20 20:22:27 $ by $Author: flucke $
// If the millepede.his file has been renamed or is not in the local directory, * \endverbatim
// its name can be given as second argument. The names of the postscript or ROOT files *
// will be adjusted to the given name, too. * Usage:
// * ======
// 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 * Start ROOT and compile (!) the script:
// without producing a ROOT file: *
// * root [0] .L readPedeHists.C+
// root [1] readPedeHists("print nodraw", "../adir/millepede_result5.his") * Info in <TUnixSystem::ACLiC>: creating shared library ./readPedeHists_C.so
// 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 * If the millepede.his file is in the directory that ROOT was started in, just call
// 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 * root [1] readPedeHists()
// Info in <TCanvas::Print>: Current canvas added to ps file ../adir/millepede_result5.his.ps *
// * ROOT will display the histograms (TH1) and XY-data objects (TGraph).
// *
// Possible modifications: * The following options and their combinations can be given as first argument:
// ======================= * - print: produce a postscript file millepede.his.ps
// - The size of the canvases is defined in ReadPedeHists::Draw() via 'nPixelX' and 'nPixelY'. * - write: write the histograms and graphs into the ROOT file millepede.his.root
// - The number of histograms/graphs per canvas is defined in ReadPedeHists::Draw() as * - nodraw: skip displaying (write/print work still fine)
// 'nHistX' and 'nHistY'. *
// - The position of the corners of the boxes giving the minimum or maximum value of a * Note that both options 'print' and 'write' will overwrite existing files.
// histogrammed distribution is defined as the first four arguments after 'new TPaveText' *
// at the end of the method ReadPedeHists::readNextHist. * If the millepede.his file has been renamed or is not in the local directory,
// - gStyle->SetOptStat(...), executed before readPedeHists(), defines whether you see all * its name can be given as second argument. The names of the postscript or ROOT files
// relevant information in the statistics. Try e.g.: * will be adjusted to the given name, too.
// root [0] gStyle->SetOptStat("emrou"); // or "nemrou" *
// * 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
*
*
* Possible modifications:
* =======================
* - The size of the canvases is defined in ReadPedeHists::Draw() via 'nPixelX' and 'nPixelY'.
* - The number of histograms/graphs per canvas is defined in ReadPedeHists::Draw() as
* 'nHistX' and 'nHistY'.
* - The position of the corners of the boxes giving the minimum or maximum value of a
* histogrammed distribution is defined as the first four arguments after 'new TPaveText'
* at the end of the method ReadPedeHists::readNextHist.
* - gStyle->SetOptStat(...), executed before readPedeHists(), defines whether you see all
* relevant information in the statistics. Try e.g.:
* root [0] gStyle->SetOptStat("emrou"); // or "nemrou"
*
*/
#include <fstream> #include <fstream>
#include <vector> #include <vector>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment