ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TotoAnalyzer.h
Revision: 1.17
Committed: Fri Apr 10 12:06:37 2009 UTC (16 years ago) by lethuill
Content type: text/plain
Branch: MAIN
CVS Tags: RecoPhoton_2_2_7_01, pat_2_2_5_03
Changes since 1.16: +3 -0 lines
Log Message:
Add "Vertices" branch with TCloneArray of TRootVertex

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.12 bool doPrimaryVertex;
93 mlethuil 1.1 bool doTrack;
94     bool doJet;
95     bool doMuon;
96     bool doPhoton;
97     bool doElectron;
98     bool doCluster;
99 lethuill 1.10 bool doMET;
100 mlethuil 1.3 bool doPhotonIsolation;
101 mlethuil 1.2 bool doPhotonConversion;
102 mlethuil 1.6 bool doPhotonConversionMC;
103 lethuill 1.10 bool drawMCTree;
104 mlethuil 1.1
105 mlethuil 1.7 ConversionLikelihoodCalculator* conversionLikelihoodCalculator_;
106    
107 mlethuil 1.1 int nTotEvt_;
108 mlethuil 1.4 HLTAnalyzer* hltAnalyzer_;
109     TRootRun* runInfos_;
110 mlethuil 1.1 TRootEvent* rootEvent;
111 lethuill 1.13 TRootSignalEvent* rootMuMuGammaEvent;
112 mlethuil 1.1 TClonesArray* mcParticles;
113 lethuill 1.16 TClonesArray* genJets;
114     TClonesArray* genMETs;
115 mlethuil 1.6 TClonesArray* mcPhotons;
116 lethuill 1.17 TClonesArray* vertices;
117 mlethuil 1.1 TClonesArray* tracks;
118     TClonesArray* jets;
119     TClonesArray* muons;
120     TClonesArray* electrons;
121 lethuill 1.9 TClonesArray* photons;
122 mlethuil 1.1 TClonesArray* clusters;
123     TClonesArray* superClusters;
124 mlethuil 1.2 TClonesArray* conversionTracks;
125 lethuill 1.11 TClonesArray* met;
126 lethuill 1.13 TClonesArray* rootMCTopTop;
127    
128 mlethuil 1.1 };
129    
130     #endif