Iguana 0.0.0
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#include <TH1.h>
10
11namespace iguana::clas12 {
12
15 {
16
18
19 public:
20
21 void Start(hipo::banklist& banks) override;
22 void Run(hipo::banklist& banks) const override;
23 void Stop() override;
24
25 private:
26
27 hipo::banklist::size_type b_particle;
28 hipo::banklist::size_type b_sector;
29 hipo::banklist::size_type b_cal;
30
31 std::vector<int> const u_pdg_list = {
32 particle::PDG::electron,
33 particle::PDG::photon,};
34
35 TString m_output_file_basename;
36 TFile* m_output_file;
37 mutable std::unordered_map<int, std::vector<TH2D*>> u_YvsX;
38 TH1D* u_IsInFD;
39 };
40
41}
#define DEFINE_IGUANA_VALIDATOR(VDOR_NAME, VDOR_FULL_NAME)
Type definitions for common objects used in algorithms.
Base class for all algorithm validators to inherit from.
Definition Validator.h:18
iguana::clas12::SectorFinder validator
Definition Validator.h:15
void Stop() override
Finalize this algorithm after all events are processed.
void Start(hipo::banklist &banks) override
Initialize this algorithm before any events are processed, with the intent to process banks
void Run(hipo::banklist &banks) const override
Run this algorithm for an event.
CLAS12 algorithms.
Definition Algorithm.h:5