GCC Code Coverage Report


Directory: ./
File: src/iguana/algorithms/clas12/SectorFinder/Validator.h
Date: 2025-03-24 18:50:00
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 4 4 100.0%
Branches: 7 16 43.8%

Line Branch Exec Source
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 #include <TH1.h>
10
11 namespace iguana::clas12 {
12
13 /// @brief `iguana::clas12::SectorFinder` validator
14 class SectorFinderValidator : public Validator
15 {
16
17
7/16
✓ Branch 0 (2→3) taken 1 times.
✗ Branch 1 (2→6) not taken.
✓ Branch 2 (7→8) taken 1 times.
✗ Branch 3 (7→20) not taken.
✓ Branch 4 (8→9) taken 1 times.
✗ Branch 5 (8→11) not taken.
✓ Branch 6 (11→12) taken 1 times.
✗ Branch 7 (11→32) not taken.
✓ Branch 8 (12→13) taken 1 times.
✗ Branch 9 (12→28) not taken.
✓ Branch 10 (13→14) taken 1 times.
✗ Branch 11 (13→24) not taken.
✓ Branch 12 (16→17) taken 1 times.
✗ Branch 13 (16→24) not taken.
✗ Branch 14 (20→21) not taken.
✗ Branch 15 (20→23) not taken.
9 DEFINE_IGUANA_VALIDATOR(SectorFinderValidator, clas12::SectorFinderValidator)
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 }
42