| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "iguana/algorithms/TypeDefs.h" | ||
| 4 | #include "iguana/algorithms/Validator.h" | ||
| 5 | |||
| 6 | #include <TFile.h> | ||
| 7 | #include <TH1.h> | ||
| 8 | |||
| 9 | namespace iguana::clas12 { | ||
| 10 | |||
| 11 | /// @brief `iguana::clas12::ZVertexFilter` validator | ||
| 12 | class ZVertexFilterValidator : public Validator | ||
| 13 | { | ||
| 14 | |||
| 15 |
10/26✓ Branch 2 → 3 taken 1 time.
✗ Branch 2 → 6 not taken.
✗ Branch 5 → 7 not taken.
✓ Branch 5 → 8 taken 1 time.
✓ Branch 9 → 10 taken 1 time.
✗ Branch 9 → 36 not taken.
✓ Branch 10 → 11 taken 1 time.
✗ Branch 10 → 17 not taken.
✓ Branch 17 → 18 taken 1 time.
✗ Branch 17 → 60 not taken.
✓ Branch 18 → 19 taken 1 time.
✗ Branch 18 → 56 not taken.
✓ Branch 19 → 20 taken 1 time.
✗ Branch 19 → 52 not taken.
✓ Branch 20 → 21 taken 1 time.
✗ Branch 20 → 48 not taken.
✓ Branch 21 → 22 taken 1 time.
✗ Branch 21 → 44 not taken.
✓ Branch 28 → 29 taken 1 time.
✗ Branch 28 → 44 not taken.
✗ Branch 36 → 37 not taken.
✗ Branch 36 → 43 not taken.
✗ Branch 52 → 53 not taken.
✗ Branch 52 → 55 not taken.
✗ Branch 56 → 57 not taken.
✗ Branch 56 → 59 not taken.
|
10 | DEFINE_IGUANA_VALIDATOR(ZVertexFilterValidator, clas12::ZVertexFilterValidator) |
| 16 | |||
| 17 | public: | ||
| 18 | |||
| 19 | void Start(hipo::banklist& banks) override; | ||
| 20 | bool Run(hipo::banklist& banks) const override; | ||
| 21 | void Stop() override; | ||
| 22 | |||
| 23 | private: | ||
| 24 | |||
| 25 | hipo::banklist::size_type b_particle; | ||
| 26 | |||
| 27 | // add pdgs not to cut to check we're | ||
| 28 | // only cutting on right particles | ||
| 29 | std::vector<int> const u_pdg_list = { | ||
| 30 | particle::PDG::electron, | ||
| 31 | particle::PDG::pi_plus, | ||
| 32 | particle::PDG::pi_minus, | ||
| 33 | particle::PDG::proton, | ||
| 34 | particle::PDG::neutron}; | ||
| 35 | |||
| 36 | std::vector<int> const u_pdgtocut_list = { | ||
| 37 | particle::PDG::electron}; | ||
| 38 | |||
| 39 | std::vector<double> const u_cuts_list = { | ||
| 40 | -5, | ||
| 41 | 5}; | ||
| 42 | |||
| 43 | TString m_output_file_basename; | ||
| 44 | TFile* m_output_file; | ||
| 45 | mutable std::unordered_map<int, std::vector<TH1D*>> u_zvertexplots; | ||
| 46 | }; | ||
| 47 | |||
| 48 | } | ||
| 49 |