Iguana LATEST
Implementation Guardian of Analysis Algorithms
Loading...
Searching...
No Matches
Validator.h
1#pragma once
2
4#include "iguana/algorithms/Validator.h"
5
6#include <TCanvas.h>
7#include <TFile.h>
8#include <TH2.h>
9
10namespace iguana::clas12::rga {
11
14 {
15
17
18 private: // hooks
19 void StartHook(hipo::banklist& banks) override;
20 bool RunHook(hipo::banklist& banks) const override;
21 void StopHook() override;
22
23 private:
24
25 hipo::banklist::size_type b_particle;
26 hipo::banklist::size_type b_sector;
27
28 double const m_p_max = 12.0;
29 double const m_deltaP_max = 1.0;
30 double const m_deltaP_zoom = 0.2;
31
32 std::vector<int> const u_pdg_list = {
33 particle::PDG::electron,
34 particle::PDG::pi_plus,
35 particle::PDG::pi_minus,
36 particle::PDG::proton};
37
38 TString m_output_file_basename;
39 TFile* m_output_file;
40 mutable std::unordered_map<int, std::vector<TH2D*>> u_deltaPvsP;
41 };
42
43}
#define DEFINE_IGUANA_VALIDATOR(VDOR_NAME, VDOR_FULL_NAME)
common objects used in algorithms
Validator(std::string_view name="validator")
Definition Validator.h:27
iguana::clas12::rga::MomentumCorrection validator
Definition Validator.h:14
CLAS12 Run Group A algorithms.
Definition Algorithm.h:5