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

# User Rev Content
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     #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 lethuill 1.22 #include "../interface/ElectronAssociator.h"
41 lethuill 1.11 #include "../interface/PhotonAssociator.h"
42     #include "../interface/PhotonIsolator.h"
43 lethuill 1.23 #include "../interface/AmbiguitySolver.h"
44 lethuill 1.11
45     #include "../interface/TRootRun.h"
46     #include "../interface/TRootEvent.h"
47     #include "../interface/TRootSignalEvent.h"
48     #include "../interface/TRootParticle.h"
49 lethuill 1.15 #include "../interface/TRootMCParticle.h"
50 lethuill 1.19 #include "../interface/TRootBeamSpot.h"
51 lethuill 1.17 #include "../interface/TRootVertex.h"
52     #include "../interface/TRootTrack.h"
53 lethuill 1.11 #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 mlethuil 1.1
61     #include "TFile.h"
62     #include "TTree.h"
63     #include "TClonesArray.h"
64    
65    
66 lethuill 1.21 class TotoAnalyzer : public edm::EDAnalyzer
67     {
68 mlethuil 1.1
69 lethuill 1.21 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 lethuill 1.13
135 mlethuil 1.1 };
136    
137     #endif