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 |
9/24✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 1 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 1 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 1 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 1 times.
✗ Branch 13 not taken.
✓ Branch 14 taken 1 times.
✗ Branch 15 not taken.
✓ Branch 16 taken 1 times.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
|
9 | DEFINE_IGUANA_VALIDATOR(ZVertexFilterValidator, clas12::ZVertexFilterValidator) |
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_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 |