Line | Branch | Exec | Source |
---|---|---|---|
1 | #pragma once | ||
2 | |||
3 | #include "iguana/algorithms/Validator.h" | ||
4 | #include "iguana/algorithms/TypeDefs.h" | ||
5 | #include <TH1F.h> | ||
6 | #include <TFile.h> | ||
7 | #include <TCanvas.h> | ||
8 | #include <TStyle.h> | ||
9 | #include <Math/Vector4D.h> | ||
10 | #include <map> | ||
11 | |||
12 | namespace iguana::clas12 { | ||
13 | |||
14 | /// @brief `iguana::clas12::PhotonGBTFilter` validator | ||
15 | class PhotonGBTFilterValidator : public Validator | ||
16 | { | ||
17 | |||
18 |
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(PhotonGBTFilterValidator, clas12::PhotonGBTFilterValidator) |
19 | |||
20 | public: | ||
21 | |||
22 | void Start(hipo::banklist& banks) override; | ||
23 | void Run(hipo::banklist& banks) const override; | ||
24 | void Stop() override; | ||
25 | |||
26 | private: | ||
27 | |||
28 | void FillHistograms(const std::vector<ROOT::Math::PxPyPzEVector>& photons, int idx) const; | ||
29 | void InitializeHistograms(); | ||
30 | void ConfigureHistogram(TH1F* hist, int color); | ||
31 | |||
32 | hipo::banklist::size_type b_particle; | ||
33 | |||
34 | std::vector<int> const u_pdg_list = { | ||
35 | particle::PDG::electron, | ||
36 | particle::PDG::photon}; | ||
37 | |||
38 | TString m_output_file_basename; | ||
39 | TFile* m_output_file; | ||
40 | |||
41 | |||
42 | std::map<int, TH1F*> h_Mgg; | ||
43 | std::map<int, TH1F*> h_P; | ||
44 | std::map<int, TH1F*> h_Th; | ||
45 | std::map<int, TH1F*> h_Phi; | ||
46 | |||
47 | }; | ||
48 | |||
49 | } | ||
50 | |||
51 |