11 |
|
#include "FWCore/Framework/interface/MakerMacros.h" |
12 |
|
#include "FWCore/Framework/interface/EDAnalyzer.h" |
13 |
|
#include "FWCore/Framework/interface/Event.h" |
14 |
+ |
#include "DataFormats/Provenance/interface/EventID.h" |
15 |
|
#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 |
< |
|
19 |
< |
#include "DataFormats/Common/interface/Ref.h" |
20 |
< |
#include "DataFormats/DetId/interface/DetId.h" |
21 |
< |
#include "DataFormats/Candidate/interface/Candidate.h" |
22 |
< |
|
23 |
< |
#include "DataFormats/EgammaCandidates/interface/PixelMatchGsfElectron.h" |
24 |
< |
#include "DataFormats/EgammaCandidates/interface/Photon.h" |
25 |
< |
#include "DataFormats/EgammaReco/interface/BasicCluster.h" |
26 |
< |
#include "DataFormats/EgammaReco/interface/SuperCluster.h" |
27 |
< |
#include "DataFormats/EgammaReco/interface/BasicClusterShapeAssociation.h" |
28 |
< |
#include "DataFormats/EgammaReco/interface/ClusterShape.h" |
29 |
< |
|
30 |
< |
#include "DataFormats/MuonReco/interface/Muon.h" |
31 |
< |
|
32 |
< |
#include "DataFormats/JetReco/interface/Jet.h" |
33 |
< |
#include "DataFormats/JetReco/interface/CaloJetCollection.h" |
34 |
< |
#include "DataFormats/JetReco/interface/CaloJet.h" |
35 |
< |
#include "DataFormats/JetReco/interface/GenJet.h" |
36 |
< |
#include "DataFormats/JetReco/interface/GenJetfwd.h" |
37 |
< |
|
38 |
< |
#include "DataFormats/CaloTowers/interface/CaloTowerCollection.h" |
39 |
< |
|
40 |
< |
#include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h" |
41 |
< |
#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h" |
42 |
< |
#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h" |
43 |
< |
#include "Geometry/CaloGeometry/interface/CaloGeometry.h" |
44 |
< |
#include "Geometry/Records/interface/IdealGeometryRecord.h" |
45 |
< |
|
46 |
< |
|
47 |
< |
#include "DataFormats/METReco/interface/CaloMETCollection.h" |
48 |
< |
|
49 |
< |
#include "DataFormats/BTauReco/interface/JetTracksAssociation.h" |
50 |
< |
#include "DataFormats/BTauReco/interface/IsolatedTauTagInfo.h" |
51 |
< |
|
52 |
< |
#include "DataFormats/TrackReco/interface/Track.h" |
53 |
< |
#include "DataFormats/TrackReco/interface/HitPattern.h" |
54 |
< |
|
55 |
< |
#include "DataFormats/VertexReco/interface/Vertex.h" |
56 |
< |
|
57 |
< |
#include "DataFormats/HepMCCandidate/interface/GenParticleCandidate.h" |
58 |
< |
#include "SimDataFormats/HepMCProduct/interface/HepMCProduct.h" |
59 |
< |
#include "PhysicsTools/HepMCCandAlgos/interface/CSA07ProcessId.h" |
19 |
> |
#include "FWCore/ParameterSet/interface/FileInPath.h" |
20 |
|
|
21 |
|
#include "FWCore/Framework/interface/TriggerNames.h" |
22 |
|
#include "DataFormats/Common/interface/TriggerResults.h" |
23 |
|
|
24 |
< |
#include "UserCode/Morgan/interface/MCAnalyzer.h" |
25 |
< |
#include "UserCode/Morgan/interface/PhotonAnalyzer.h" |
26 |
< |
#include "UserCode/Morgan/interface/ClusterAnalyzer.h" |
27 |
< |
#include "UserCode/Morgan/interface/SuperClusterAnalyzer.h" |
28 |
< |
#include "UserCode/Morgan/interface/ClusterAssociator.h" |
29 |
< |
#include "UserCode/Morgan/interface/PhotonAssociator.h" |
30 |
< |
#include "UserCode/Morgan/interface/PhotonIsolator.h" |
31 |
< |
#include "UserCode/Morgan/interface/HLTAnalyzer.h" |
32 |
< |
|
33 |
< |
#include "UserCode/Morgan/interface/TRootRun.h" |
34 |
< |
#include "UserCode/Morgan/interface/TRootEvent.h" |
35 |
< |
#include "UserCode/Morgan/interface/TRootSignalEvent.h" |
36 |
< |
#include "UserCode/Morgan/interface/TRootParticle.h" |
37 |
< |
#include "UserCode/Morgan/interface/TRootPhoton.h" |
38 |
< |
#include "UserCode/Morgan/interface/TRootElectron.h" |
39 |
< |
#include "UserCode/Morgan/interface/TRootMuon.h" |
40 |
< |
#include "UserCode/Morgan/interface/TRootJet.h" |
41 |
< |
#include "UserCode/Morgan/interface/TRootCluster.h" |
42 |
< |
#include "UserCode/Morgan/interface/TRootSuperCluster.h" |
24 |
> |
#include "RecoEcal/EgammaCoreTools/interface/EcalClusterLazyTools.h" |
25 |
> |
#include "RecoEgamma/EgammaTools/interface/ConversionLikelihoodCalculator.h" |
26 |
> |
|
27 |
> |
#include "../interface/HLTAnalyzer.h" |
28 |
> |
#include "../interface/MCAnalyzer.h" |
29 |
> |
#include "../interface/MCAssociator.h" |
30 |
> |
#include "../interface/VertexAnalyzer.h" |
31 |
> |
#include "../interface/TrackAnalyzer.h" |
32 |
> |
#include "../interface/JetAnalyzer.h" |
33 |
> |
#include "../interface/MuonAnalyzer.h" |
34 |
> |
#include "../interface/ElectronAnalyzer.h" |
35 |
> |
#include "../interface/PhotonAnalyzer.h" |
36 |
> |
#include "../interface/ClusterAnalyzer.h" |
37 |
> |
#include "../interface/SuperClusterAnalyzer.h" |
38 |
> |
#include "../interface/METAnalyzer.h" |
39 |
> |
#include "../interface/ClusterAssociator.h" |
40 |
> |
#include "../interface/ElectronAssociator.h" |
41 |
> |
#include "../interface/PhotonAssociator.h" |
42 |
> |
#include "../interface/PhotonIsolator.h" |
43 |
> |
#include "../interface/AmbiguitySolver.h" |
44 |
> |
|
45 |
> |
#include "../interface/TRootRun.h" |
46 |
> |
#include "../interface/TRootEvent.h" |
47 |
> |
#include "../interface/TRootSignalEvent.h" |
48 |
> |
#include "../interface/TRootParticle.h" |
49 |
> |
#include "../interface/TRootMCParticle.h" |
50 |
> |
#include "../interface/TRootBeamSpot.h" |
51 |
> |
#include "../interface/TRootVertex.h" |
52 |
> |
#include "../interface/TRootTrack.h" |
53 |
> |
#include "../interface/TRootJet.h" |
54 |
> |
#include "../interface/TRootMuon.h" |
55 |
> |
#include "../interface/TRootElectron.h" |
56 |
> |
#include "../interface/TRootPhoton.h" |
57 |
> |
#include "../interface/TRootCluster.h" |
58 |
> |
#include "../interface/TRootSuperCluster.h" |
59 |
> |
#include "../interface/TRootMET.h" |
60 |
|
|
61 |
|
#include "TFile.h" |
62 |
|
#include "TTree.h" |
63 |
|
#include "TClonesArray.h" |
64 |
|
|
65 |
|
|
66 |
+ |
class TotoAnalyzer : public edm::EDAnalyzer |
67 |
+ |
{ |
68 |
+ |
|
69 |
+ |
public: |
70 |
+ |
explicit TotoAnalyzer(const edm::ParameterSet&); |
71 |
+ |
~TotoAnalyzer(); |
72 |
+ |
|
73 |
+ |
private: |
74 |
+ |
virtual void beginJob(const edm::EventSetup&) ; |
75 |
+ |
virtual void analyze(const edm::Event&, const edm::EventSetup&); |
76 |
+ |
virtual void endJob() ; |
77 |
+ |
|
78 |
+ |
edm::ParameterSet myConfig_; |
79 |
+ |
edm::ParameterSet producersNames_; |
80 |
+ |
|
81 |
+ |
int verbosity_; |
82 |
+ |
bool allowMissingCollection_; |
83 |
+ |
std::string rootFileName_ ; |
84 |
+ |
TFile* rootFile_ ; |
85 |
+ |
TTree* eventTree_; |
86 |
+ |
TTree* runTree_; |
87 |
+ |
std::string dataType_ ; |
88 |
+ |
double datasetXsection_; |
89 |
+ |
std::string datasetDesciption_; |
90 |
+ |
bool doHLT_; |
91 |
+ |
bool doMC_; |
92 |
+ |
bool doJetMC_; |
93 |
+ |
bool doMETMC_; |
94 |
+ |
bool doPDFInfo_; |
95 |
+ |
bool doSignalMuMuGamma_; |
96 |
+ |
bool doSignalTopTop_; |
97 |
+ |
bool doPhotonConversionMC_; |
98 |
+ |
bool drawMCTree_; |
99 |
+ |
bool doBeamSpot_; |
100 |
+ |
bool doPrimaryVertex_; |
101 |
+ |
bool doTrack_; |
102 |
+ |
bool doJet_; |
103 |
+ |
bool doMuon_; |
104 |
+ |
bool doElectron_; |
105 |
+ |
bool doPhoton_; |
106 |
+ |
bool doCluster_; |
107 |
+ |
bool doPhotonConversion_; |
108 |
+ |
bool doPhotonIsolation_; |
109 |
+ |
bool doMET_; |
110 |
+ |
|
111 |
+ |
ConversionLikelihoodCalculator* conversionLikelihoodCalculator_; |
112 |
+ |
|
113 |
+ |
int nTotEvt_; |
114 |
+ |
TRootRun* runInfos_; |
115 |
+ |
TRootEvent* rootEvent_; |
116 |
+ |
HLTAnalyzer* hltAnalyzer_; |
117 |
+ |
TClonesArray* rootMCParticles_; |
118 |
+ |
TClonesArray* rootGenJets_; |
119 |
+ |
TClonesArray* rootGenMETs_; |
120 |
+ |
TRootSignalEvent* rootMuMuGammaEvent_; |
121 |
+ |
TClonesArray* rootMCTopTop_; |
122 |
+ |
TClonesArray* rootMCPhotons_; |
123 |
+ |
TRootBeamSpot* rootBeamSpot_; |
124 |
+ |
TClonesArray* rootVertices_; |
125 |
+ |
TClonesArray* rootTracks_; |
126 |
+ |
TClonesArray* rootJets_; |
127 |
+ |
TClonesArray* rootMuons_; |
128 |
+ |
TClonesArray* rootElectrons_; |
129 |
+ |
TClonesArray* rootPhotons_; |
130 |
+ |
TClonesArray* rootBasicClusters_; |
131 |
+ |
TClonesArray* rootSuperClusters_; |
132 |
+ |
TClonesArray* rootConversionTracks_; |
133 |
+ |
TClonesArray* rootMETs_; |
134 |
|
|
90 |
– |
class TotoAnalyzer : public edm::EDAnalyzer { |
91 |
– |
public: |
92 |
– |
explicit TotoAnalyzer(const edm::ParameterSet&); |
93 |
– |
~TotoAnalyzer(); |
94 |
– |
|
95 |
– |
|
96 |
– |
private: |
97 |
– |
virtual void beginJob(const edm::EventSetup&) ; |
98 |
– |
virtual void analyze(const edm::Event&, const edm::EventSetup&); |
99 |
– |
virtual void endJob() ; |
100 |
– |
|
101 |
– |
// ----------member data --------------------------- |
102 |
– |
|
103 |
– |
edm::ParameterSet myConfig; |
104 |
– |
|
105 |
– |
int verbosity; |
106 |
– |
std::string rootFileName_ ; |
107 |
– |
TFile* rootFile_ ; |
108 |
– |
TTree* eventTree_; |
109 |
– |
TTree* runTree_; |
110 |
– |
bool isCSA07Soup; |
111 |
– |
bool doHLT; |
112 |
– |
bool doMC; |
113 |
– |
bool doSignalMC; |
114 |
– |
bool doTrack; |
115 |
– |
bool doJet; |
116 |
– |
bool doMuon; |
117 |
– |
bool doPhoton; |
118 |
– |
bool doElectron; |
119 |
– |
bool doCluster; |
120 |
– |
bool doPhotonIsolation; |
121 |
– |
bool doPhotonConversion; |
122 |
– |
bool doPhotonConversionMC; |
123 |
– |
|
124 |
– |
MCAnalyzer* myMCAnalyzer; |
125 |
– |
PhotonAnalyzer* myPhotonAnalyzer; |
126 |
– |
ClusterAnalyzer* myClusterAnalyzer; |
127 |
– |
SuperClusterAnalyzer* mySClusterAnalyzer; |
128 |
– |
|
129 |
– |
int nTotEvt_; |
130 |
– |
HLTAnalyzer* hltAnalyzer_; |
131 |
– |
TRootRun* runInfos_; |
132 |
– |
TRootEvent* rootEvent; |
133 |
– |
TRootSignalEvent* rootMCSignalEvent; |
134 |
– |
TClonesArray* mcParticles; |
135 |
– |
TClonesArray* mcPhotons; |
136 |
– |
TClonesArray* tracks; |
137 |
– |
TClonesArray* jets; |
138 |
– |
TClonesArray* muons; |
139 |
– |
TClonesArray* electrons; |
140 |
– |
TClonesArray* uncorrectedPhotons; |
141 |
– |
TClonesArray* correctedPhotons; |
142 |
– |
TClonesArray* clusters; |
143 |
– |
TClonesArray* superClusters; |
144 |
– |
TClonesArray* conversionTracks; |
145 |
– |
|
135 |
|
}; |
136 |
|
|
137 |
|
#endif |