Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunecore
dunecore
DuneCommon
Utility
test
test_gausTF1.cxx
Go to the documentation of this file.
1
// test_gausTF1.cxx
2
3
// David Adams
4
// November 2018
5
//
6
// This is a test and demonstration for gausTF1.
7
8
#undef NDEBUG
9
10
#include "
dunecore/DuneCommon/Utility/gausTF1.h
"
11
#include <string>
12
#include <iostream>
13
#include <iomanip>
14
#include <vector>
15
#include <cassert>
16
17
using
std::string
;
18
using
std::cout;
19
using
std::endl
;
20
using
std::setw
;
21
using
std::vector
;
22
23
using
Index
=
unsigned
int
;
24
25
//**********************************************************************
26
27
int
test_gausTF1
() {
28
const
string
myname =
"test_gausTF1: "
;
29
cout << myname <<
"Starting test"
<<
endl
;
30
#ifdef NDEBUG
31
cout << myname <<
"NDEBUG must be off."
<<
endl
;
32
abort();
33
#endif
34
string
line
=
"-----------------------------"
;
35
string
scfg;
36
37
cout << myname << line <<
endl
;
38
cout <<
"Testing TF1."
<<
endl
;
39
40
cout << myname << line <<
endl
;
41
cout <<
"Build function."
<<
endl
;
42
TF1* pf =
gausTF1
(20, 50, 10,
"mygaus"
);
43
pf->Print();
44
return
0;
45
}
46
47
//**********************************************************************
48
49
int
main
() {
50
return
test_gausTF1
();
51
}
52
53
//**********************************************************************
test_gausTF1
int test_gausTF1()
Definition:
test_gausTF1.cxx:27
gausTF1.h
string
std::string string
Definition:
nybbler.cc:12
vector
struct vector vector
Index
unsigned int Index
Definition:
sspmapmaker_v1.c:14
gausTF1
TF1 * gausTF1(double heightIn, double meanIn, double sigmaIn, std::string fname)
Definition:
gausTF1.cxx:28
setw
Q_EXPORT QTSManip setw(int w)
Definition:
qtextstream.h:331
keras_to_tensorflow.int
int
Definition:
keras_to_tensorflow.py:69
main
int main()
Definition:
test_gausTF1.cxx:49
pduneana::line
void line(double t, double *p, double &x, double &y, double &z)
Definition:
PDSPAnalyzer_module.cc:4741
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
Generated by
1.8.11