GCC Code Coverage Report


Directory: ./
File: src/iguana/algorithms/physics/Depolarization/Validator.h
Date: 2025-05-30 18:32:38
Exec Total Coverage
Lines: 2 2 100.0%
Functions: 4 4 100.0%
Branches: 10 22 45.5%

Line Branch Exec Source
1 #pragma once
2
3 #include "iguana/algorithms/Validator.h"
4
5 #include <TCanvas.h>
6 #include <TFile.h>
7 #include <TH2.h>
8
9 namespace iguana::physics {
10
11 /// @brief `iguana::physics::Depolarization` validator
12 class DepolarizationValidator : public Validator
13 {
14
15
7/16
✓ Branch 0 (2→3) taken 1 times.
✗ Branch 1 (2→6) not taken.
✗ Branch 2 (5→7) not taken.
✓ Branch 3 (5→8) taken 1 times.
✓ Branch 4 (9→10) taken 1 times.
✗ Branch 5 (9→33) not taken.
✓ Branch 6 (10→11) taken 1 times.
✗ Branch 7 (10→17) not taken.
✓ Branch 8 (17→18) taken 1 times.
✗ Branch 9 (17→43) not taken.
✓ Branch 10 (18→19) taken 1 times.
✗ Branch 11 (18→41) not taken.
✓ Branch 12 (25→26) taken 1 times.
✗ Branch 13 (25→41) not taken.
✗ Branch 14 (33→34) not taken.
✗ Branch 15 (33→40) not taken.
9 DEFINE_IGUANA_VALIDATOR(DepolarizationValidator, physics::DepolarizationValidator)
16
17 public:
18
19 void Start(hipo::banklist& banks) override;
20 void Run(hipo::banklist& banks) const override;
21 void Stop() override;
22
23 private:
24
25 hipo::banklist::size_type b_inc_kin;
26 hipo::banklist::size_type b_depol;
27
28
3/6
✓ Branch 0 (3→4) taken 45 times.
✗ Branch 1 (3→5) not taken.
✓ Branch 2 (7→8) taken 15 times.
✗ Branch 3 (7→9) not taken.
✓ Branch 4 (3→4) taken 15 times.
✗ Branch 5 (3→5) not taken.
180 struct Plot2D {
29 TH2D* hist;
30 std::function<double(hipo::bank const&, int const)> get_val;
31 };
32 std::vector<Plot2D> plots_vs_Q2;
33 std::vector<Plot2D> plots_vs_x;
34 std::vector<Plot2D> plots_vs_y;
35
36 TString m_output_file_basename;
37 TFile* m_output_file;
38 };
39
40 }
41