HerdSoftware  0.3.2
TracksDistanceSorterAlgo.h
Go to the documentation of this file.
1 /*
2  * TracksDistanceSorterAlgo.h
3  *
4  * Created on: 20 Sep 2021
5  * Author: Nicola Mori
6  */
7 
8 #ifndef HERD_TRACKSDISTANCESORTERALGO_H_
9 #define HERD_TRACKSDISTANCESORTERALGO_H_
10 
11 // HerdSoftware headers
12 
13 // EventAnalysis headers
14 #include "algorithm/Algorithm.h"
15 using namespace EA;
16 
17 // Root headers
18 #include "TH1I.h"
19 #include "TH2I.h"
20 
21 // C/C++ headers
22 
23 namespace Herd {
24 
25 // clang-format off
75 // clang-format on
76 class TracksDistanceSorterAlgo : public Algorithm {
77 public:
82  TracksDistanceSorterAlgo(const std::string &name);
83 
88  bool Initialize() override;
89 
94  bool Process() override;
95 
100  bool Finalize() override;
101 
102 private:
103  // Parameters
104  std::string _axisType;
107  std::vector<float> _meanDistPlotsBins;
108 
109  std::shared_ptr<TH1I> _meanDistXZ, _meanDistYZ, _meanDistXY;
110  std::shared_ptr<TH2I> _meanDistSctXZ, _meanDistSctYZ, _meanDistSctXY;
111  StorePtr _evStore, _globStore;
112 };
113 
114 } // namespace Herd
115 
116 #endif // HERD_CALOAXISTRACKSSORTERALGO_H_
bool _controlPlots
Definition: TracksDistanceSorterAlgo.h:106
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:24
Algorithm that sort tracks according to their proximity to the CALO axis.
Definition: TracksDistanceSorterAlgo.h:76
std::shared_ptr< TH2I > _meanDistSctYZ
Definition: TracksDistanceSorterAlgo.h:110
std::vector< float > _meanDistPlotsBins
Definition: TracksDistanceSorterAlgo.h:107
float _maxDistance
Definition: TracksDistanceSorterAlgo.h:105
std::shared_ptr< TH1I > _meanDistYZ
Definition: TracksDistanceSorterAlgo.h:109
StorePtr _globStore
Definition: TracksDistanceSorterAlgo.h:111
std::string _axisType
Definition: TracksDistanceSorterAlgo.h:104