Iguana 0.0.0
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 <TH1.h>
8#include <TH2.h>
9
10namespace iguana::physics {
11
14 {
15
17
18 public:
19
20 void Start(hipo::banklist& banks) override;
21 void Run(hipo::banklist& banks) const override;
22 void Stop() override;
23
24 private:
25
26 hipo::banklist::size_type b_result;
27
28 struct Plot1D {
29 TH1D* hist;
30 std::function<double(hipo::bank const&, int const)> get_val;
31 };
32 std::vector<Plot1D> plot_list;
33
34 TString m_output_file_basename;
35 TFile* m_output_file;
36 };
37
38}
#define DEFINE_IGUANA_VALIDATOR(VDOR_NAME, VDOR_FULL_NAME)
Base class for all algorithm validators to inherit from.
Definition Validator.h:18
iguana::physics::SingleHadronKinematics validator
Definition Validator.h:14
void Stop() override
Finalize this algorithm after all events are processed.
void Run(hipo::banklist &banks) const override
Run this algorithm for an event.
void Start(hipo::banklist &banks) override
Initialize this algorithm before any events are processed, with the intent to process banks
Physics algorithms.
Definition Algorithm.h:8