Iguana
1.2.1
Implementation Guardian of Analysis Algorithms
Toggle main menu visibility
Loading...
Searching...
No Matches
Validator.h
1
#pragma once
2
3
#include "iguana/algorithms/Validator.h"
4
5
#include <TCanvas.h>
6
#include <TFile.h>
7
#include <TH2.h>
8
9
namespace
iguana::physics
{
10
12
class
DepolarizationValidator
:
public
Validator
13
{
14
15
DEFINE_IGUANA_VALIDATOR
(
DepolarizationValidator
,
physics::DepolarizationValidator
)
16
17
private
:
// hooks
18
void
StartHook(hipo::banklist& banks)
override
;
19
bool
RunHook(hipo::banklist& banks)
const override
;
20
void
StopHook()
override
;
21
22
private
:
23
24
hipo::banklist::size_type b_inc_kin;
25
hipo::banklist::size_type b_depol;
26
27
struct
Plot2D {
28
TH2D* hist;
29
std::function<double(hipo::bank
const
&,
int
const
)> get_val;
30
};
31
std::vector<Plot2D> plots_vs_Q2;
32
std::vector<Plot2D> plots_vs_x;
33
std::vector<Plot2D> plots_vs_y;
34
35
TString m_output_file_basename;
36
TFile* m_output_file;
37
};
38
39
}
DEFINE_IGUANA_VALIDATOR
#define DEFINE_IGUANA_VALIDATOR(VDOR_NAME, VDOR_FULL_NAME)
Definition
AlgorithmBoilerplate.h:62
iguana::Validator::Validator
Validator(std::string_view name="validator")
Definition
Validator.h:27
iguana::physics::DepolarizationValidator
iguana::physics::Depolarization validator
Definition
Validator.h:13
iguana::physics
Physics algorithms.
Definition
Algorithm.h:5
iguana_v1.2.1
src
iguana
algorithms
physics
Depolarization
Validator.h
Generated by
1.18.0