Iguana LATEST
Implementation Guardian of Analysis Algorithms
Loading...
Searching...
No Matches
Validator.h
1#pragma once
2
4#include "iguana/algorithms/Validator.h"
5#include <Math/Vector4D.h>
6#include <TCanvas.h>
7#include <TFile.h>
8#include <TH1F.h>
9#include <map>
10
11namespace iguana::clas12 {
12
15 {
16
18
19 private: // hooks
20 void StartHook(hipo::banklist& banks) override;
21 bool RunHook(hipo::banklist& banks) const override;
22 void StopHook() override;
23
24 private:
25
26 void FillHistograms(std::vector<ROOT::Math::PxPyPzEVector> const& photons, int idx) const;
27 void InitializeHistograms();
28 void ConfigureHistogram(TH1F* hist, int color);
29
30 hipo::banklist::size_type b_particle;
31
32 std::vector<int> const u_pdg_list = {
33 particle::PDG::electron,
34 particle::PDG::photon};
35
36 TString m_output_file_basename;
37 TFile* m_output_file;
38
39
40 std::map<int, TH1F*> h_Mgg;
41 std::map<int, TH1F*> h_P;
42 std::map<int, TH1F*> h_Th;
43 std::map<int, TH1F*> h_Phi;
44 };
45
46}
#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::PhotonGBTFilter validator
Definition Validator.h:15
General CLAS12 algorithms.
Definition Algorithm.h:5