ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TotoAnalyzer.h
Revision: 1.12
Committed: Mon Dec 1 16:14:56 2008 UTC (16 years, 5 months ago) by lethuill
Content type: text/plain
Branch: MAIN
Changes since 1.11: +1 -0 lines
Log Message:
Add doPrimaryVertex flag

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 lethuill 1.12 bool doPrimaryVertex;
85 mlethuil 1.1 bool doTrack;
86     bool doJet;
87     bool doMuon;
88     bool doPhoton;
89     bool doElectron;
90     bool doCluster;
91 lethuill 1.10 bool doMET;
92 mlethuil 1.3 bool doPhotonIsolation;
93 mlethuil 1.2 bool doPhotonConversion;
94 mlethuil 1.6 bool doPhotonConversionMC;
95 lethuill 1.10 bool drawMCTree;
96 mlethuil 1.1
97 mlethuil 1.7 ConversionLikelihoodCalculator* conversionLikelihoodCalculator_;
98    
99 mlethuil 1.1 int nTotEvt_;
100 mlethuil 1.4 HLTAnalyzer* hltAnalyzer_;
101     TRootRun* runInfos_;
102 mlethuil 1.1 TRootEvent* rootEvent;
103     TRootSignalEvent* rootMCSignalEvent;
104     TClonesArray* mcParticles;
105 mlethuil 1.6 TClonesArray* mcPhotons;
106 mlethuil 1.1 TClonesArray* tracks;
107     TClonesArray* jets;
108     TClonesArray* muons;
109     TClonesArray* electrons;
110 lethuill 1.9 TClonesArray* photons;
111 mlethuil 1.1 TClonesArray* clusters;
112     TClonesArray* superClusters;
113 mlethuil 1.2 TClonesArray* conversionTracks;
114 lethuill 1.11 TClonesArray* met;
115 mlethuil 1.4
116 mlethuil 1.1 };
117    
118     #endif