PixelPIDMaps.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file PixelPIDMaps.h
3 /// \brief PixelPIDMaps for NERDprong
4 /// \author mcgroh@iu.edu psihas@fnal.gov
5 ////////////////////////////////////////////////////////////////////////
6 
7 #ifndef NERD_PIXELMAPS_H
8 #define NERD_PIXELMAPS_H
9 
10 #include <vector>
11 #include "Geometry/Geometry.h"
12 
13 namespace nerd
14 {
16  {
17  public:
18  PixelPIDMaps(std::vector<std::vector<bool>> maskx,
19  std::vector<std::vector<bool>> masky,
20  std::vector<std::vector<float>> labelx,
21  std::vector<std::vector<float>> labely);
22  ~PixelPIDMaps();
23 
24  bool operator== (const PixelPIDMaps& rhs);
25 
26  std::vector<std::vector<bool>> GetViewMask(geo::View_t view);
27  std::vector<std::vector<float>> GetViewLabel(geo::View_t view);
28  unsigned int NClusters(geo::View_t view);
29 
30  private:
31  std::vector<std::vector<bool>> fMaskX;
32  std::vector<std::vector<bool>> fMaskY;
33 
34  std::vector<std::vector<float>> fLabelX;
35  std::vector<std::vector<float>> fLabelY;
36  };
37 }
38 
39 #endif // CVN_PIXELMAP_H
std::vector< std::vector< bool > > fMaskX
Definition: PixelPIDMaps.h:31
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
std::vector< std::vector< bool > > GetViewMask(geo::View_t view)
Defines an enumeration for nerd classification.
std::vector< std::vector< bool > > fMaskY
Definition: PixelPIDMaps.h:32
unsigned int NClusters(geo::View_t view)
std::vector< std::vector< float > > GetViewLabel(geo::View_t view)
std::vector< std::vector< float > > fLabelX
Definition: PixelPIDMaps.h:34
std::vector< std::vector< float > > fLabelY
Definition: PixelPIDMaps.h:35
bool operator==(const PixelPIDMaps &rhs)
Encapsulate the geometry of one entire detector (near, far, ndos)
PixelPIDMaps(std::vector< std::vector< bool >> maskx, std::vector< std::vector< bool >> masky, std::vector< std::vector< float >> labelx, std::vector< std::vector< float >> labely)