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.2 by tschum, Fri Nov 13 15:41:42 2009 UTC vs.
Revision 1.6 by tschum, Wed Dec 2 15:57:44 2009 UTC

# Line 24 | Line 24
24   #include "TLegendEntry.h"
25   #include "TColor.h"
26   #include "TStyle.h"
27 < #include "TROOT.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__)
32 > #include "DataFormats/PatCandidates/interface/Jet.h"
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 34 | 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  
55  int  init(string fileName = "", string dirPath = "/scratch/hh/current/cms/user/schum/", string treeName = "Events");
56  int  plot(int chainIndex, string histName, string cutName= "", int nEntries= -1, string drwOpt = "");
57  int  loop(vector<string> _histName, vector<string> _cutName, int nEntries= -1, string drwOpt = "", bool correspond = false);
58  int  loop(vector<string> _histName, string cutName= "", int nEntries= -1, string drwOpt = "");
59  int  loop(string histName, vector<string> _cutName, int nEntries= -1, string drwOpt = "");
60  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;
63 <  bool showLegend, logY;
98 >        ClassDef(PlotTool,4)
99  
65  int   saveCanvases(string type=".ps", string path="/afs/naf.desy.de/group/cms/scratch/schum/");
66  int  updatePads();
67  int  fillCanvases();
68
69
70  ClassDef(PlotTool,4)
100  
101   };
102  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines