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.6 by tschum, Wed Dec 2 15:57:44 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 26 | Line 23
23   #include "TStyle.h"
24   #include "TROOT.h"
25   #include "TSystem.h"
26 < #include "DataFormats/FWLite/interface/Handle.h"
27 < #include "DataFormats/FWLite/interface/Event.h"
28 < #if !defined(__CINT__) && !defined(__MAKECINT__)
29 < #include "DataFormats/PatCandidates/interface/Jet.h"
30 < #endif
31 < #include "DataFormats/Math/interface/deltaR.h"
32 < #include "TFile.h"
33 < #include "TGraphAsymmErrors.h"
34 < #include "TF2.h"
35 < #include "TStopwatch.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 68 | 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 79 | Line 79 | public:
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");
82 >        bool samePad_trees, samePad_vars, samePad_cuts, sameCanv_trees, sameCanv_vars, sameCanv_cuts;
83 >        
84 >        bool showLegend, logY, verbose, recreateTree;
85 >
86 >        vector<string> fileNames;  
87  
88 <        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;
88 >        string globalCuts, varBlockNames;
89  
90 <        int saveCanvases(string type=".ps",
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 <        void showChainInfo();
96 >        int setVariables(string label="");
97 >
98 >        vector<string> autoVars;
99  
100  
101          ClassDef(PlotTool,4)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines