ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TotoAnalyzer.h
Revision: 1.21
Committed: Wed Jun 10 11:17:06 2009 UTC (15 years, 10 months ago) by lethuill
Content type: text/plain
Branch: MAIN
CVS Tags: all_2_2_9_01
Changes since 1.20: +67 -67 lines
Log Message:
Better protection against missing collection / Cleaning data format selection / Last iteration for migration to PAT of Photons

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     #include "../interface/PhotonAssociator.h"
41     #include "../interface/PhotonIsolator.h"
42    
43     #include "../interface/TRootRun.h"
44     #include "../interface/TRootEvent.h"
45     #include "../interface/TRootSignalEvent.h"
46     #include "../interface/TRootParticle.h"
47 lethuill 1.15 #include "../interface/TRootMCParticle.h"
48 lethuill 1.19 #include "../interface/TRootBeamSpot.h"
49 lethuill 1.17 #include "../interface/TRootVertex.h"
50     #include "../interface/TRootTrack.h"
51 lethuill 1.11 #include "../interface/TRootJet.h"
52     #include "../interface/TRootMuon.h"
53     #include "../interface/TRootElectron.h"
54     #include "../interface/TRootPhoton.h"
55     #include "../interface/TRootCluster.h"
56     #include "../interface/TRootSuperCluster.h"
57     #include "../interface/TRootMET.h"
58 mlethuil 1.1
59     #include "TFile.h"
60     #include "TTree.h"
61     #include "TClonesArray.h"
62    
63    
64 lethuill 1.21 class TotoAnalyzer : public edm::EDAnalyzer
65     {
66 mlethuil 1.1
67 lethuill 1.21 public:
68     explicit TotoAnalyzer(const edm::ParameterSet&);
69     ~TotoAnalyzer();
70    
71     private:
72     virtual void beginJob(const edm::EventSetup&) ;
73     virtual void analyze(const edm::Event&, const edm::EventSetup&);
74     virtual void endJob() ;
75    
76     edm::ParameterSet myConfig_;
77     edm::ParameterSet producersNames_;
78    
79     int verbosity_;
80     bool allowMissingCollection_;
81     std::string rootFileName_ ;
82     TFile* rootFile_ ;
83     TTree* eventTree_;
84     TTree* runTree_;
85     std::string dataType_ ;
86     double datasetXsection_;
87     std::string datasetDesciption_;
88     bool doHLT_;
89     bool doMC_;
90     bool doJetMC_;
91     bool doMETMC_;
92     bool doPDFInfo_;
93     bool doSignalMuMuGamma_;
94     bool doSignalTopTop_;
95     bool doPhotonConversionMC_;
96     bool drawMCTree_;
97     bool doBeamSpot_;
98     bool doPrimaryVertex_;
99     bool doTrack_;
100     bool doJet_;
101     bool doMuon_;
102     bool doElectron_;
103     bool doPhoton_;
104     bool doCluster_;
105     bool doPhotonConversion_;
106     bool doPhotonIsolation_;
107     bool doMET_;
108    
109     ConversionLikelihoodCalculator* conversionLikelihoodCalculator_;
110    
111     int nTotEvt_;
112     TRootRun* runInfos_;
113     TRootEvent* rootEvent_;
114     HLTAnalyzer* hltAnalyzer_;
115     TClonesArray* rootMCParticles_;
116     TClonesArray* rootGenJets_;
117     TClonesArray* rootGenMETs_;
118     TRootSignalEvent* rootMuMuGammaEvent_;
119     TClonesArray* rootMCTopTop_;
120     TClonesArray* rootMCPhotons_;
121     TRootBeamSpot* rootBeamSpot_;
122     TClonesArray* rootVertices_;
123     TClonesArray* rootTracks_;
124     TClonesArray* rootJets_;
125     TClonesArray* rootMuons_;
126     TClonesArray* rootElectrons_;
127     TClonesArray* rootPhotons_;
128     TClonesArray* rootBasicClusters_;
129     TClonesArray* rootSuperClusters_;
130     TClonesArray* rootConversionTracks_;
131     TClonesArray* rootMETs_;
132 lethuill 1.13
133 mlethuil 1.1 };
134    
135     #endif