ComPWA
Common Partial-Wave-Analysis Framework
Generate.hpp
Go to the documentation of this file.
1 // Copyright (c) 2013, 2017 The ComPWA Team.
2 // This file is part of the ComPWA framework, check
3 // https://github.com/ComPWA/ComPWA/license.txt for details.
4 
9 
10 #ifndef COMPWA_DATA_GENERATE_HPP_
11 #define COMPWA_DATA_GENERATE_HPP_
12 
13 #include <memory>
14 
15 #include "Core/Event.hpp"
16 #include "Core/Function.hpp"
17 
18 namespace ComPWA {
19 class UniformRealNumberGenerator;
20 class Kinematics;
21 class PhaseSpaceEventGenerator;
22 
23 namespace Data {
24 
26 generate(unsigned int NumberOfEvents, const ComPWA::Kinematics &Kinematics,
27  const ComPWA::PhaseSpaceEventGenerator &Generator,
29  ComPWA::UniformRealNumberGenerator &RandomGenerator);
30 
32 generate(unsigned int NumberOfEvents, const ComPWA::Kinematics &Kinematics,
33  ComPWA::UniformRealNumberGenerator &RandomGenerator,
34  ComPWA::Intensity &Intensity, const EventCollection &PhspSample,
35  const EventCollection &PhspSampleTrue);
36 
38 generate(unsigned int NumberOfEvents, const ComPWA::Kinematics &Kinematics,
39  ComPWA::UniformRealNumberGenerator &RandomGenerator,
40  ComPWA::Intensity &Intensity, const EventCollection &PhspSample) {
41  return generate(NumberOfEvents, Kinematics, RandomGenerator, Intensity,
42  PhspSample, PhspSample);
43 }
44 
46 generatePhsp(unsigned int NumberOfEvents,
47  const ComPWA::PhaseSpaceEventGenerator &Generator,
48  ComPWA::UniformRealNumberGenerator &RandomGenerator);
49 
51  unsigned int NumberOfEvents, const ComPWA::Kinematics &Kinematics,
52  const ComPWA::PhaseSpaceEventGenerator &Generator,
54  ComPWA::UniformRealNumberGenerator &RandomGenerator);
55 
56 } // namespace Data
57 } // namespace ComPWA
58 #endif
Interface class for PHSP event generators.
Definition: Generator.hpp:17
EventCollection generatePhsp(unsigned int NumberOfEvents, const ComPWA::PhaseSpaceEventGenerator &Generator, ComPWA::UniformRealNumberGenerator &RandomGenerator)
Definition: Generate.cpp:285
EventCollection generateImportanceSampledPhsp(unsigned int NumberOfEvents, const ComPWA::Kinematics &Kinematics, const ComPWA::PhaseSpaceEventGenerator &Generator, ComPWA::Intensity &Intensity, ComPWA::UniformRealNumberGenerator &RandomGenerator)
Definition: Generate.cpp:320
Function< std::vector< double >, DataMap > Intensity
An Intensity is just a Function that takes a list of data vectors and returns a list of intensities (...
Definition: Function.hpp:40
The Kinematics interface defines the conversion of Events to a DataSet.
Definition: Kinematics.hpp:19
EventCollection generate(unsigned int NumberOfEvents, const ComPWA::Kinematics &Kinematics, const ComPWA::PhaseSpaceEventGenerator &Generator, ComPWA::Intensity &Intensity, ComPWA::UniformRealNumberGenerator &RandomGenerator)
Definition: Generate.cpp:95
Interface template for a general Function of the form OutputType Function(InputTypes) The concept clo...
Definition: Function.hpp:24