1 |
mlethuil |
1.1 |
#ifndef TotoAnalyzer_h
|
2 |
|
|
#define TotoAnalyzer_h
|
3 |
|
|
|
4 |
|
|
// system include files
|
5 |
|
|
#include <memory>
|
6 |
|
|
#include <string>
|
7 |
|
|
#include <iostream>
|
8 |
|
|
|
9 |
|
|
// user include files
|
10 |
|
|
#include "FWCore/Framework/interface/Frameworkfwd.h"
|
11 |
|
|
#include "FWCore/Framework/interface/MakerMacros.h"
|
12 |
|
|
#include "FWCore/Framework/interface/EDAnalyzer.h"
|
13 |
|
|
#include "FWCore/Framework/interface/Event.h"
|
14 |
lethuill |
1.8 |
#include "DataFormats/Provenance/interface/EventID.h"
|
15 |
mlethuil |
1.1 |
#include "FWCore/Framework/interface/EventSetup.h"
|
16 |
|
|
#include "FWCore/Framework/interface/ESHandle.h"
|
17 |
|
|
#include "FWCore/Utilities/interface/EDMException.h"
|
18 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
19 |
mlethuil |
1.7 |
#include "FWCore/ParameterSet/interface/FileInPath.h"
|
20 |
|
|
|
21 |
mlethuil |
1.6 |
#include "FWCore/Framework/interface/TriggerNames.h"
|
22 |
|
|
#include "DataFormats/Common/interface/TriggerResults.h"
|
23 |
|
|
|
24 |
lethuill |
1.10 |
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterLazyTools.h"
|
25 |
mlethuil |
1.7 |
#include "RecoEgamma/EgammaTools/interface/ConversionLikelihoodCalculator.h"
|
26 |
|
|
|
27 |
lethuill |
1.11 |
#include "../interface/HLTAnalyzer.h"
|
28 |
|
|
#include "../interface/MCAnalyzer.h"
|
29 |
lethuill |
1.15 |
#include "../interface/MCAssociator.h"
|
30 |
lethuill |
1.11 |
#include "../interface/VertexAnalyzer.h"
|
31 |
lethuill |
1.24 |
#include "../interface/ZeeVertexAnalyzer.h"
|
32 |
lethuill |
1.11 |
#include "../interface/TrackAnalyzer.h"
|
33 |
|
|
#include "../interface/JetAnalyzer.h"
|
34 |
|
|
#include "../interface/MuonAnalyzer.h"
|
35 |
|
|
#include "../interface/ElectronAnalyzer.h"
|
36 |
|
|
#include "../interface/PhotonAnalyzer.h"
|
37 |
|
|
#include "../interface/ClusterAnalyzer.h"
|
38 |
|
|
#include "../interface/SuperClusterAnalyzer.h"
|
39 |
|
|
#include "../interface/METAnalyzer.h"
|
40 |
|
|
#include "../interface/ClusterAssociator.h"
|
41 |
lethuill |
1.22 |
#include "../interface/ElectronAssociator.h"
|
42 |
lethuill |
1.11 |
#include "../interface/PhotonAssociator.h"
|
43 |
|
|
#include "../interface/PhotonIsolator.h"
|
44 |
lethuill |
1.23 |
#include "../interface/AmbiguitySolver.h"
|
45 |
lethuill |
1.11 |
|
46 |
|
|
#include "../interface/TRootRun.h"
|
47 |
|
|
#include "../interface/TRootEvent.h"
|
48 |
|
|
#include "../interface/TRootSignalEvent.h"
|
49 |
|
|
#include "../interface/TRootParticle.h"
|
50 |
lethuill |
1.15 |
#include "../interface/TRootMCParticle.h"
|
51 |
lethuill |
1.19 |
#include "../interface/TRootBeamSpot.h"
|
52 |
lethuill |
1.17 |
#include "../interface/TRootVertex.h"
|
53 |
|
|
#include "../interface/TRootTrack.h"
|
54 |
lethuill |
1.11 |
#include "../interface/TRootJet.h"
|
55 |
|
|
#include "../interface/TRootMuon.h"
|
56 |
|
|
#include "../interface/TRootElectron.h"
|
57 |
|
|
#include "../interface/TRootPhoton.h"
|
58 |
|
|
#include "../interface/TRootCluster.h"
|
59 |
|
|
#include "../interface/TRootSuperCluster.h"
|
60 |
|
|
#include "../interface/TRootMET.h"
|
61 |
mlethuil |
1.1 |
|
62 |
|
|
#include "TFile.h"
|
63 |
|
|
#include "TTree.h"
|
64 |
|
|
#include "TClonesArray.h"
|
65 |
|
|
|
66 |
|
|
|
67 |
lethuill |
1.21 |
class TotoAnalyzer : public edm::EDAnalyzer
|
68 |
|
|
{
|
69 |
lethuill |
1.24 |
|
70 |
|
|
public:
|
71 |
|
|
explicit TotoAnalyzer(const edm::ParameterSet&);
|
72 |
|
|
~TotoAnalyzer();
|
73 |
|
|
|
74 |
|
|
private:
|
75 |
|
|
virtual void beginJob(const edm::EventSetup&) ;
|
76 |
|
|
virtual void analyze(const edm::Event&, const edm::EventSetup&);
|
77 |
|
|
virtual void endJob() ;
|
78 |
|
|
|
79 |
|
|
edm::ParameterSet myConfig_;
|
80 |
|
|
edm::ParameterSet producersNames_;
|
81 |
|
|
|
82 |
|
|
int verbosity_;
|
83 |
|
|
bool allowMissingCollection_;
|
84 |
|
|
std::string rootFileName_ ;
|
85 |
|
|
TFile* rootFile_ ;
|
86 |
|
|
TTree* eventTree_;
|
87 |
|
|
TTree* runTree_;
|
88 |
|
|
std::string dataType_ ;
|
89 |
|
|
double datasetXsection_;
|
90 |
|
|
std::string datasetDesciption_;
|
91 |
|
|
bool doHLT_;
|
92 |
|
|
bool doMC_;
|
93 |
|
|
bool doJetMC_;
|
94 |
|
|
bool doMETMC_;
|
95 |
|
|
bool doPDFInfo_;
|
96 |
|
|
bool doSignalMuMuGamma_;
|
97 |
|
|
bool doSignalTopTop_;
|
98 |
|
|
bool doPhotonConversionMC_;
|
99 |
|
|
bool drawMCTree_;
|
100 |
|
|
bool doBeamSpot_;
|
101 |
|
|
bool doPrimaryVertex_;
|
102 |
|
|
bool doZeePrimaryVertex_;
|
103 |
|
|
bool doTrack_;
|
104 |
|
|
bool doJet_;
|
105 |
|
|
bool doMuon_;
|
106 |
|
|
bool doElectron_;
|
107 |
|
|
bool doPhoton_;
|
108 |
|
|
bool doCluster_;
|
109 |
|
|
bool doPhotonConversion_;
|
110 |
|
|
bool doPhotonIsolation_;
|
111 |
|
|
bool doMET_;
|
112 |
|
|
|
113 |
|
|
ConversionLikelihoodCalculator* conversionLikelihoodCalculator_;
|
114 |
|
|
|
115 |
|
|
int nTotEvt_;
|
116 |
|
|
TRootRun* runInfos_;
|
117 |
|
|
TRootEvent* rootEvent_;
|
118 |
|
|
HLTAnalyzer* hltAnalyzer_;
|
119 |
|
|
TClonesArray* rootMCParticles_;
|
120 |
|
|
TClonesArray* rootGenJets_;
|
121 |
|
|
TClonesArray* rootGenMETs_;
|
122 |
|
|
TRootSignalEvent* rootMuMuGammaEvent_;
|
123 |
|
|
TClonesArray* rootMCTopTop_;
|
124 |
|
|
TClonesArray* rootMCPhotons_;
|
125 |
|
|
TRootBeamSpot* rootBeamSpot_;
|
126 |
|
|
TClonesArray* rootVertices_;
|
127 |
|
|
TClonesArray* rootZeeVertices_;
|
128 |
|
|
TClonesArray* rootTracks_;
|
129 |
|
|
TClonesArray* rootJets_;
|
130 |
|
|
TClonesArray* rootMuons_;
|
131 |
|
|
TClonesArray* rootElectrons_;
|
132 |
|
|
TClonesArray* rootPhotons_;
|
133 |
|
|
TClonesArray* rootBasicClusters_;
|
134 |
|
|
TClonesArray* rootSuperClusters_;
|
135 |
|
|
TClonesArray* rootConversionTracks_;
|
136 |
|
|
TClonesArray* rootMETs_;
|
137 |
|
|
|
138 |
mlethuil |
1.1 |
};
|
139 |
|
|
|
140 |
|
|
#endif
|