ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TotoAnalyzer.h
Revision: 1.15
Committed: Wed Dec 17 16:23:49 2008 UTC (16 years, 4 months ago) by lethuill
Content type: text/plain
Branch: MAIN
CVS Tags: pat_2_2_5_01, pat_2_1_12_02
Changes since 1.14: +2 -0 lines
Log Message:
Add reference (TRef) to mcParticle

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