HerdSoftware  0.3.2
CaloAxisPointingCorrLeakageAlgo.h
Go to the documentation of this file.
1 /*
2  * CaloAxisPointingCorrLeakageAlgo.h
3  *
4  * Created on 2 November 2021
5  * Author: Valerio Vagelli
6  */
7 
10 #ifndef CALOAXISPOINTINGCORRLEAKAGEALGO_H_
11 #define CALOAXISPOINTINGCORRLEAKAGEALGO_H_
12 
13 // HerdSoftware headers
15 #include "dataobjects/CaloHits.h"
16 #include "dataobjects/Tracks.h"
17 
18 // EventAnalysis headers
19 #include "algorithm/Algorithm.h"
20 
21 using namespace EA;
22 
23 namespace Herd {
24 // clang-format off
64 // clang-format on
65 
66 class CaloAxisPointingCorrLeakageAlgo : public Algorithm {
67 
68 public:
73  CaloAxisPointingCorrLeakageAlgo(const std::string &name);
74 
79  bool Initialize() override;
80 
85  bool Process() override;
86 
91  bool Finalize() override;
92 
93 private:
95  bool ApplyCorrection(Track &caloAxis, const CaloGeoParams &geoParams);
96 
98  float _leakRadius;
100  float _leakDepth;
105 
106  // Utility variables
107  observer_ptr<EventDataStore> _evStore; // Pointer to the event data store
108  observer_ptr<GlobalDataStore> _globStore; // Pointer to the global data store
109 };
110 
111 #endif /* CALOAXISPOINTINGCORRLEAKAGEALGO_H_ */
112 }
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:24
float _edepThreshold
internal variable
Definition: CaloAxisPointingCorrLeakageAlgo.h:104
Algorithm for correction of Calorimeter axis pointing.
Definition: CaloAxisPointingCorrLeakageAlgo.h:66
Data structure for the Calo geometry parameters.
Definition: CaloGeoParams.h:34
observer_ptr< EventDataStore > _evStore
Definition: CaloAxisPointingCorrLeakageAlgo.h:107
observer_ptr< GlobalDataStore > _globStore
Definition: CaloAxisPointingCorrLeakageAlgo.h:108
float _leakThreshold
internal variable
Definition: CaloAxisPointingCorrLeakageAlgo.h:102
Class describing a track.
Definition: Track.h:44
float _leakDepth
internal variable
Definition: CaloAxisPointingCorrLeakageAlgo.h:100
float _leakRadius
internal variable
Definition: CaloAxisPointingCorrLeakageAlgo.h:98