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 | |||
10 | namespace iguana::clas12 { | ||
11 | |||
12 | /// @brief `iguana::clas12::FiducialFilter` validator | ||
13 | class FiducialFilterValidator : public Validator | ||
14 | { | ||
15 | |||
16 |
7/16✓ 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 not taken.
✗ Branch 15 not taken.
|
10 | DEFINE_IGUANA_VALIDATOR(FiducialFilterValidator, clas12::FiducialFilterValidator) |
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_traj; | ||
28 | |||
29 | double const DC1xleft = -200; | ||
30 | double const DC1xright = 200; | ||
31 | double const DC1ybottom = -200; | ||
32 | double const DC1ytop = 200; | ||
33 | double const DC2xleft = -200; | ||
34 | double const DC2xright = 200; | ||
35 | double const DC2ybottom = -200; | ||
36 | double const DC2ytop = 200; | ||
37 | double const DC3xleft = -200; | ||
38 | double const DC3xright = 200; | ||
39 | double const DC3ybottom = -200; | ||
40 | double const DC3ytop = 200; | ||
41 | |||
42 | std::vector<int> const u_pdg_list = { | ||
43 | particle::PDG::electron, | ||
44 | particle::PDG::pi_plus, | ||
45 | particle::PDG::pi_minus, | ||
46 | particle::PDG::proton}; | ||
47 | |||
48 | TString m_output_file_basename; | ||
49 | TFile* m_output_file; | ||
50 | mutable std::unordered_map<int, TH2D*> u_DC1_before; | ||
51 | mutable std::unordered_map<int, TH2D*> u_DC2_before; | ||
52 | mutable std::unordered_map<int, TH2D*> u_DC3_before; | ||
53 | |||
54 | mutable std::unordered_map<int, TH2D*> u_DC1_after; | ||
55 | mutable std::unordered_map<int, TH2D*> u_DC2_after; | ||
56 | mutable std::unordered_map<int, TH2D*> u_DC3_after; | ||
57 | }; | ||
58 | |||
59 | } | ||
60 |