ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TotoAnalyzer.h
Revision: 1.8
Committed: Wed Oct 1 16:06:20 2008 UTC (16 years, 7 months ago) by lethuill
Content type: text/plain
Branch: MAIN
CVS Tags: cmssw_1_6_12
Changes since 1.7: +1 -0 lines
Log Message:
add EventID

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