#include <iostream>
#include <assert.h>
#include <time.h>
#include <vector>
#include <array>
#include <chrono>
#include <tclap/CmdLine.h>
#include <hydra/device/System.h>
#include <hydra/host/System.h>
#include <hydra/Types.h>
#include <hydra/Vector4R.h>
#include <hydra/Decays.h>
#include <hydra/PhaseSpace.h>
#include <hydra/PhaseSpaceIntegrator.h>
#include <hydra/Function.h>
#include <hydra/FunctorArithmetic.h>
#include <hydra/Lambda.h>
#include <hydra/Tuple.h>
#include <hydra/Range.h>
#include <hydra/Random.h>
#include <hydra/LogLikelihoodFCN.h>
#include <hydra/Parameter.h>
#include <hydra/UserParameters.h>
#include <hydra/Pdf.h>
#include <hydra/Distance.h>
#include <hydra/functions/BreitWignerNR.h>
#include <hydra/DenseHistogram.h>
#include <hydra/SparseHistogram.h>
#include "Minuit2/FunctionMinimum.h"
#include "Minuit2/MnUserParameterState.h"
#include "Minuit2/MnPrint.h"
#include "Minuit2/MnMigrad.h"
#include "Minuit2/MnMinimize.h"
#include "Minuit2/MnMinos.h"
#include "Minuit2/MnContours.h"
#include "Minuit2/CombinedMinimizer.h"
#include "Minuit2/MnPlot.h"
#include "Minuit2/MinosError.h"
#include "Minuit2/ContoursError.h"
#include "Minuit2/VariableMetricMinimizer.h"
Go to the source code of this file.
|
cmd | add (NArg) |
|
hydra::Vector4R | B0 (B0_mass, 0.0, 0.0, 0.0) |
|
| catch (TCLAP::ArgException &e) |
|
| declarg (P1, hydra::Vector4R) declarg(P2 |
|
hydra::Vector4R | declarg (P3, hydra::Vector4R) int main(int argv |
|
phsp | Generate (B0, Events.begin(), Events.end()) |
|
TCLAP::ValueArg< size_t > | NArg ("n", "nevents", "Number of events to generate. Default is [ 10e6 ].", true, 10e6, "unsigned long") |
|
cmd | parse (argv, argc) |
|
◆ PHSP_UNWEIGHTING_FUNCTOR_AND_FIT_INL_
#define PHSP_UNWEIGHTING_FUNCTOR_AND_FIT_INL_ |
◆ add()
◆ B0()
hydra::Vector4R B0 |
( |
B0_mass |
, |
|
|
0. |
0, |
|
|
0. |
0, |
|
|
0. |
0 |
|
) |
| |
◆ catch()
catch |
( |
TCLAP::ArgException & |
e | ) |
|
◆ declarg() [1/2]
declarg |
( |
P1 |
, |
|
|
hydra::Vector4R |
|
|
) |
| |
◆ declarg() [2/2]
hydra::Vector4R declarg |
( |
P3 |
, |
|
|
hydra::Vector4R |
|
|
) |
| |
◆ Generate()
phsp Generate |
( |
B0 |
, |
|
|
Events. |
begin(), |
|
|
Events. |
end() |
|
) |
| |
◆ NArg()
TCLAP::ValueArg<size_t> NArg |
( |
"n" |
, |
|
|
"nevents" |
, |
|
|
"Number of events to generate. Default is ." |
[10e6], |
|
|
true |
, |
|
|
10e6 |
, |
|
|
"unsigned long" |
|
|
) |
| |
◆ parse()
cmd parse |
( |
argv |
, |
|
|
argc |
|
|
) |
| |
◆ argc
hydra::Vector4R char** argc |
Initial value:{
nentries
Definition: phsp_unweighting_functor_and_fit.inl:155
◆ B0_mass
◆ breit_wigner
Initial value: double width = params[1];
double denominator = dmass2 + width2/4.0;
return ((width2)/4.0)/denominator;
hydra::Parameter width
Definition: breit_wigner_plus_chebychev.inl:124
hydra::Parameter M0
Definition: phsp_unweighting_functor_and_fit.inl:214
auto mass
Definition: basic_distributions.inl:125
#define __hydra_dual__
Definition: Config.h:104
hydra::Lambda< LambdaType, 0 > wrap_lambda(LambdaType const &lambda)
Definition: Lambda.h:528
hydra::Parameter W0
Definition: phsp_unweighting_functor_and_fit.inl:217
,
Definition: Parameter.h:67
- Examples:
- phsp_reweighting.inl, and phsp_unweighting_functor.inl.
◆ dalitz_calculator
Initial value: double MSq_12 = (p1+p2).mass2();
double MSq_13 = (p1+p3).mass2();
double MSq_23 = (p2+p3).mass2();
})
__hydra_host__ __hydra_device__ auto make_tuple(T &&... t) -> decltype(hydra::thrust::make_tuple(std::forward< T >(t)...))
This version of make_tuple creates a new tuple object from a list of objects.
Definition: Tuple.h:261
#define __hydra_dual__
Definition: Config.h:104
hydra::Lambda< LambdaType, 0 > wrap_lambda(LambdaType const &lambda)
Definition: Lambda.h:528
- Examples:
- dalitz_plot.C, dalitz_plot.inl, phsp_basic.inl, phsp_reweighting.inl, and phsp_unweighting_functor.inl.
◆ elapsed
◆ end
auto end = std::chrono::high_resolution_clock::now() |
◆ Jpsi_mass
◆ K_mass
◆ M0
Initial value:static __hydra_host__ Parameter Create()
Definition: Parameter.h:369
__hydra_host__ Parameter & Name(std::string const &name)
Definition: Parameter.h:382
__hydra_host__ Parameter & Error(GReal_t error)
Definition: Parameter.h:394
__hydra_host__ Parameter & Limits(GReal_t lowlim, GReal_t uplim)
Definition: Parameter.h:407
__hydra_host__ Parameter & Value(GReal_t value)
Definition: Parameter.h:401
◆ model
Initial value:Pdf< FUNCTOR, INTEGRATOR > make_pdf(FUNCTOR const &functor, INTEGRATOR integrator)
Build a hydra::Pdf given a shape described by a functor and a integrator (algorithm or functor)...
Definition: Pdf.h:299
auto breit_wigner
Definition: phsp_unweighting_functor_and_fit.inl:222
double B0_mass
Definition: phsp_unweighting_functor_and_fit.inl:135
double K_mass
Definition: phsp_unweighting_functor_and_fit.inl:137
double pi_mass
Definition: phsp_unweighting_functor_and_fit.inl:138
Definition: PhaseSpaceIntegrator.h:48
double Jpsi_mass
Definition: phsp_unweighting_functor_and_fit.inl:136
◆ nentries
nentries = NArg.getValue() |
◆ phsp
◆ pi_mass
◆ start
auto start = std::chrono::high_resolution_clock::now() |
- Examples:
- adaptive_gauss_kronrod.inl, basic_fit.inl, dalitz_plot.C, dalitz_plot.inl, fit_gaussian.C, gauss_kronrod.inl, phsp_averaging_functor.inl, phsp_basic.inl, phsp_chain.inl, phsp_reweighting.inl, phsp_unweighting_functor.inl, plain_mc.inl, pseudo_experiment.inl, sample_distribution.inl, and simultaneous_fit.inl.
◆ try
Initial value:{
TCLAP::CmdLine cmd("Command line arguments for PHSP B0 -> J/psi K pi", '=')
◆ W0
Initial value:static __hydra_host__ Parameter Create()
Definition: Parameter.h:369
__hydra_host__ Parameter & Name(std::string const &name)
Definition: Parameter.h:382
__hydra_host__ Parameter & Error(GReal_t error)
Definition: Parameter.h:394
__hydra_host__ Parameter & Limits(GReal_t lowlim, GReal_t uplim)
Definition: Parameter.h:407
__hydra_host__ Parameter & Value(GReal_t value)
Definition: Parameter.h:401