ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TotoAnalyzer.h
Revision: 1.18
Committed: Fri Apr 17 12:57:13 2009 UTC (16 years ago) by lethuill
Content type: text/plain
Branch: MAIN
Changes since 1.17: +8 -8 lines
Log Message:
Missing delete at end of event for genJets and genMETs TCloneArray

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.17 #include "../interface/TRootVertex.h"
49     #include "../interface/TRootTrack.h"
50 lethuill 1.11 #include "../interface/TRootJet.h"
51     #include "../interface/TRootMuon.h"
52     #include "../interface/TRootElectron.h"
53     #include "../interface/TRootPhoton.h"
54     #include "../interface/TRootCluster.h"
55     #include "../interface/TRootSuperCluster.h"
56     #include "../interface/TRootMET.h"
57 mlethuil 1.1
58     #include "TFile.h"
59     #include "TTree.h"
60     #include "TClonesArray.h"
61    
62    
63    
64     class TotoAnalyzer : public edm::EDAnalyzer {
65     public:
66     explicit TotoAnalyzer(const edm::ParameterSet&);
67     ~TotoAnalyzer();
68    
69    
70     private:
71     virtual void beginJob(const edm::EventSetup&) ;
72     virtual void analyze(const edm::Event&, const edm::EventSetup&);
73     virtual void endJob() ;
74    
75 lethuill 1.9 edm::ParameterSet myConfig_;
76     edm::ParameterSet producersNames_;
77 mlethuil 1.1
78     int verbosity;
79     std::string rootFileName_ ;
80     TFile* rootFile_ ;
81 mlethuil 1.4 TTree* eventTree_;
82 lethuill 1.11 TTree* runTree_;
83     std::string dataType_ ;
84 mlethuil 1.5 bool isCSA07Soup;
85 mlethuil 1.4 bool doHLT;
86 mlethuil 1.1 bool doMC;
87 lethuill 1.16 bool doJetMC;
88     bool doMETMC;
89 lethuill 1.14 bool doPDFInfo;
90 lethuill 1.13 bool doSignalMuMuGamma;
91     bool doSignalTopTop;
92 lethuill 1.18 bool doPhotonConversionMC;
93     bool drawMCTree;
94 lethuill 1.12 bool doPrimaryVertex;
95 mlethuil 1.1 bool doTrack;
96     bool doJet;
97     bool doMuon;
98 lethuill 1.18 bool doElectron;
99 mlethuil 1.1 bool doPhoton;
100     bool doCluster;
101 lethuill 1.18 bool doPhotonConversion;
102     bool doPhotonIsolation;
103 lethuill 1.10 bool doMET;
104 mlethuil 1.1
105 mlethuil 1.7 ConversionLikelihoodCalculator* conversionLikelihoodCalculator_;
106    
107 mlethuil 1.1 int nTotEvt_;
108 mlethuil 1.4 TRootRun* runInfos_;
109 mlethuil 1.1 TRootEvent* rootEvent;
110 lethuill 1.18 HLTAnalyzer* hltAnalyzer_;
111 mlethuil 1.1 TClonesArray* mcParticles;
112 lethuill 1.16 TClonesArray* genJets;
113     TClonesArray* genMETs;
114 lethuill 1.18 TRootSignalEvent* rootMuMuGammaEvent;
115     TClonesArray* rootMCTopTop;
116 mlethuil 1.6 TClonesArray* mcPhotons;
117 lethuill 1.17 TClonesArray* vertices;
118 mlethuil 1.1 TClonesArray* tracks;
119     TClonesArray* jets;
120     TClonesArray* muons;
121     TClonesArray* electrons;
122 lethuill 1.9 TClonesArray* photons;
123 mlethuil 1.1 TClonesArray* clusters;
124     TClonesArray* superClusters;
125 mlethuil 1.2 TClonesArray* conversionTracks;
126 lethuill 1.11 TClonesArray* met;
127 lethuill 1.13
128 mlethuil 1.1 };
129    
130     #endif