cepgen
is hosted by
Hepforge
,
IPPP Durham
CepGen
1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
pythia6_decay.cc
Go to the documentation of this file.
1
#include "
CepGen/Event/Event.h
"
2
#include "
CepGen/Generator.h
"
3
#include "
CepGen/Modules/EventModifierFactory.h
"
4
#include "
CepGen/Physics/Hadroniser.h
"
5
#include "
CepGen/Utils/Test.h
"
6
7
using namespace
std;
8
9
int
main
() {
10
cepgen::initialise
();
11
12
auto
pythia = cepgen::EventModifierFactory::get().build(
"pythia6"
);
13
14
cepgen::Event
evt;
15
auto
tau =
cepgen::Particle
(
cepgen::Particle::CentralSystem
, 15,
cepgen::Particle::Status::Undecayed
);
16
tau.setMomentum(
cepgen::Momentum
(0., 0., 1000.),
false
);
17
evt.
addParticle
(tau);
18
const
auto
evt_size_bef = evt.
size
();
19
20
double
weight;
21
pythia->run(evt, weight,
false
);
22
23
CG_LOG
<< evt;
24
CG_TEST_EQUAL
(evt[0].status(),
cepgen::Particle::Status::Resonance
,
"tau 'decayed' status"
);
25
CG_TEST
(evt_size_bef != evt.
size
(),
"decay"
);
26
27
CG_TEST_SUMMARY
;
28
}
EventModifierFactory.h
Event.h
Generator.h
Hadroniser.h
CG_LOG
#define CG_LOG
Definition
Message.h:212
Test.h
CG_TEST_SUMMARY
#define CG_TEST_SUMMARY
Definition
Test.h:127
CG_TEST_EQUAL
#define CG_TEST_EQUAL(var1, var2, name)
Definition
Test.h:45
CG_TEST
#define CG_TEST(test_cond, name)
Definition
Test.h:30
cepgen::Event
Container for the information on the in- and outgoing particles' kinematics.
Definition
Event.h:28
cepgen::Event::size
size_t size() const
Number of particles in the event.
Definition
Event.cpp:345
cepgen::Event::addParticle
ParticleRef addParticle(Particle &part, bool replace=false)
Set the information on one particle in the process.
Definition
Event.cpp:323
cepgen::Momentum
Container for a particle's 4-momentum, along with useful methods to ease the development of any matri...
Definition
Momentum.h:33
cepgen::Particle
Kinematic information for one particle.
Definition
Particle.h:33
cepgen::Particle::Status::Undecayed
@ Undecayed
Particle to be decayed externally.
cepgen::Particle::Status::Resonance
@ Resonance
Already decayed intermediate resonance.
cepgen::Particle::CentralSystem
@ CentralSystem
Central particles system.
Definition
Particle.h:56
cepgen::initialise
void initialise(bool safe_mode)
Definition
GlobalFunctions.cpp:91
main
int main()
Definition
pythia6_decay.cc:9
CepGenAddOns
Pythia6Wrapper
test
pythia6_decay.cc
Generated on Mon Jul 29 2024 for CepGen by
1.9.7