Hydra  4.0.1
A header-only templated C++ framework to perform data analysis on massively parallel platforms.
fit_3d_gaussian.C File Reference
#include <iostream>
#include <assert.h>
#include <time.h>
#include <chrono>
#include <random>
#include <algorithm>
#include <hydra/device/System.h>
#include <hydra/host/System.h>
#include <hydra/Function.h>
#include <hydra/Lambda.h>
#include <hydra/Random.h>
#include <hydra/Algorithm.h>
#include <hydra/Tuple.h>
#include <hydra/Distance.h>
#include <hydra/multiarray.h>
#include <hydra/multivector.h>
#include <hydra/LogLikelihoodFCN.h>
#include <hydra/Parameter.h>
#include <hydra/UserParameters.h>
#include <hydra/Pdf.h>
#include <hydra/AddPdf.h>
#include <hydra/Filter.h>
#include <hydra/Plain.h>
#include <hydra/DenseHistogram.h>
#include <hydra/functions/Gaussian.h>
#include <hydra/RandomFill.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"
#include <TROOT.h>
#include <TH1D.h>
#include <TH3D.h>
#include <TApplication.h>
#include <TCanvas.h>
Include dependency graph for fit_3d_gaussian.C:

Go to the source code of this file.

Macros

#define HYDRA_DEVICE_SYSTEM   TBB
 
#define HYDRA_HOST_SYSTEM   CPP
 

Functions

 declarg (_X, double)
 This macro generates data and fit a 3D-Gaussian distribution in parallel. More...
 

Macro Definition Documentation

◆ HYDRA_DEVICE_SYSTEM

#define HYDRA_DEVICE_SYSTEM   TBB

◆ HYDRA_HOST_SYSTEM

#define HYDRA_HOST_SYSTEM   CPP

Function Documentation

◆ declarg()

declarg ( _X  ,
double   
)

This macro generates data and fit a 3D-Gaussian distribution in parallel.

Note
Call this macro in ROOT compile mode:
root [0] .L fit_3d_gaussian.C+
root [1] fit_3d_gaussian(5000000)
Parameters
nentriesNumber of points to generate.