ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/dasu/UltraFastSim/UltraFastSim.h
(Generate patch)

Comparing UserCode/dasu/UltraFastSim/UltraFastSim.h (file contents):
Revision 1.4 by dasu, Wed Feb 16 01:02:58 2011 UTC vs.
Revision 1.10 by brownson, Mon Feb 28 20:54:48 2011 UTC

# Line 14 | Line 14 | namespace fastjet {
14    class ClusterSequence;
15   }
16  
17 < #include "fastjet/PseudoJet.hh";
17 > #include "TObject.h"
18 > #include "TParticle.h"
19 > #include "TLorentzVector.h"
20  
21 < #include "TParticle.h";
20 <
21 < class UltraFastSim {
21 > class UltraFastSim : public TObject {
22  
23   public:
24  
25 <  UltraFastSim(Pythia8::Rndm *r);
25 >  UltraFastSim() {;}
26  
27    virtual ~UltraFastSim() {;}
28  
29 <  bool run(Pythia8::Event &event);
29 >  bool run(Pythia8::Event &event, Pythia8::Rndm *r);
30  
31    const std::vector<TParticle>& genTauList() {return genTaus;}
32 +  const std::vector<TParticle>& visTauList() {return visTaus;}
33    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 +  const std::vector<TParticle>& muonListStdGeom() {return muonsStdGeom;}
39    const std::vector<TParticle>& tauList() {return taus;}
40    const std::vector<TParticle>& chargedHadronList() {return chargedHadrons;}
41    const std::vector<TParticle>& neutralHadronList() {return neutralHadrons;}
42 <  const std::vector<fastjet::PseudoJet>& jetList() {return jets;}
43 <  const std::vector<fastjet::PseudoJet>& bJetList() {return bJets;}
44 <  const std::vector<fastjet::PseudoJet>& bJetListStdGeom() {return bJetsStdGeom;}
42 >  const std::vector<TLorentzVector>& jetList() {return jets;}
43 >  const std::vector<TLorentzVector>& bJetList() {return bJets;}
44 >  const std::vector<TLorentzVector>& bJetListStdGeom() {return bJetsStdGeom;}
45  
46 < private:
46 >  const TLorentzVector& getMET() {return MET;}
47 >  const TLorentzVector& getMHT() {return MHT;}
48  
49 <  UltraFastSim();
49 >  const double getET() {return ET;}
50 >  const double getHT() {return HT;}
51 >
52 > private:
53  
54    void clear();
55  
56    void makeJets();
51  void makeBJets();
57    void makeTaus();
58 +  void makeETSums();
59  
60    void setCommon(Pythia8::Particle& particle, TParticle& smearedParticle);
61    void tkSmear(Pythia8::Particle& particle, TParticle& smearedParticle);
62    void emSmear(Pythia8::Particle& particle, TParticle& smearedParticle);
63    void hdSmear(Pythia8::Particle& particle, TParticle& smearedParticle);
64  
59  Pythia8::Rndm* rndmPtr;
60
61  fastjet::JetDefinition* jetDefPtr;
62  fastjet::ClusterSequence* cs;
63
65    std::vector<TParticle> genTaus;
66 +  std::vector<TParticle> visTaus;
67    std::vector<TParticle> bQuarks;
68    std::vector<TParticle> cQuarks;
69    std::vector<TParticle> photons;
70    std::vector<TParticle> electrons;
71    std::vector<TParticle> muons;
72 +  std::vector<TParticle> muonsStdGeom;
73    std::vector<TParticle> taus;
74    std::vector<TParticle> chargedHadrons;
75    std::vector<TParticle> neutralHadrons;
76 <  std::vector<fastjet::PseudoJet> jets;
77 <  std::vector<fastjet::PseudoJet> bJets;
78 <  std::vector<fastjet::PseudoJet> bJetsStdGeom;
76 >  std::vector<TLorentzVector> jets;
77 >  std::vector<TLorentzVector> bJets;
78 >  std::vector<TLorentzVector> bJetsStdGeom;
79 >
80 >  TLorentzVector MET;
81 >  TLorentzVector MHT;
82 >
83 >  double ET;
84 >  double HT;
85  
86 +  ClassDef (UltraFastSim, 1)
87   };
88  
89   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines