ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/MCAnalyzer.h
Revision: 1.5
Committed: Mon Dec 1 15:58:04 2008 UTC (16 years, 5 months ago) by lethuill
Content type: text/plain
Branch: MAIN
Changes since 1.3: +27 -33 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 MCAnalyzer_h
2     #define MCAnalyzer_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/EDAnalyzer.h"
12     #include "FWCore/Framework/interface/Event.h"
13     //#include "FWCore/Framework/interface/Handle.h"
14     #include "FWCore/Framework/interface/MakerMacros.h"
15     #include "FWCore/ParameterSet/interface/ParameterSet.h"
16     #include "FWCore/Framework/interface/ESHandle.h"
17    
18 lethuill 1.3 #include "DataFormats/HepMCCandidate/interface/GenParticle.h"
19     #include "DataFormats/HepMCCandidate/interface/GenParticleFwd.h"
20 mlethuil 1.1
21 mlethuil 1.2 #include "SimDataFormats/Track/interface/SimTrack.h"
22     #include "SimDataFormats/Track/interface/SimTrackContainer.h"
23     #include "SimDataFormats/Vertex/interface/SimVertex.h"
24     #include "SimDataFormats/Vertex/interface/SimVertexContainer.h"
25     #include "RecoEgamma/EgammaMCTools/interface/PhotonMCTruthFinder.h"
26     #include "RecoEgamma/EgammaMCTools/interface/PhotonMCTruth.h"
27     #include "RecoEgamma/EgammaMCTools/interface/ElectronMCTruth.h"
28     //#include "DataFormats/EgammaCandidates/interface/ConvertedPhoton.h"
29    
30 lethuill 1.5 #include "../interface/ParticleTreeDrawer.h"
31     #include "../interface/TRootSignalEvent.h"
32     #include "../interface/TRootParticle.h"
33     #include "../interface/TRootMCPhoton.h"
34 mlethuil 1.1
35     #include "TClonesArray.h"
36    
37    
38    
39     class MCAnalyzer{
40    
41     public:
42     MCAnalyzer();
43 lethuill 1.5 MCAnalyzer(const edm::ParameterSet& config, const edm::ParameterSet& producersNames);
44 mlethuil 1.1 ~MCAnalyzer();
45 lethuill 1.5 void SetVerbosity(int verbosity) {verbosity_ = verbosity; };
46     void DrawMCTree(const edm::Event& iEvent, const edm::EventSetup& iSetup, const edm::ParameterSet& config, const edm::ParameterSet& producersNames);
47     void ProcessStableParticle(const edm::Event& iEvent, TClonesArray* rootMCParticles);
48     void ProcessConvertedPhoton(const edm::Event& iEvent, TClonesArray* rootMCPhotons);
49     void ProcessMuMuGammaEvent(const edm::Event& iEvent, TRootSignalEvent* rootSignalEvent);
50 mlethuil 1.1
51     private:
52 lethuill 1.5
53     int verbosity_;
54 mlethuil 1.1
55 lethuill 1.5 bool doPhotonMC_;
56     double photonMC_etaMax_;
57     double photonMC_ptMin_;
58     bool doElectronMC_;
59     double electronMC_etaMax_;
60     double electronMC_ptMin_;
61     bool doMuonMC_;
62     double muonMC_etaMax_;
63     double muonMC_ptMin_;
64     bool doJetMC_;
65     double jetMC_etaMax_;
66     double jetMC_ptMin_;
67    
68     std::string signalGenerator_;
69     edm::InputTag genParticlesProducer_;
70 mlethuil 1.1 };
71    
72     #endif