ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TotoAnalyzer.h
Revision: 1.7
Committed: Wed Sep 3 15:02:32 2008 UTC (16 years, 8 months ago) by mlethuil
Content type: text/plain
Branch: MAIN
Changes since 1.6: +6 -0 lines
Log Message:
Bug correction to use Ted Likelihood for converted photon

File Contents

# Content
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 #include "FWCore/Framework/interface/EventSetup.h"
15 #include "FWCore/Framework/interface/ESHandle.h"
16 #include "FWCore/Utilities/interface/EDMException.h"
17 #include "FWCore/ParameterSet/interface/ParameterSet.h"
18 #include "FWCore/ParameterSet/interface/FileInPath.h"
19
20
21 #include "DataFormats/Common/interface/Ref.h"
22 #include "DataFormats/DetId/interface/DetId.h"
23 #include "DataFormats/Candidate/interface/Candidate.h"
24
25 #include "DataFormats/EgammaCandidates/interface/PixelMatchGsfElectron.h"
26 #include "DataFormats/EgammaCandidates/interface/Photon.h"
27 #include "DataFormats/EgammaReco/interface/BasicCluster.h"
28 #include "DataFormats/EgammaReco/interface/SuperCluster.h"
29 #include "DataFormats/EgammaReco/interface/BasicClusterShapeAssociation.h"
30 #include "DataFormats/EgammaReco/interface/ClusterShape.h"
31
32 #include "DataFormats/MuonReco/interface/Muon.h"
33
34 #include "DataFormats/JetReco/interface/Jet.h"
35 #include "DataFormats/JetReco/interface/CaloJetCollection.h"
36 #include "DataFormats/JetReco/interface/CaloJet.h"
37 #include "DataFormats/JetReco/interface/GenJet.h"
38 #include "DataFormats/JetReco/interface/GenJetfwd.h"
39
40 #include "DataFormats/CaloTowers/interface/CaloTowerCollection.h"
41
42 #include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h"
43 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
44 #include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
45 #include "Geometry/CaloGeometry/interface/CaloGeometry.h"
46 #include "Geometry/Records/interface/IdealGeometryRecord.h"
47
48
49 #include "DataFormats/METReco/interface/CaloMETCollection.h"
50
51 #include "DataFormats/BTauReco/interface/JetTracksAssociation.h"
52 #include "DataFormats/BTauReco/interface/IsolatedTauTagInfo.h"
53
54 #include "DataFormats/TrackReco/interface/Track.h"
55 #include "DataFormats/TrackReco/interface/HitPattern.h"
56
57 #include "DataFormats/VertexReco/interface/Vertex.h"
58
59 #include "DataFormats/HepMCCandidate/interface/GenParticleCandidate.h"
60 #include "SimDataFormats/HepMCProduct/interface/HepMCProduct.h"
61 #include "PhysicsTools/HepMCCandAlgos/interface/CSA07ProcessId.h"
62
63 #include "FWCore/Framework/interface/TriggerNames.h"
64 #include "DataFormats/Common/interface/TriggerResults.h"
65
66 #include "RecoEgamma/EgammaTools/interface/ConversionLikelihoodCalculator.h"
67
68 #include "UserCode/Morgan/interface/MCAnalyzer.h"
69 #include "UserCode/Morgan/interface/PhotonAnalyzer.h"
70 #include "UserCode/Morgan/interface/ClusterAnalyzer.h"
71 #include "UserCode/Morgan/interface/SuperClusterAnalyzer.h"
72 #include "UserCode/Morgan/interface/ClusterAssociator.h"
73 #include "UserCode/Morgan/interface/PhotonAssociator.h"
74 #include "UserCode/Morgan/interface/PhotonIsolator.h"
75 #include "UserCode/Morgan/interface/HLTAnalyzer.h"
76
77 #include "UserCode/Morgan/interface/TRootRun.h"
78 #include "UserCode/Morgan/interface/TRootEvent.h"
79 #include "UserCode/Morgan/interface/TRootSignalEvent.h"
80 #include "UserCode/Morgan/interface/TRootParticle.h"
81 #include "UserCode/Morgan/interface/TRootPhoton.h"
82 #include "UserCode/Morgan/interface/TRootElectron.h"
83 #include "UserCode/Morgan/interface/TRootMuon.h"
84 #include "UserCode/Morgan/interface/TRootJet.h"
85 #include "UserCode/Morgan/interface/TRootCluster.h"
86 #include "UserCode/Morgan/interface/TRootSuperCluster.h"
87
88 #include "TFile.h"
89 #include "TTree.h"
90 #include "TClonesArray.h"
91
92
93
94 class TotoAnalyzer : public edm::EDAnalyzer {
95 public:
96 explicit TotoAnalyzer(const edm::ParameterSet&);
97 ~TotoAnalyzer();
98
99
100 private:
101 virtual void beginJob(const edm::EventSetup&) ;
102 virtual void analyze(const edm::Event&, const edm::EventSetup&);
103 virtual void endJob() ;
104
105 // ----------member data ---------------------------
106
107 edm::ParameterSet myConfig;
108
109 int verbosity;
110 std::string rootFileName_ ;
111 TFile* rootFile_ ;
112 TTree* eventTree_;
113 TTree* runTree_;
114 bool isCSA07Soup;
115 bool doHLT;
116 bool doMC;
117 bool doSignalMC;
118 bool doTrack;
119 bool doJet;
120 bool doMuon;
121 bool doPhoton;
122 bool doElectron;
123 bool doCluster;
124 bool doPhotonIsolation;
125 bool doPhotonConversion;
126 bool doPhotonConversionMC;
127
128 ConversionLikelihoodCalculator* conversionLikelihoodCalculator_;
129
130 MCAnalyzer* myMCAnalyzer;
131 PhotonAnalyzer* myPhotonAnalyzer;
132 ClusterAnalyzer* myClusterAnalyzer;
133 SuperClusterAnalyzer* mySClusterAnalyzer;
134
135 int nTotEvt_;
136 HLTAnalyzer* hltAnalyzer_;
137 TRootRun* runInfos_;
138 TRootEvent* rootEvent;
139 TRootSignalEvent* rootMCSignalEvent;
140 TClonesArray* mcParticles;
141 TClonesArray* mcPhotons;
142 TClonesArray* tracks;
143 TClonesArray* jets;
144 TClonesArray* muons;
145 TClonesArray* electrons;
146 TClonesArray* uncorrectedPhotons;
147 TClonesArray* correctedPhotons;
148 TClonesArray* clusters;
149 TClonesArray* superClusters;
150 TClonesArray* conversionTracks;
151
152 };
153
154 #endif