ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TotoAnalyzer.h
Revision: 1.9
Committed: Thu Oct 30 16:25:34 2008 UTC (16 years, 6 months ago) by lethuill
Content type: text/plain
Branch: MAIN
Changes since 1.8: +9 -7 lines
Log Message:
Updated for 2.1.X

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