ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TotoAnalyzer.h
Revision: 1.19
Committed: Tue Apr 21 10:42:22 2009 UTC (16 years ago) by lethuill
Content type: text/plain
Branch: MAIN
CVS Tags: pat_2_2_7_01
Changes since 1.18: +3 -0 lines
Log Message:
Use beam spot in impact parameter calculation

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    
65     class TotoAnalyzer : public edm::EDAnalyzer {
66     public:
67     explicit TotoAnalyzer(const edm::ParameterSet&);
68     ~TotoAnalyzer();
69    
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 lethuill 1.9 edm::ParameterSet myConfig_;
77     edm::ParameterSet producersNames_;
78 mlethuil 1.1
79     int verbosity;
80     std::string rootFileName_ ;
81     TFile* rootFile_ ;
82 mlethuil 1.4 TTree* eventTree_;
83 lethuill 1.11 TTree* runTree_;
84     std::string dataType_ ;
85 mlethuil 1.5 bool isCSA07Soup;
86 mlethuil 1.4 bool doHLT;
87 mlethuil 1.1 bool doMC;
88 lethuill 1.16 bool doJetMC;
89     bool doMETMC;
90 lethuill 1.14 bool doPDFInfo;
91 lethuill 1.13 bool doSignalMuMuGamma;
92     bool doSignalTopTop;
93 lethuill 1.18 bool doPhotonConversionMC;
94     bool drawMCTree;
95 lethuill 1.19 bool doBeamSpot;
96 lethuill 1.12 bool doPrimaryVertex;
97 mlethuil 1.1 bool doTrack;
98     bool doJet;
99     bool doMuon;
100 lethuill 1.18 bool doElectron;
101 mlethuil 1.1 bool doPhoton;
102     bool doCluster;
103 lethuill 1.18 bool doPhotonConversion;
104     bool doPhotonIsolation;
105 lethuill 1.10 bool doMET;
106 mlethuil 1.1
107 mlethuil 1.7 ConversionLikelihoodCalculator* conversionLikelihoodCalculator_;
108    
109 mlethuil 1.1 int nTotEvt_;
110 mlethuil 1.4 TRootRun* runInfos_;
111 mlethuil 1.1 TRootEvent* rootEvent;
112 lethuill 1.18 HLTAnalyzer* hltAnalyzer_;
113 mlethuil 1.1 TClonesArray* mcParticles;
114 lethuill 1.16 TClonesArray* genJets;
115     TClonesArray* genMETs;
116 lethuill 1.18 TRootSignalEvent* rootMuMuGammaEvent;
117     TClonesArray* rootMCTopTop;
118 mlethuil 1.6 TClonesArray* mcPhotons;
119 lethuill 1.19 TRootBeamSpot* rootBeamSpot;
120 lethuill 1.17 TClonesArray* vertices;
121 mlethuil 1.1 TClonesArray* tracks;
122     TClonesArray* jets;
123     TClonesArray* muons;
124     TClonesArray* electrons;
125 lethuill 1.9 TClonesArray* photons;
126 mlethuil 1.1 TClonesArray* clusters;
127     TClonesArray* superClusters;
128 mlethuil 1.2 TClonesArray* conversionTracks;
129 lethuill 1.11 TClonesArray* met;
130 lethuill 1.13
131 mlethuil 1.1 };
132    
133     #endif