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.1 by dasu, Wed Feb 9 05:39:29 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 < 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 < private:
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<TLorentzVector>& jetList() {return jets;}
43 >  const std::vector<TLorentzVector>& bJetList() {return bJets;}
44 >  const std::vector<TLorentzVector>& bJetListStdGeom() {return bJetsStdGeom;}
45 >
46 >  const TLorentzVector& getMET() {return MET;}
47 >  const TLorentzVector& getMHT() {return MHT;}
48 >
49 >  const double getET() {return ET;}
50 >  const double getHT() {return HT;}
51  
52 <  UltraFastSim();
52 > private:
53  
54    void clear();
55  
56    void makeJets();
36  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 +
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<TLorentzVector> jets;
77 +  std::vector<TLorentzVector> bJets;
78 +  std::vector<TLorentzVector> bJetsStdGeom;
79 +
80 +  TLorentzVector MET;
81 +  TLorentzVector MHT;
82  
83 <  void tkSmear(Pythia8::Particle particle);
84 <  void emSmear(Pythia8::Particle particle);
41 <  void hdSmear(Pythia8::Particle particle);
42 <
43 <  Pythia8::Rndm* rndmPtr;
44 <
45 <  fastjet::JetDefinition* jetDefPtr;
46 <  fastjet::ClusterSequence* cs;
47 <
48 <  float trackerResolution;
49 <  float ecalResolution;
50 <  float ecalConstantTerm;
51 <  float hcalResolution;
52 <  float hcalConstantTerm;
53 <
54 <  std::vector<fastjet::PseudoJet> selectedParticles;
55 <  std::vector<fastjet::PseudoJet> selectedElectrons;
56 <  std::vector<fastjet::PseudoJet> selectedMuons;
57 <  std::vector<fastjet::PseudoJet> selectedTaus;
58 <  std::vector<fastjet::PseudoJet> selectedBQuarks;
59 <  std::vector<fastjet::PseudoJet> jets;
60 <  std::vector<fastjet::PseudoJet> sortedJets;
61 <  std::vector<fastjet::PseudoJet> bJets;
62 <  std::vector<fastjet::PseudoJet> taus;
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