GCC Code Coverage Report


Directory: ./
File: src/iguana/algorithms/physics/InclusiveKinematics/Validator.h
Date: 2025-05-30 18:32:38
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 3 4 75.0%
Branches: 7 16 43.8%

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 <TH1.h>
8 #include <TH2.h>
9
10 namespace iguana::physics {
11
12 /// @brief `iguana::physics::InclusiveKinematics` validator
13 class InclusiveKinematicsValidator : public Validator
14 {
15
16
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.
8 DEFINE_IGUANA_VALIDATOR(InclusiveKinematicsValidator, physics::InclusiveKinematicsValidator)
17
18 public:
19
20 void Start(hipo::banklist& banks) override;
21 void 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_result;
28
29 mutable TH1D* lepton_p_dist;
30 mutable TH1D* lepton_theta_dist;
31 mutable TH1D* lepton_phi_dist;
32 mutable TH1D* lepton_vz_dist;
33 mutable TH2D* Q2_vs_x;
34 mutable TH2D* Q2_vs_W;
35 mutable TH1D* y_dist;
36 mutable TH1D* nu_dist;
37
38 TString m_output_file_basename;
39 TFile* m_output_file;
40 };
41
42 }
43