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.4 by gebbert, Wed Nov 25 15:34:38 2009 UTC vs.
Revision 1.15 by tschum, Wed Feb 10 11:41:57 2010 UTC

# Line 1 | Line 1
1   #ifndef PlotTool_h
2   #define PlotTool_h
3  
4 #ifndef ROOT_TClonesArray
4   #include "TClonesArray.h"
5 < #endif
6 <
7 < #include <string>
8 < #include <map>
9 < #include <iostream>
10 < #include <fstream>
11 < #include <sstream>
13 < #include <vector>
14 <
5 > #include "TFile.h"
6 > #include "TGraphAsymmErrors.h"
7 > #include "TF2.h"
8 > #include "TStopwatch.h"
9 > #include "TPostScript.h"
10 > #include "TLeafElement.h"
11 > #include "TMethod.h"
12   #include "TChain.h"
13   #include "TSystemDirectory.h"
14   #include "TList.h"
# Line 25 | Line 22
22   #include "TColor.h"
23   #include "TStyle.h"
24   #include "TROOT.h"
25 < #include "DataFormats/FWLite/interface/Handle.h"
26 < #include "DataFormats/FWLite/interface/Event.h"
27 < #if !defined(__CINT__) && !defined(__MAKECINT__)
28 < #include "DataFormats/PatCandidates/interface/Jet.h"
29 < #endif
30 < #include "DataFormats/Math/interface/deltaR.h"
31 < #include "TFile.h"
25 > #include "TSystem.h"
26 >
27 > #include <TLorentzVector.h>
28 >
29 > #include <string>
30 > #include <map>
31 > #include <iostream>
32 > #include <fstream>
33 > #include <sstream>
34 > #include <vector>
35 >
36 > #include "FWliteVariables.h"
37 >
38  
39   using namespace std;
40  
# Line 64 | Line 67 | public:
67          int init(string fileName = "",
68                          string dirPath = "/scratch/hh/current/cms/user/schum/",
69                          string treeName = "Events", string fileLabel="");
70 +
71          int plot(int chainIndex, string histName, string cutName= "",
72                          int nEntries= -1, string drwOpt = "");
73          int loop(vector<string> _histName, vector<string> _cutName,
# Line 72 | Line 76 | public:
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,
79 >        int loop(string histName, string cutName = "", int nEntries= -1,
80                          string drwOpt = "");
81  
82 <        bool samePad_trees, samePad_vars, samePad_cuts, sameCanv_trees,
83 <                        sameCanv_vars, sameCanv_cuts;
84 <        bool showLegend, logY;
81 <        float* TrackJetKT;
82 <        vector<string> fileNames;
82 >        bool samePad_trees, samePad_vars, samePad_cuts, sameCanv_trees, sameCanv_vars, sameCanv_cuts;
83 >        
84 >        bool showLegend, logY, verbose, recreateTree;
85  
86 <        int saveCanvases(string type=".ps",
86 >        vector<string> fileNames;  
87 >
88 >        string globalCuts, varBlockNames;
89 >
90 >        int saveCanvases(string name="test",
91                          string path="/afs/naf.desy.de/group/cms/scratch/schum/");
92 +        int clearCanvases();
93          int updatePads();
94          int fillCanvases();
95  
96 +        int setVariables(string label="");
97 +
98 +        vector<string> autoVars;
99 +
100 +
101          ClassDef(PlotTool,4)
102  
103 +
104   };
105  
106   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines