1 |
|
#ifndef PlotTool_h |
2 |
|
#define PlotTool_h |
3 |
|
|
4 |
– |
|
5 |
– |
#if !defined(__CINT__) && !defined(__MAKECINT__) |
6 |
– |
#include "DataFormats/PatCandidates/interface/Jet.h" |
7 |
– |
#endif |
8 |
– |
|
9 |
– |
#include "DataFormats/FWLite/interface/Handle.h" |
10 |
– |
#include "DataFormats/FWLite/interface/Event.h" |
11 |
– |
#include "DataFormats/Math/interface/deltaR.h" |
12 |
– |
|
13 |
– |
//#include "DataFormats/FWLite/interface/TriggerNames.h" |
14 |
– |
|
15 |
– |
|
4 |
|
#include "TClonesArray.h" |
5 |
|
#include "TFile.h" |
6 |
|
#include "TGraphAsymmErrors.h" |
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 |
38 |
+ |
#include <TLorentzVector.h> |
39 |
|
|
40 |
|
#include <string> |
41 |
|
#include <map> |
44 |
|
#include <sstream> |
45 |
|
#include <vector> |
46 |
|
|
47 |
+ |
//#include "DetEtaPhi.h" |
48 |
+ |
|
49 |
|
|
50 |
|
using namespace std; |
51 |
|
|
91 |
|
|
92 |
|
int plotEff(int chainIndex, string histName, string cutName, int nEntries, double fitXmin = 30, double fitXmax = 130, string fitFormula="expo"); |
93 |
|
|
94 |
< |
bool samePad_trees, samePad_vars, samePad_cuts, sameCanv_trees, |
95 |
< |
sameCanv_vars, sameCanv_cuts; |
96 |
< |
bool showLegend, logY, addTrackJets, addEventInfo, addTower, verbose, recreateTree; |
94 |
> |
int getEtaBin(double eta); |
95 |
> |
double getEtaFromBin(int etaBin, bool lowerEdge); |
96 |
> |
int getPhiBin(double phi); |
97 |
> |
double getPhiFromBin(int phiBin, bool lowerEdge); |
98 |
> |
|
99 |
> |
bool samePad_trees, samePad_vars, samePad_cuts, sameCanv_trees, sameCanv_vars, sameCanv_cuts; |
100 |
> |
|
101 |
> |
bool showLegend, logY, addTrackJets, addHitDetInfo, diTrackMass, addTrigger, verbose, addEventInfo, addTower, recreateTree ; |
102 |
> |
float *TrackJetKT, *TrackDetE, *TrackDetEECAL, * towet, * toweta, * towphi, * towen, * towem, * towhd, * towoe; |
103 |
> |
vector<string> fileNames; |
104 |
|
|
105 |
|
string globalCuts; |
96 |
– |
|
97 |
– |
float* TrackJetKT, * towet, * toweta, * towphi, * towen, * towem, * towhd, * towoe; |
106 |
|
int* towid_phi, *towid_eta, *towid; |
99 |
– |
vector<string> fileNames; |
107 |
|
|
108 |
|
int saveCanvases(string name="test", |
109 |
|
string path="/afs/naf.desy.de/group/cms/scratch/schum/"); |