PAASS
Software suite to Acquire and Analyze Data from Pixie16
unittest-RootFitter.cpp
Go to the documentation of this file.
1 //#include <UnitTest++.h>
6 
7 #include "RootFitter.hpp"
8 #include "UnitTestSampleData.hpp"
9 
10 using namespace std;
11 using namespace unittest_trace_variables;
12 using namespace unittest_fit_variables;
13 
14 
15 //TEST_FIXTURE(RootFitter, TestRootFitter) {
16 // CHECK_THROW(CalculatePhase(empty_data, expected_trace_pars,
17 // expected_max_info, expected_baseline_pair),
18 // range_error);
19 //
20 // CalculatePhase(waveform, expected_trace_pars, expected_max_info,
21 // expected_baseline_pair);
22 //
23 // //CHECK( != 0.0);
24 //}
25 
26 int main(int argv, char *argc[]) {
27  RootFitter fitter;
30  //return (UnitTest::RunAllTests());
31 }
STL namespace.
static const std::vector< double > waveform(trace_sans_baseline.begin()+71, trace_sans_baseline.begin()+86)
static const std::pair< double, double > fitting_parameters(0.2659404170, 0.2080547991796)
static const std::pair< unsigned int, double > max_pair(max_position, maximum_value)
This is the pair made from the expected maximum information.
static const std::pair< double, double > baseline_pair(baseline, standard_deviation)
double CalculatePhase(const std::vector< double > &data, const std::pair< double, double > &pars, const std::pair< unsigned int, double > &maxInfo, std::pair< double, double > baseline)
Perform CFD analysis on the waveform using the pol2 algorithm.
Definition: RootFitter.cpp:16
This header provides sample data that can be used by Unit Tests to ensure proper functionality.
int main(int argv, char *argc[])
Class to handle fitting traces using ROOT.