HerdSoftware  0.4.0
PolarAngleCut.h
Go to the documentation of this file.
1 /*
2  * PolarAngleCut.h
3  *
4  * Created on: 03 June 2019
5  * Author: Lorenzo Pacini
6  */
7 
8 #ifndef HERD_POLARANGLECUT_H_
9 #define HERD_POLARANGLECUT_H_
10 
11 #include "algorithm/Algorithm.h"
12 
13 namespace Herd {
14 
31 class PolarAngleCut : public EA::Algorithm {
32 public:
37  PolarAngleCut(const std::string &name);
38 
43  bool Initialize() override;
44 
49  bool Process() override;
50 
55  bool Finalize() override;
56 
57 private:
58  EA::observer_ptr<EA::EventDataStore> m_evStore;
59 
60  float m_maxTheta;
61 };
62 
63 } // namespace Herd
64 
65 #endif /* HERD_POLARANGLECUT_H_ */
Herd::PolarAngleCut::Initialize
bool Initialize() override
Initializes the algo.
Definition: PolarAngleCut.cpp:28
Herd::PolarAngleCut::Process
bool Process() override
Applies the cut.
Definition: PolarAngleCut.cpp:49
Herd::PolarAngleCut::PolarAngleCut
PolarAngleCut(const std::string &name)
Constructor.
Definition: PolarAngleCut.cpp:20
Herd
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:22
Herd::PolarAngleCut
An algorithm that rejects events with the polar angle greather than a threshold.
Definition: PolarAngleCut.h:31
Herd::PolarAngleCut::m_evStore
EA::observer_ptr< EA::EventDataStore > m_evStore
Pointer to the event data store.
Definition: PolarAngleCut.h:58
Herd::PolarAngleCut::m_maxTheta
float m_maxTheta
Cut threshold.
Definition: PolarAngleCut.h:60
Herd::PolarAngleCut::Finalize
bool Finalize() override
Do nothing.
Definition: PolarAngleCut.cpp:70