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.13 by thomsen, Mon Feb 8 13:22:13 2010 UTC vs.
Revision 1.16 by tschum, Fri Feb 12 15:21:17 2010 UTC

# Line 23 | 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 < #include <DataFormats/DetId/interface/DetId.h>
31 < #include <DataFormats/CaloRecHit/interface/CaloCluster.h>
32 < #include <DataFormats/CaloTowers/interface/CaloTower.h>
33 < #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutRecord.h"
34 < #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutSetupFwd.h"
35 < #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutSetup.h"
36 < #include "DataFormats/Math/interface/deltaR.h"
37 < #endif
26 >
27   #include <TLorentzVector.h>
28  
29   #include <string>
# Line 44 | Line 33
33   #include <sstream>
34   #include <vector>
35  
36 < //#include "DetEtaPhi.h"
36 > #include "FWliteVariables.h"
37  
38  
39   using namespace std;
# Line 78 | Line 67 | public:
67          int init(string fileName = "",
68                          string dirPath = "/scratch/hh/current/cms/user/schum/",
69                          string treeName = "Events", string fileLabel="");
70 <        int plot(int chainIndex, string histName, string cutName= "",
71 <                        int nEntries= -1, string drwOpt = "");
70 >
71 >        TH1* plot(int chainIndex, string histName, string cutName= "",
72 >                        int nEntries= -1, string bins = "" , 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,
74 >                        int nEntries= -1, string bins = "" , string drwOpt = "", bool correspond = false);
75 >        int loop(vector<string> _histName, string cutName= "", int nEntries= -1, string bins = "" ,
76                          string drwOpt = "");
77 <        int loop(string histName, vector<string> _cutName, int nEntries= -1,
77 >        int loop(string histName, vector<string> _cutName, int nEntries= -1, string bins = "" ,
78                          string drwOpt = "");
79 <        int loop(string histName, string cutName = "", int nEntries= -1,
79 >        int loop(string histName, string cutName = "", int nEntries= -1, string bins = "" ,
80                          string drwOpt = "");
81  
92        int  plotEff(int chainIndex, string histName, string cutName, int nEntries, double fitXmin = 30, double fitXmax = 130, string fitFormula="expo");
93
94        int getEtaBin(double eta);
95        double getEtaFromBin(int etaBin, bool lowerEdge);
96        int getPhiBin(double phi);
97        double getPhiFromBin(int phiBin, bool lowerEdge);
82  
83          bool samePad_trees, samePad_vars, samePad_cuts, sameCanv_trees, sameCanv_vars, sameCanv_cuts;
84          
85 <        bool showLegend, logY, addTrackJets, addHitDetInfo, diTrackMass, addTrigger, verbose, addEventInfo, addTower, recreateTree ;
86 <        float *TrackJetKT, *TrackDetE, *TrackDetEECAL, * towet, * toweta, * towphi, * towen, * towem, * towhd, * towoe;
85 >        bool showLegend, logY, verbose, recreateTree, normHists;
86 >
87          vector<string> fileNames;  
88  
89 <        string globalCuts;
106 <        int* towid_phi, *towid_eta, *towid;
89 >        string globalCuts, varBlockNames;
90  
91          int saveCanvases(string name="test",
92                          string path="/afs/naf.desy.de/group/cms/scratch/schum/");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines