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.2 by dasu, Wed Feb 9 07:20:36 2011 UTC vs.
Revision 1.8 by dasu, Fri Feb 25 15:37:18 2011 UTC

# Line 14 | Line 14 | namespace fastjet {
14    class ClusterSequence;
15   }
16  
17 < #include "fastjet/PseudoJet.hh";
18 < #include "TParticle.h";
17 > #include "TObject.h"
18 > #include "TParticle.h"
19 > #include "TLorentzVector.h"
20  
21 < class UltraFastSim {
21 > class UltraFastSim : public TObject {
22  
23   public:
24  
25 +  UltraFastSim() {
26 +    rndmPtr = 0;
27 +    jetDefPtr = 0;
28 +    cs = 0;
29 +  }
30 +
31    UltraFastSim(Pythia8::Rndm *r);
32  
33    virtual ~UltraFastSim() {;}
34  
35    bool run(Pythia8::Event &event);
36  
37 <  const std::vector<TParticle>& electronList() {return selectedElectrons;}
38 <  const std::vector<TParticle>& muonList() {return selectedMuons;}
39 <  const std::vector<TParticle>& genTauList() {return selectedTaus;}
40 <  const std::vector<TParticle>& bQuarkList() {return selectedBQuarks;}
37 >  const std::vector<TParticle>& genTauList() {return genTaus;}
38 >  const std::vector<TParticle>& visTauList() {return visTaus;}
39 >  const std::vector<TParticle>& bQuarkList() {return bQuarks;}
40 >  const std::vector<TParticle>& cQuarkList() {return cQuarks;}
41 >  const std::vector<TParticle>& photonList() {return photons;}
42 >  const std::vector<TParticle>& electronList() {return electrons;}
43 >  const std::vector<TParticle>& muonList() {return muons;}
44    const std::vector<TParticle>& tauList() {return taus;}
45 <  const std::vector<fastjet::PseudoJet>& particleList() {return selectedParticles;}
46 <  const std::vector<fastjet::PseudoJet>& jetList() {return jets;}
47 <  const std::vector<fastjet::PseudoJet>& sortedJetList() {return sortedJets;}
48 <  const std::vector<fastjet::PseudoJet>& bJetList() {return bJets;}
45 >  const std::vector<TParticle>& chargedHadronList() {return chargedHadrons;}
46 >  const std::vector<TParticle>& neutralHadronList() {return neutralHadrons;}
47 >  const std::vector<TLorentzVector>& jetList() {return jets;}
48 >  const std::vector<TLorentzVector>& bJetList() {return bJets;}
49 >  const std::vector<TLorentzVector>& bJetListStdGeom() {return bJetsStdGeom;}
50  
51 < private:
51 >  const TLorentzVector& getMET() {return MET;}
52 >  const TLorentzVector& getMHT() {return MHT;}
53 >
54 >  const double getET() {return ET;}
55 >  const double getHT() {return HT;}
56  
57 <  UltraFastSim();
57 > private:
58  
59    void clear();
60  
61    void makeJets();
47  void makeBJets();
62    void makeTaus();
63 +  void makeETSums();
64  
65 <  void tkSmear(Pythia8::Particle particle);
66 <  void emSmear(Pythia8::Particle particle);
67 <  void hdSmear(Pythia8::Particle particle);
65 >  void setCommon(Pythia8::Particle& particle, TParticle& smearedParticle);
66 >  void tkSmear(Pythia8::Particle& particle, TParticle& smearedParticle);
67 >  void emSmear(Pythia8::Particle& particle, TParticle& smearedParticle);
68 >  void hdSmear(Pythia8::Particle& particle, TParticle& smearedParticle);
69  
70    Pythia8::Rndm* rndmPtr;
71  
72    fastjet::JetDefinition* jetDefPtr;
73    fastjet::ClusterSequence* cs;
74  
75 <  float trackerResolution;
76 <  float ecalResolution;
77 <  float ecalConstantTerm;
78 <  float hcalResolution;
79 <  float hcalConstantTerm;
80 <
81 <  std::vector<TParticle> selectedElectrons;
66 <  std::vector<TParticle> selectedMuons;
67 <  std::vector<TParticle> selectedTaus;
68 <  std::vector<TParticle> selectedBQuarks;
75 >  std::vector<TParticle> genTaus;
76 >  std::vector<TParticle> visTaus;
77 >  std::vector<TParticle> bQuarks;
78 >  std::vector<TParticle> cQuarks;
79 >  std::vector<TParticle> photons;
80 >  std::vector<TParticle> electrons;
81 >  std::vector<TParticle> muons;
82    std::vector<TParticle> taus;
83 <  std::vector<fastjet::PseudoJet> selectedParticles;
84 <  std::vector<fastjet::PseudoJet> jets;
85 <  std::vector<fastjet::PseudoJet> sortedJets;
86 <  std::vector<fastjet::PseudoJet> bJets;
83 >  std::vector<TParticle> chargedHadrons;
84 >  std::vector<TParticle> neutralHadrons;
85 >  std::vector<TLorentzVector> jets;
86 >  std::vector<TLorentzVector> bJets;
87 >  std::vector<TLorentzVector> bJetsStdGeom;
88 >
89 >  TLorentzVector MET;
90 >  TLorentzVector MHT;
91 >
92 >  double ET;
93 >  double HT;
94  
95 +  ClassDef (UltraFastSim, 1)
96   };
97  
98   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines