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 <TH2.h>
9
10
namespace
iguana::clas12::rga
{
11
13
class
MomentumCorrectionValidator
:
public
Validator
14
{
15
16
DEFINE_IGUANA_VALIDATOR
(
MomentumCorrectionValidator
,
clas12::rga::MomentumCorrectionValidator
)
17
18
public
:
19
20
void
Start
(hipo::banklist& banks)
override
;
21
bool
Run
(hipo::banklist& banks)
const override
;
22
void
Stop
()
override
;
23
24
private
:
25
26
hipo::banklist::size_type b_particle;
27
hipo::banklist::size_type b_sector;
28
29
double
const
m_p_max = 12.0;
30
double
const
m_deltaP_max = 1.0;
31
double
const
m_deltaP_zoom = 0.2;
32
33
std::vector<int>
const
u_pdg_list = {
34
particle::PDG::electron,
35
particle::PDG::pi_plus,
36
particle::PDG::pi_minus,
37
particle::PDG::proton};
38
39
TString m_output_file_basename;
40
TFile* m_output_file;
41
mutable
std::unordered_map<int, std::vector<TH2D*>> u_deltaPvsP;
42
};
43
44
}
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::rga::MomentumCorrectionValidator
iguana::clas12::rga::MomentumCorrection validator
Definition
Validator.h:14
iguana::clas12::rga::MomentumCorrectionValidator::Stop
void Stop() override
Finalize this algorithm after all events are processed.
iguana::clas12::rga::MomentumCorrectionValidator::Start
void Start(hipo::banklist &banks) override
Initialize this algorithm before any events are processed, with the intent to process banks.
iguana::clas12::rga::MomentumCorrectionValidator::Run
bool Run(hipo::banklist &banks) const override
Run Function: Process an event's hipo::banklist
iguana::clas12::rga
CLAS12 Run Group A algorithms.
Definition
Algorithm.h:5
iguana_v1.0.0
src
iguana
algorithms
clas12
rga
MomentumCorrection
Validator.h
Generated by
1.18.0