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.4 by gebbert, Wed Nov 25 15:34:38 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 "DataFormats/FWLite/interface/Handle.h"
29 > #include "DataFormats/FWLite/interface/Event.h"
30 > #if !defined(__CINT__) && !defined(__MAKECINT__)
31 > #include "DataFormats/PatCandidates/interface/Jet.h"
32 > #endif
33 > #include "DataFormats/Math/interface/deltaR.h"
34 > #include "TFile.h"
35  
36   using namespace std;
37  
# Line 34 | Line 41 | class PlotTool : public TClonesArray {
41  
42   private:
43  
44 <  map< string, TCanvas* > canvases_;
45 <  map< string, TCanvas* > pads_;
44 >        map< string, TCanvas* > canvases_;
45 >        map< string, TCanvas* > pads_;
46  
47 <  void setCanvas(TCanvas* thisCanvas);
48 <  void setStats(TCanvas* thisCanvas, TPaveStats* thisStatsBox, TH1* thisHist, int counter);
49 <  void setColor(TH1* thisHist, int counter);
50 <  void setMathLabels(TH1* thisHist);
51 <  void setPalette(TCanvas* thisCanvas, TPaletteAxis* palette);
52 <  void setHistMax(TCanvas* thisCanvas, double maxEntry);
53 <  void setLegend(TCanvas* thisCanvas, TLegend* thisLeg, int counter);
54 <  void createColors();
47 >        void setCanvas(TCanvas* thisCanvas);
48 >        void setStats(TCanvas* thisCanvas, TPaveStats* thisStatsBox, TH1* thisHist,
49 >                        int counter);
50 >        void setColor(TH1* thisHist, int counter);
51 >        void setMathLabels(TH1* thisHist);
52 >        void setPalette(TCanvas* thisCanvas, TPaletteAxis* palette);
53 >        void setHistMax(TCanvas* thisCanvas, double maxEntry);
54 >        void setLegend(TCanvas* thisCanvas, TLegend* thisLeg, int counter);
55 >        void createColors();
56  
57   public:
58  
59 <  PlotTool();
60 <  ~PlotTool(){};
59 >        PlotTool();
60 >        ~PlotTool() {
61 >        }
62 >        ;
63 >
64 >        int init(string fileName = "",
65 >                        string dirPath = "/scratch/hh/current/cms/user/schum/",
66 >                        string treeName = "Events", string fileLabel="");
67 >        int plot(int chainIndex, string histName, string cutName= "",
68 >                        int nEntries= -1, string drwOpt = "");
69 >        int loop(vector<string> _histName, vector<string> _cutName,
70 >                        int nEntries= -1, string drwOpt = "", bool correspond = false);
71 >        int loop(vector<string> _histName, string cutName= "", int nEntries= -1,
72 >                        string drwOpt = "");
73 >        int loop(string histName, vector<string> _cutName, int nEntries= -1,
74 >                        string drwOpt = "");
75 >        int loop(string histName, string cutName, int nEntries= -1,
76 >                        string drwOpt = "");
77 >
78 >        bool samePad_trees, samePad_vars, samePad_cuts, sameCanv_trees,
79 >                        sameCanv_vars, sameCanv_cuts;
80 >        bool showLegend, logY;
81 >        float* TrackJetKT;
82 >        vector<string> fileNames;
83 >
84 >        int saveCanvases(string type=".ps",
85 >                        string path="/afs/naf.desy.de/group/cms/scratch/schum/");
86 >        int updatePads();
87 >        int fillCanvases();
88  
89 <
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 = "");
61 <
62 <  bool samePad_trees, samePad_vars, samePad_cuts, sameCanv_trees, sameCanv_vars, sameCanv_cuts;
63 <  bool showLegend, logY;
64 <
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)
89 >        ClassDef(PlotTool,4)
90  
91   };
92  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines