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 |
|
|
#include "fastjet/PseudoJet.hh";
|
18 |
dasu |
1.3 |
|
19 |
dasu |
1.2 |
#include "TParticle.h";
|
20 |
dasu |
1.1 |
|
21 |
|
|
class UltraFastSim {
|
22 |
|
|
|
23 |
|
|
public:
|
24 |
|
|
|
25 |
|
|
UltraFastSim(Pythia8::Rndm *r);
|
26 |
|
|
|
27 |
|
|
virtual ~UltraFastSim() {;}
|
28 |
|
|
|
29 |
|
|
bool run(Pythia8::Event &event);
|
30 |
|
|
|
31 |
dasu |
1.3 |
const std::vector<TParticle>& genTauList() {return genTaus;}
|
32 |
|
|
const std::vector<TParticle>& bQuarkList() {return bQuarks;}
|
33 |
|
|
const std::vector<TParticle>& cQuarkList() {return cQuarks;}
|
34 |
|
|
const std::vector<TParticle>& photonList() {return photons;}
|
35 |
|
|
const std::vector<TParticle>& electronList() {return electrons;}
|
36 |
|
|
const std::vector<TParticle>& muonList() {return muons;}
|
37 |
dasu |
1.2 |
const std::vector<TParticle>& tauList() {return taus;}
|
38 |
dasu |
1.3 |
const std::vector<TParticle>& chargedHadronList() {return chargedHadrons;}
|
39 |
|
|
const std::vector<TParticle>& neutralHadronList() {return neutralHadrons;}
|
40 |
dasu |
1.2 |
const std::vector<fastjet::PseudoJet>& jetList() {return jets;}
|
41 |
|
|
const std::vector<fastjet::PseudoJet>& bJetList() {return bJets;}
|
42 |
|
|
|
43 |
dasu |
1.1 |
private:
|
44 |
|
|
|
45 |
|
|
UltraFastSim();
|
46 |
|
|
|
47 |
|
|
void clear();
|
48 |
|
|
|
49 |
|
|
void makeJets();
|
50 |
|
|
void makeBJets();
|
51 |
|
|
void makeTaus();
|
52 |
|
|
|
53 |
dasu |
1.3 |
void setCommon(Pythia8::Particle& particle, TParticle& smearedParticle);
|
54 |
|
|
void tkSmear(Pythia8::Particle& particle, TParticle& smearedParticle);
|
55 |
|
|
void emSmear(Pythia8::Particle& particle, TParticle& smearedParticle);
|
56 |
|
|
void hdSmear(Pythia8::Particle& particle, TParticle& smearedParticle);
|
57 |
dasu |
1.1 |
|
58 |
|
|
Pythia8::Rndm* rndmPtr;
|
59 |
|
|
|
60 |
|
|
fastjet::JetDefinition* jetDefPtr;
|
61 |
|
|
fastjet::ClusterSequence* cs;
|
62 |
|
|
|
63 |
dasu |
1.3 |
std::vector<TParticle> genTaus;
|
64 |
|
|
std::vector<TParticle> bQuarks;
|
65 |
|
|
std::vector<TParticle> cQuarks;
|
66 |
|
|
std::vector<TParticle> photons;
|
67 |
|
|
std::vector<TParticle> electrons;
|
68 |
|
|
std::vector<TParticle> muons;
|
69 |
dasu |
1.2 |
std::vector<TParticle> taus;
|
70 |
dasu |
1.3 |
std::vector<TParticle> chargedHadrons;
|
71 |
|
|
std::vector<TParticle> neutralHadrons;
|
72 |
dasu |
1.1 |
std::vector<fastjet::PseudoJet> jets;
|
73 |
|
|
std::vector<fastjet::PseudoJet> bJets;
|
74 |
|
|
|
75 |
|
|
};
|
76 |
|
|
|
77 |
|
|
#endif
|