ROOTPWA
src/rootscripts/rootlogon.C
Go to the documentation of this file.
1 
2 //
3 // Copyright 2009 Sebastian Neubert
4 //
5 // This file is part of rootpwa
6 //
7 // rootpwa is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // rootpwa is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with rootpwa. If not, see <http://www.gnu.org/licenses/>.
19 //
21 //-----------------------------------------------------------
22 // File and Version Information:
23 // $Id$
24 //
25 // Description:
26 // ROOT logon script that loads libraries required for plotting
27 //
28 //
29 // Author List:
30 // Sebastian Neubert TUM (original author)
31 //
32 //
33 //-----------------------------------------------------------
34 
35 
36 {
37  //gSystem->Load("libGX11TTF.so");
38 
39  // load ROOTPWA libraries
40  gSystem->Load("libMinuit2.so");
41  gSystem->Load("libRootPwa.so");
42  gSystem->AddIncludePath("-I$ROOTPWA/src");
43  gSystem->AddIncludePath("-I$ROOTPWA/utilities");
44 
45 
46  //gROOT->ProcessLine(".L loadFitResult.C+")
47  // basic tree routines
48  // gROOT->ProcessLine(".L loadFitResult.C+");
49  //gROOT->ProcessLine(".L convertTFitResultTree.C+");
50 
51  // basic plotting routines
52  //gROOT->ProcessLine(".L plotIntensity.C+");
53  //gROOT->ProcessLine(".L plotPhase.C+");
54  //gROOT->ProcessLine(".L plotCoherence.C+");
55 
56  // summary plots
57  //gROOT->ProcessLine(".L plotAllIntensities.C+");
58  //gROOT->ProcessLine(".L plotSpinTotals.C+");
59  //gROOT->ProcessLine(".L plot4.C+");
60 
61  //gROOT->ProcessLine(".L loadFit.C+");
62  //gROOT->ProcessLine(".L plotwaves.C+");
63 
64  // deprecated routines
65  // gROOT->ProcessLine(".L loadFit.C+");
66  // gROOT->ProcessLine(".L plotwaves.C+");
67 
68 
69  gStyle->SetPadColor(0);
70  gStyle->SetCanvasColor(0);
71 
72 
73 
74  const Int_t NCont = 25;
75 
76 
77  // define grey-scale palette
78  UInt_t nmbColorEndPoints = 2;
79  Double_t red [nmbColorEndPoints] = { 1, 0};
80  Double_t green [nmbColorEndPoints] = { 1, 0};
81  Double_t blue [nmbColorEndPoints] = { 1, 0.5};
82  Double_t length[nmbColorEndPoints] = { 0, 1};
83  Int_t nmbColors = 50;
84  TColor::CreateGradientColorTable(nmbColorEndPoints, length, red, green, blue, nmbColors);
85 
86 
87  // const UInt_t Number = 3;
88 // Double_t Red[Number] = { 1.00, 0.2, 0.0};
89 // Double_t Green[Number] = { 1.00, 0.2, 0.0};
90 // Double_t Blue[Number] = { 1.00, 0.2, 0.0};
91 // Double_t Length[Number] = { 0.00, 0.8, 1.00};
92 // TColor::CreateGradientColorTable(Number,Length,Red,Green,Blue,NCont);
93 
94 
95 // const Int_t NRGBs = 5;
96 // Double_t stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 };
97 // Double_t red[NRGBs] = { 0.00, 0.00, 0.87, 1.00, 0.51 };
98 // Double_t green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 };
99 // Double_t blue[NRGBs] = { 0.51, 1.00, 0.12, 0.00, 0.00 };
100 // TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont);
101 
102  gStyle->SetNumberContours(NCont);
103 
104 
105 
106 
107 }