1 |
wulsin |
1.1 |
#ifndef PU_ANALYZER
|
2 |
|
|
|
3 |
|
|
#define PU_ANALYZER
|
4 |
|
|
|
5 |
|
|
#include <string>
|
6 |
|
|
#include <vector>
|
7 |
|
|
#include <map>
|
8 |
|
|
|
9 |
|
|
#include "TH1D.h"
|
10 |
|
|
#include "TROOT.h"
|
11 |
|
|
#include "TStyle.h"
|
12 |
|
|
|
13 |
|
|
#include "FWCore/Framework/interface/EDAnalyzer.h"
|
14 |
|
|
#include "FWCore/Framework/interface/Event.h"
|
15 |
|
|
#include "FWCore/Framework/interface/Run.h"
|
16 |
|
|
#include "FWCore/Framework/interface/EventSetup.h"
|
17 |
|
|
#include "FWCore/Common/interface/EventBase.h"
|
18 |
|
|
#include "FWCore/ServiceRegistry/interface/Service.h"
|
19 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
20 |
|
|
#include "DataFormats/Common/interface/Handle.h"
|
21 |
|
|
#include "CommonTools/UtilAlgos/interface/TFileService.h"
|
22 |
|
|
|
23 |
|
|
#include "ProductArea/BNcollections/interface/BNelectron.h"
|
24 |
|
|
#include "ProductArea/BNcollections/interface/BNevent.h"
|
25 |
|
|
#include "ProductArea/BNcollections/interface/BNjet.h"
|
26 |
|
|
#include "ProductArea/BNcollections/interface/BNgenjet.h"
|
27 |
|
|
#include "ProductArea/BNcollections/interface/BNmcparticle.h"
|
28 |
|
|
#include "ProductArea/BNcollections/interface/BNmet.h"
|
29 |
|
|
#include "ProductArea/BNcollections/interface/BNmuon.h"
|
30 |
|
|
#include "ProductArea/BNcollections/interface/BNphoton.h"
|
31 |
|
|
#include "ProductArea/BNcollections/interface/BNsupercluster.h"
|
32 |
|
|
#include "ProductArea/BNcollections/interface/BNtau.h"
|
33 |
|
|
#include "ProductArea/BNcollections/interface/BNtrack.h"
|
34 |
|
|
#include "ProductArea/BNcollections/interface/BNtrigger.h"
|
35 |
|
|
#include "ProductArea/BNcollections/interface/BNbxlumi.h"
|
36 |
|
|
#include "ProductArea/BNcollections/interface/BNtrigobj.h"
|
37 |
|
|
#include "ProductArea/BNcollections/interface/BNprimaryvertex.h"
|
38 |
|
|
|
39 |
|
|
#include "OSUT3Analysis/AnaTools/interface/CutFlow.h"
|
40 |
|
|
#include "OSUT3Analysis/AnaTools/interface/PUWeight.h"
|
41 |
|
|
|
42 |
|
|
class PUAnalyzer : public edm::EDAnalyzer
|
43 |
|
|
{
|
44 |
|
|
public:
|
45 |
|
|
PUAnalyzer (const edm::ParameterSet &);
|
46 |
|
|
virtual ~PUAnalyzer ();
|
47 |
|
|
void beginJob () {};
|
48 |
|
|
void analyze (const edm::Event &, const edm::EventSetup &);
|
49 |
|
|
void endJob () {};
|
50 |
|
|
|
51 |
|
|
private:
|
52 |
|
|
edm::InputTag events_;
|
53 |
|
|
|
54 |
|
|
CutFlow *masterCutFlow_;
|
55 |
|
|
|
56 |
|
|
std::map<std::string, TH1D*> oneDHists_;
|
57 |
|
|
edm::Service<TFileService> fs_;
|
58 |
|
|
|
59 |
|
|
};
|
60 |
|
|
|
61 |
|
|
#endif
|