ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TotoAnalyzer.h
Revision: 1.11
Committed: Mon Dec 1 15:58:05 2008 UTC (16 years, 5 months ago) by lethuill
Content type: text/plain
Branch: MAIN
Changes since 1.10: +29 -26 lines
Log Message:
Proto-version for use with different data formats (RECO/AOD/PAT/PAT+AOD)
Replace the absolute path /UserCode/Morgan with a relative one

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     #include "../interface/VertexAnalyzer.h"
30     #include "../interface/TrackAnalyzer.h"
31     #include "../interface/JetAnalyzer.h"
32     #include "../interface/MuonAnalyzer.h"
33     #include "../interface/ElectronAnalyzer.h"
34     #include "../interface/PhotonAnalyzer.h"
35     #include "../interface/ClusterAnalyzer.h"
36     #include "../interface/SuperClusterAnalyzer.h"
37     #include "../interface/METAnalyzer.h"
38     #include "../interface/ClusterAssociator.h"
39     #include "../interface/PhotonAssociator.h"
40     #include "../interface/PhotonIsolator.h"
41    
42     #include "../interface/TRootRun.h"
43     #include "../interface/TRootEvent.h"
44     #include "../interface/TRootSignalEvent.h"
45     #include "../interface/TRootParticle.h"
46     #include "../interface/TRootJet.h"
47     #include "../interface/TRootMuon.h"
48     #include "../interface/TRootElectron.h"
49     #include "../interface/TRootPhoton.h"
50     #include "../interface/TRootCluster.h"
51     #include "../interface/TRootSuperCluster.h"
52     #include "../interface/TRootMET.h"
53 mlethuil 1.1
54     #include "TFile.h"
55     #include "TTree.h"
56     #include "TClonesArray.h"
57    
58    
59    
60     class TotoAnalyzer : public edm::EDAnalyzer {
61     public:
62     explicit TotoAnalyzer(const edm::ParameterSet&);
63     ~TotoAnalyzer();
64    
65    
66     private:
67     virtual void beginJob(const edm::EventSetup&) ;
68     virtual void analyze(const edm::Event&, const edm::EventSetup&);
69     virtual void endJob() ;
70    
71 lethuill 1.9 edm::ParameterSet myConfig_;
72     edm::ParameterSet producersNames_;
73 mlethuil 1.1
74     int verbosity;
75     std::string rootFileName_ ;
76     TFile* rootFile_ ;
77 mlethuil 1.4 TTree* eventTree_;
78 lethuill 1.11 TTree* runTree_;
79     std::string dataType_ ;
80 mlethuil 1.5 bool isCSA07Soup;
81 mlethuil 1.4 bool doHLT;
82 mlethuil 1.1 bool doMC;
83     bool doSignalMC;
84     bool doTrack;
85     bool doJet;
86     bool doMuon;
87     bool doPhoton;
88     bool doElectron;
89     bool doCluster;
90 lethuill 1.10 bool doMET;
91 mlethuil 1.3 bool doPhotonIsolation;
92 mlethuil 1.2 bool doPhotonConversion;
93 mlethuil 1.6 bool doPhotonConversionMC;
94 lethuill 1.10 bool drawMCTree;
95 mlethuil 1.1
96 mlethuil 1.7 ConversionLikelihoodCalculator* conversionLikelihoodCalculator_;
97    
98 mlethuil 1.1 int nTotEvt_;
99 mlethuil 1.4 HLTAnalyzer* hltAnalyzer_;
100     TRootRun* runInfos_;
101 mlethuil 1.1 TRootEvent* rootEvent;
102     TRootSignalEvent* rootMCSignalEvent;
103     TClonesArray* mcParticles;
104 mlethuil 1.6 TClonesArray* mcPhotons;
105 mlethuil 1.1 TClonesArray* tracks;
106     TClonesArray* jets;
107     TClonesArray* muons;
108     TClonesArray* electrons;
109 lethuill 1.9 TClonesArray* photons;
110 mlethuil 1.1 TClonesArray* clusters;
111     TClonesArray* superClusters;
112 mlethuil 1.2 TClonesArray* conversionTracks;
113 lethuill 1.11 TClonesArray* met;
114 mlethuil 1.4
115 mlethuil 1.1 };
116    
117     #endif