Iguana
1.1.0
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
public
:
18
19
void
Start
(hipo::banklist& banks)
override
;
20
bool
Run
(hipo::banklist& banks)
const override
;
21
void
Stop
()
override
;
22
23
private
:
24
25
hipo::banklist::size_type b_inc_kin;
26
hipo::banklist::size_type b_depol;
27
28
struct
Plot2D {
29
TH2D* hist;
30
std::function<double(hipo::bank
const
&,
int
const
)> get_val;
31
};
32
std::vector<Plot2D> plots_vs_Q2;
33
std::vector<Plot2D> plots_vs_x;
34
std::vector<Plot2D> plots_vs_y;
35
36
TString m_output_file_basename;
37
TFile* m_output_file;
38
};
39
40
}
DEFINE_IGUANA_VALIDATOR
#define DEFINE_IGUANA_VALIDATOR(VDOR_NAME, VDOR_FULL_NAME)
Definition
AlgorithmBoilerplate.h:65
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::DepolarizationValidator::Start
void Start(hipo::banklist &banks) override
Initialize this algorithm before any events are processed, with the intent to process banks.
iguana::physics::DepolarizationValidator::Stop
void Stop() override
Finalize this algorithm after all events are processed.
iguana::physics::DepolarizationValidator::Run
bool Run(hipo::banklist &banks) const override
Run Function: Process an event's hipo::banklist
iguana::physics
Physics algorithms.
Definition
Algorithm.h:5
iguana_v1.1.0
src
iguana
algorithms
physics
Depolarization
Validator.h
Generated by
1.18.0