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 |
|
virtual ~TreeWriter(); |
17 |
|
virtual void Loop(); |
18 |
|
|
20 |
|
void SetReportEvents(int nEvents) { reportEvery = nEvents; } |
21 |
|
void SetLoggingVerbosity(int logVerb) { loggingVerbosity = logVerb; } |
22 |
|
void SkimEvents(bool skim_){ skim = skim_; } |
23 |
+ |
void PileUpWeightFile( string pileupFileName ); |
24 |
|
|
25 |
|
TChain *inputTree; |
26 |
|
susy::Event *event; |
37 |
|
int loggingVerbosity; |
38 |
|
bool skim; |
39 |
|
|
40 |
+ |
// important dataset information |
41 |
+ |
TH1F* pileupHisto; |
42 |
+ |
|
43 |
|
// variables which will be stored in the tree |
44 |
|
std::vector<tree::Photon> photon; |
45 |
|
std::vector<tree::Jet> jet; |
46 |
+ |
std::vector<tree::Particle> electron; |
47 |
+ |
std::vector<tree::Particle> muon; |
48 |
+ |
|
49 |
|
float met; |
50 |
+ |
float met_phi; |
51 |
+ |
float type1met; |
52 |
+ |
float type1met_phi; |
53 |
|
float ht; |
54 |
|
int nVertex; |
55 |
< |
int nElectron; |
55 |
> |
float pu_weight; |
56 |
|
}; |
57 |
|
|