Iguana LATEST
Implementation Guardian of Analysis Algorithms
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
9namespace iguana::physics {
10
13 {
14
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 DEFINE_IGUANA_VALIDATOR(VDOR_NAME, VDOR_FULL_NAME)
Validator(std::string_view name="validator")
Definition Validator.h:27
iguana::physics::Depolarization validator
Definition Validator.h:13
Physics algorithms.
Definition Algorithm.h:5