Iguana
1.0.0
Implementation Guardian of Analysis Algorithms
Toggle main menu visibility
Loading...
Searching...
No Matches
Validator.h
1
#pragma once
2
3
#include "
iguana/algorithms/TypeDefs.h
"
4
#include "iguana/algorithms/Validator.h"
5
6
#include <TCanvas.h>
7
#include <TFile.h>
8
#include <TH1.h>
9
#include <TH2.h>
10
11
namespace
iguana::clas12
{
12
14
class
SectorFinderValidator
:
public
Validator
15
{
16
17
DEFINE_IGUANA_VALIDATOR
(
SectorFinderValidator
,
clas12::SectorFinderValidator
)
18
19
public
:
20
21
void
Start
(hipo::banklist& banks)
override
;
22
bool
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
36
TString m_output_file_basename;
37
TFile* m_output_file;
38
mutable
std::unordered_map<int, std::vector<TH2D*>> u_YvsX;
39
TH1D* u_IsInFD;
40
};
41
42
}
DEFINE_IGUANA_VALIDATOR
#define DEFINE_IGUANA_VALIDATOR(VDOR_NAME, VDOR_FULL_NAME)
Definition
AlgorithmBoilerplate.h:65
TypeDefs.h
common objects used in algorithms
iguana::Validator::Validator
Validator(std::string_view name="validator")
Definition
Validator.h:27
iguana::clas12::SectorFinderValidator
iguana::clas12::SectorFinder validator
Definition
Validator.h:15
iguana::clas12::SectorFinderValidator::Stop
void Stop() override
Finalize this algorithm after all events are processed.
iguana::clas12::SectorFinderValidator::Start
void Start(hipo::banklist &banks) override
Initialize this algorithm before any events are processed, with the intent to process banks.
iguana::clas12::SectorFinderValidator::Run
bool Run(hipo::banklist &banks) const override
Run Function: Process an event's hipo::banklist
iguana::clas12
General CLAS12 algorithms.
Definition
Algorithm.h:5
iguana_v1.0.0
src
iguana
algorithms
clas12
SectorFinder
Validator.h
Generated by
1.18.0