5 |
|
#include "TTree.h" |
6 |
|
#include "TChain.h" |
7 |
|
#include "TString.h" |
8 |
+ |
#include "TH1F.h" |
9 |
|
|
10 |
|
#include "SusyEvent.h" |
11 |
|
#include "TreeObjects.h" |
12 |
|
|
13 |
|
class TreeWriter { |
14 |
|
public : |
15 |
< |
TreeWriter(TString inputName, TString outputName, int loggingVerbosity_ ); |
15 |
> |
TreeWriter(TString inputName, TString outputName, int loggingVerbosity_); |
16 |
> |
TreeWriter(TChain* inputName, TString outputName, int loggingVerbosity_); |
17 |
> |
void Init( TString outputName, int loggingVerbosity_ ); |
18 |
|
virtual ~TreeWriter(); |
19 |
|
virtual void Loop(); |
20 |
|
|
22 |
|
void SetReportEvents(int nEvents) { reportEvery = nEvents; } |
23 |
|
void SetLoggingVerbosity(int logVerb) { loggingVerbosity = logVerb; } |
24 |
|
void SkimEvents(bool skim_){ skim = skim_; } |
25 |
+ |
void PileUpWeightFile( string pileupFileName ); |
26 |
|
|
27 |
|
TChain *inputTree; |
28 |
|
susy::Event *event; |
29 |
|
|
30 |
|
TFile *outFile; |
31 |
|
TTree *tree; |
32 |
+ |
TH1F *eventNumbers; |
33 |
|
|
34 |
|
float getPtFromMatchedJet( susy::Photon, susy::Event ); |
35 |
|
float deltaR( TLorentzVector, TLorentzVector ); |
40 |
|
int loggingVerbosity; |
41 |
|
bool skim; |
42 |
|
|
43 |
+ |
// important dataset information |
44 |
+ |
TH1F* pileupHisto; |
45 |
+ |
|
46 |
|
// variables which will be stored in the tree |
47 |
|
std::vector<tree::Photon> photon; |
48 |
|
std::vector<tree::Jet> jet; |
49 |
+ |
std::vector<tree::Particle> electron; |
50 |
+ |
std::vector<tree::Particle> muon; |
51 |
+ |
|
52 |
|
float met; |
53 |
+ |
float met_phi; |
54 |
+ |
float type1met; |
55 |
+ |
float type1met_phi; |
56 |
|
float ht; |
57 |
|
int nVertex; |
58 |
< |
int nElectron; |
58 |
> |
float pu_weight; |
59 |
|
}; |
60 |
|
|