ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/dasu/UltraFastSim/UltraFastSim.h
Revision: 1.9
Committed: Fri Feb 25 17:10:39 2011 UTC (14 years, 2 months ago) by dasu
Content type: text/plain
Branch: MAIN
Changes since 1.8: +2 -13 lines
Log Message:
Fixed bugs in writing UltraFastSim

File Contents

# User Rev Content
1 dasu 1.1 #ifndef UltraFastSim_H
2     #define UltraFastSim_H
3    
4     #include <vector>
5    
6     namespace Pythia8 {
7     class Rndm;
8     class Event;
9     class Particle;
10     }
11    
12     namespace fastjet {
13     class JetDefinition;
14     class ClusterSequence;
15     }
16    
17 dasu 1.8 #include "TObject.h"
18 jindal 1.7 #include "TParticle.h"
19     #include "TLorentzVector.h"
20 dasu 1.1
21 dasu 1.8 class UltraFastSim : public TObject {
22 dasu 1.1
23     public:
24    
25 dasu 1.9 UltraFastSim() {;}
26 dasu 1.1
27     virtual ~UltraFastSim() {;}
28    
29 dasu 1.9 bool run(Pythia8::Event &event, Pythia8::Rndm *r);
30 dasu 1.1
31 dasu 1.3 const std::vector<TParticle>& genTauList() {return genTaus;}
32 dasu 1.5 const std::vector<TParticle>& visTauList() {return visTaus;}
33 dasu 1.3 const std::vector<TParticle>& bQuarkList() {return bQuarks;}
34     const std::vector<TParticle>& cQuarkList() {return cQuarks;}
35     const std::vector<TParticle>& photonList() {return photons;}
36     const std::vector<TParticle>& electronList() {return electrons;}
37     const std::vector<TParticle>& muonList() {return muons;}
38 dasu 1.2 const std::vector<TParticle>& tauList() {return taus;}
39 dasu 1.3 const std::vector<TParticle>& chargedHadronList() {return chargedHadrons;}
40     const std::vector<TParticle>& neutralHadronList() {return neutralHadrons;}
41 dasu 1.8 const std::vector<TLorentzVector>& jetList() {return jets;}
42     const std::vector<TLorentzVector>& bJetList() {return bJets;}
43     const std::vector<TLorentzVector>& bJetListStdGeom() {return bJetsStdGeom;}
44 dasu 1.2
45 dasu 1.6 const TLorentzVector& getMET() {return MET;}
46     const TLorentzVector& getMHT() {return MHT;}
47    
48     const double getET() {return ET;}
49     const double getHT() {return HT;}
50    
51 dasu 1.1 private:
52    
53     void clear();
54    
55     void makeJets();
56     void makeTaus();
57 dasu 1.6 void makeETSums();
58 dasu 1.1
59 dasu 1.3 void setCommon(Pythia8::Particle& particle, TParticle& smearedParticle);
60     void tkSmear(Pythia8::Particle& particle, TParticle& smearedParticle);
61     void emSmear(Pythia8::Particle& particle, TParticle& smearedParticle);
62     void hdSmear(Pythia8::Particle& particle, TParticle& smearedParticle);
63 dasu 1.1
64 dasu 1.3 std::vector<TParticle> genTaus;
65 dasu 1.5 std::vector<TParticle> visTaus;
66 dasu 1.3 std::vector<TParticle> bQuarks;
67     std::vector<TParticle> cQuarks;
68     std::vector<TParticle> photons;
69     std::vector<TParticle> electrons;
70     std::vector<TParticle> muons;
71 dasu 1.2 std::vector<TParticle> taus;
72 dasu 1.3 std::vector<TParticle> chargedHadrons;
73     std::vector<TParticle> neutralHadrons;
74 dasu 1.8 std::vector<TLorentzVector> jets;
75     std::vector<TLorentzVector> bJets;
76     std::vector<TLorentzVector> bJetsStdGeom;
77 dasu 1.1
78 dasu 1.6 TLorentzVector MET;
79     TLorentzVector MHT;
80    
81     double ET;
82     double HT;
83    
84 dasu 1.8 ClassDef (UltraFastSim, 1)
85 dasu 1.1 };
86    
87     #endif