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