Hydra  4.0.1
A header-only templated C++ framework to perform data analysis on massively parallel platforms.
fit_gaussian.C File Reference
#include <iostream>
#include <assert.h>
#include <time.h>
#include <chrono>
#include <hydra/device/System.h>
#include <hydra/Function.h>
#include <hydra/LogLikelihoodFCN.h>
#include <hydra/Parameter.h>
#include <hydra/UserParameters.h>
#include <hydra/Pdf.h>
#include <hydra/functions/Gaussian.h>
#include <hydra/DenseHistogram.h>
#include <hydra/multivector.h>
#include <hydra/Zip.h>
#include "Minuit2/FunctionMinimum.h"
#include "Minuit2/MnUserParameterState.h"
#include "Minuit2/MnPrint.h"
#include "Minuit2/MnMigrad.h"
#include "Minuit2/MnMinimize.h"
#include <TROOT.h>
#include <TH1D.h>
#include <TApplication.h>
#include <TCanvas.h>
Include dependency graph for fit_gaussian.C:

Go to the source code of this file.

Macros

#define HYDRA_DEVICE_SYSTEM   TBB
 
#define HYDRA_HOST_SYSTEM   CPP
 

Functions

 declarg (xvar, double)
 This macro generates data and fit a 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 ( xvar  ,
double   
)

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

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