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" |
27 |
|
#include "DataFormats/FWLite/interface/Event.h" |
28 |
|
#if !defined(__CINT__) && !defined(__MAKECINT__) |
29 |
|
#include "DataFormats/PatCandidates/interface/Jet.h" |
30 |
< |
#endif |
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 |
< |
#include "TFile.h" |
38 |
< |
#include "TGraphAsymmErrors.h" |
39 |
< |
#include "TF2.h" |
40 |
< |
#include "TStopwatch.h" |
41 |
< |
#include "TPostScript.h" |
37 |
> |
#endif |
38 |
> |
#include <TLorentzVector.h> |
39 |
> |
|
40 |
> |
#include <string> |
41 |
> |
#include <map> |
42 |
> |
#include <iostream> |
43 |
> |
#include <fstream> |
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, verbose; |
97 |
< |
float* TrackJetKT; |
98 |
< |
vector<string> fileNames; |
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, addJetContent, recreateTree ; |
102 |
> |
float *TrackJetKT, *TrackDetE, *TrackDetEECAL, * towet, * toweta, * towphi, * towen, * towem, * towhd, * towoe; |
103 |
> |
float *TowLeadJetE, *TowLeadJetDPhi, *TowLeadJetDEta, *TowLeadJetEMF, *TrackLeadJetE, *TrackLeadJetDPhi, *TrackLeadJetDEta; |
104 |
> |
vector<string> fileNames; |
105 |
> |
|
106 |
> |
string globalCuts; |
107 |
> |
int* towid_phi, *towid_eta, *towid; |
108 |
|
|
109 |
|
int saveCanvases(string name="test", |
110 |
|
string path="/afs/naf.desy.de/group/cms/scratch/schum/"); |
111 |
+ |
int clearCanvases(); |
112 |
|
int updatePads(); |
113 |
|
int fillCanvases(); |
114 |
|
|
115 |
< |
void showChainInfo(); |
115 |
> |
int setVariables(string label=""); |
116 |
> |
|
117 |
> |
vector<string> autoVars; |
118 |
|
|
119 |
|
|
120 |
|
ClassDef(PlotTool,4) |