ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TotoAnalyzer.h
Revision: 1.23
Committed: Fri Jul 3 13:40:03 2009 UTC (15 years, 10 months ago) by lethuill
Content type: text/plain
Branch: MAIN
CVS Tags: all_3_2_5_01, all_2_2_9_03
Branch point for: CMSSW_2_2_X_br
Changes since 1.22: +1 -0 lines
Log Message:
Add tag for electron and photon sharing the same supercluster

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 "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 #include "FWCore/ParameterSet/interface/FileInPath.h"
20
21 #include "FWCore/Framework/interface/TriggerNames.h"
22 #include "DataFormats/Common/interface/TriggerResults.h"
23
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
135 };
136
137 #endif