ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/tschum/FWlite_Analysis/PlotTool.h
(Generate patch)

Comparing UserCode/tschum/FWlite_Analysis/PlotTool.h (file contents):
Revision 1.3 by thomsen, Wed Nov 18 14:53:42 2009 UTC vs.
Revision 1.6 by tschum, Wed Dec 2 15:57:44 2009 UTC

# Line 25 | Line 25
25   #include "TColor.h"
26   #include "TStyle.h"
27   #include "TROOT.h"
28 + #include "TSystem.h"
29   #include "DataFormats/FWLite/interface/Handle.h"
30   #include "DataFormats/FWLite/interface/Event.h"
31   #if !defined(__CINT__) && !defined(__MAKECINT__)
# Line 32 | Line 33
33   #endif
34   #include "DataFormats/Math/interface/deltaR.h"
35   #include "TFile.h"
36 + #include "TGraphAsymmErrors.h"
37 + #include "TF2.h"
38 + #include "TStopwatch.h"
39  
40   using namespace std;
41  
# Line 41 | Line 45 | class PlotTool : public TClonesArray {
45  
46   private:
47  
48 <  map< string, TCanvas* > canvases_;
49 <  map< string, TCanvas* > pads_;
48 >        map< string, TCanvas* > canvases_;
49 >        map< string, TCanvas* > pads_;
50  
51 <  void setCanvas(TCanvas* thisCanvas);
52 <  void setStats(TCanvas* thisCanvas, TPaveStats* thisStatsBox, TH1* thisHist, int counter);
53 <  void setColor(TH1* thisHist, int counter);
54 <  void setMathLabels(TH1* thisHist);
55 <  void setPalette(TCanvas* thisCanvas, TPaletteAxis* palette);
56 <  void setHistMax(TCanvas* thisCanvas, double maxEntry);
57 <  void setLegend(TCanvas* thisCanvas, TLegend* thisLeg, int counter);
58 <  void createColors();
51 >        void setCanvas(TCanvas* thisCanvas);
52 >        void setStats(TCanvas* thisCanvas, TPaveStats* thisStatsBox, TH1* thisHist,
53 >                        int counter);
54 >        void setColor(TH1* thisHist, int counter);
55 >        void setMathLabels(TH1* thisHist);
56 >        void setPalette(TCanvas* thisCanvas, TPaletteAxis* palette);
57 >        void setHistMax(TCanvas* thisCanvas, double maxEntry);
58 >        void setLegend(TCanvas* thisCanvas, TLegend* thisLeg, int counter);
59 >        void createColors();
60  
61   public:
62  
63 <  PlotTool();
64 <  ~PlotTool(){};
63 >        PlotTool();
64 >        ~PlotTool() {
65 >        }
66 >        ;
67 >
68 >        int init(string fileName = "",
69 >                        string dirPath = "/scratch/hh/current/cms/user/schum/",
70 >                        string treeName = "Events", string fileLabel="");
71 >        int plot(int chainIndex, string histName, string cutName= "",
72 >                        int nEntries= -1, string drwOpt = "");
73 >        int loop(vector<string> _histName, vector<string> _cutName,
74 >                        int nEntries= -1, string drwOpt = "", bool correspond = false);
75 >        int loop(vector<string> _histName, string cutName= "", int nEntries= -1,
76 >                        string drwOpt = "");
77 >        int loop(string histName, vector<string> _cutName, int nEntries= -1,
78 >                        string drwOpt = "");
79 >        int loop(string histName, string cutName = "", int nEntries= -1,
80 >                        string drwOpt = "");
81 >
82 >        int  plotEff(int chainIndex, string histName, string cutName, int nEntries, double fitXmin = 30, double fitXmax = 130, string fitFormula="expo");
83 >
84 >        bool samePad_trees, samePad_vars, samePad_cuts, sameCanv_trees,
85 >                        sameCanv_vars, sameCanv_cuts;
86 >        bool showLegend, logY, addTrackJets, verbose;
87 >        float* TrackJetKT;
88 >        vector<string> fileNames;
89 >
90 >        int saveCanvases(string type=".ps",
91 >                        string path="/afs/naf.desy.de/group/cms/scratch/schum/");
92 >        int updatePads();
93 >        int fillCanvases();
94  
95 +        void showChainInfo();
96  
62  int  init(string fileName = "", string dirPath = "/scratch/hh/current/cms/user/schum/", string treeName = "Events");
63  int  plot(int chainIndex, string histName, string cutName= "", int nEntries= -1, string drwOpt = "");
64  int  loop(vector<string> _histName, vector<string> _cutName, int nEntries= -1, string drwOpt = "", bool correspond = false);
65  int  loop(vector<string> _histName, string cutName= "", int nEntries= -1, string drwOpt = "");
66  int  loop(string histName, vector<string> _cutName, int nEntries= -1, string drwOpt = "");
67  int  loop(string histName, string cutName, int nEntries= -1, string drwOpt = "");
97  
98 <  bool samePad_trees, samePad_vars, samePad_cuts, sameCanv_trees, sameCanv_vars, sameCanv_cuts;
70 <  bool showLegend, logY;
71 <  float*  TrackJetKT;
72 <  vector<string> fileNames;
98 >        ClassDef(PlotTool,4)
99  
74  int   saveCanvases(string type=".ps", string path="/afs/naf.desy.de/group/cms/scratch/schum/");
75  int  updatePads();
76  int  fillCanvases();
77
78
79  ClassDef(PlotTool,4)
100  
101   };
102  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines