|
1 | | -#ifndef DATAFORMATS_METRECO_PHIWEDGE_H |
2 | | -#define DATAFORMATS_METRECO_PHIWEDGE_H |
| 1 | +#ifndef DataFormats_METReco_interface_PhiWedge_h |
| 2 | +#define DataFormats_METReco_interface_PhiWedge_h |
3 | 3 | /* |
4 | 4 | [class]: PhiWedge |
5 | 5 | [authors]: R. Remington, The University of Florida |
6 | 6 | [description]: Simple class analogous to CaloTower but in z-direction. Stores basic information related to Hcal and Ecal rechits within constant 5-degree phi windows. The idea will be to match these reconstructed phi-wedges with csc tracks for BeamHalo identification. |
7 | 7 | [date]: October 15, 2009 |
8 | 8 | */ |
9 | | -#include "TMath.h" |
| 9 | + |
10 | 10 | #include <vector> |
| 11 | + |
| 12 | +#include "TMath.h" |
| 13 | + |
11 | 14 | namespace reco { |
12 | 15 |
|
13 | 16 | class PhiWedge { |
14 | 17 | public: |
15 | 18 | // Constructors |
16 | | - PhiWedge(); |
17 | | - PhiWedge(float E, int iphi, int constituents); |
18 | | - PhiWedge(float E, int iphi, int constituents, float min_time, float max_time); |
19 | | - PhiWedge(const PhiWedge&); |
20 | | - // Destructors |
| 19 | + constexpr PhiWedge() |
| 20 | + : energy_{0.f}, |
| 21 | + iphi_{0}, |
| 22 | + constituents_{0}, |
| 23 | + min_time_{0.f}, |
| 24 | + max_time_{0.f}, |
| 25 | + PlusZOriginConfidence_{0.f}, |
| 26 | + OverlappingCSCTracks_{0}, |
| 27 | + OverlappingCSCSegments_{0}, |
| 28 | + OverlappingCSCRecHits_{0}, |
| 29 | + OverlappingCSCHaloTriggers_{0} {} |
| 30 | + |
| 31 | + constexpr PhiWedge(float E, int iphi, int constituents) |
| 32 | + : energy_{E}, |
| 33 | + iphi_{iphi}, |
| 34 | + constituents_{constituents}, |
| 35 | + min_time_{0.f}, |
| 36 | + max_time_{0.f}, |
| 37 | + PlusZOriginConfidence_{0.f}, |
| 38 | + OverlappingCSCTracks_{0}, |
| 39 | + OverlappingCSCSegments_{0}, |
| 40 | + OverlappingCSCRecHits_{0}, |
| 41 | + OverlappingCSCHaloTriggers_{0} {} |
21 | 42 |
|
22 | | - ~PhiWedge() {} |
| 43 | + constexpr PhiWedge(float E, int iphi, int constituents, float min_time, float max_time) |
| 44 | + : energy_{E}, |
| 45 | + iphi_{iphi}, |
| 46 | + constituents_{constituents}, |
| 47 | + min_time_{min_time}, |
| 48 | + max_time_{max_time}, |
| 49 | + PlusZOriginConfidence_{0.f}, |
| 50 | + OverlappingCSCTracks_{0}, |
| 51 | + OverlappingCSCSegments_{0}, |
| 52 | + OverlappingCSCRecHits_{0}, |
| 53 | + OverlappingCSCHaloTriggers_{0} {} |
| 54 | + |
| 55 | + constexpr PhiWedge(PhiWedge const &) = default; |
| 56 | + constexpr PhiWedge(PhiWedge &&) = default; |
| 57 | + |
| 58 | + constexpr PhiWedge &operator=(PhiWedge const &) = default; |
| 59 | + constexpr PhiWedge &operator=(PhiWedge &&) = default; |
| 60 | + |
| 61 | + // Destructor |
| 62 | + constexpr ~PhiWedge() = default; |
23 | 63 |
|
24 | 64 | // Energy sum of all rechits above threshold in this 5-degree window |
25 | 65 | float Energy() const { return energy_; } |
@@ -80,6 +120,9 @@ namespace reco { |
80 | 120 | int OverlappingCSCRecHits_; |
81 | 121 | int OverlappingCSCHaloTriggers_; |
82 | 122 | }; |
83 | | - typedef std::vector<PhiWedge> PhiWedgeCollection; |
| 123 | + |
| 124 | + using PhiWedgeCollection = std::vector<PhiWedge>; |
| 125 | + |
84 | 126 | } // namespace reco |
85 | | -#endif |
| 127 | + |
| 128 | +#endif // DataFormats_METReco_interface_PhiWedge_h |
0 commit comments