RegCNNBoundary.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file RegCNNBoundary.h
3 /// \brief RegCNNBoundary for RegCNN PixelMap modified from CVNBoundary.h
4 /// \author Ilsoo Seong - iseong@uci.edu
5 ////////////////////////////////////////////////////////////////////////
6 
7 #ifndef REGCNN_BOUNDARY_H
8 #define REGCNN_BOUNDARY_H
9 
10 #include <ostream>
11 #include <vector>
12 
13 
14 namespace cnn
15 {
16 
17 
18  /// RegCNNBoundary object intended for use with cnn::RegPixelMap.
19  /// Stores mean of wire and TPCs
21  {
22 
23  public:
24  /// Create new RegCNNBoundary object based on number of wires, number of tdcs,
25  /// minumum wire and mean tdc in odd and even view.
26  RegCNNBoundary(const int& nWire, const int& nTDC,
27  const int& wRes, const int& tRes,
28  const int& WireMeanX,
29  const int& WireMeanY,
30  const int& WireMeanZ,
31  const int& TDCMeanX,
32  const int& TDCMeanY,
33  const int& TDCMeanZ);
34 
36 
37  bool IsWithin(const int& wire, const int& tdc, const unsigned int& view);
38 
39  int FirstWire(const unsigned int& view) const {return fFirstWire[view];};
40  int LastWire(const unsigned int& view) const {return fLastWire[view];};
41  int FirstTDC(const unsigned int& view) const {return fFirstTDC[view];};
42  int LastTDC (const unsigned int& view) const {return fLastTDC[view];};
43 
44 
45 
46  int fFirstWire[3]; ///< Minimum wire, inclusive
47  int fLastWire[3]; ///< Maximum wire, inclusive
48  int fFirstTDC[3]; ///< Minimum TDC in each view, inclusive
49  int fLastTDC[3]; ///< Maximum TDC in each view, inclusive
50 
51 
52  };
53 
54  std::ostream& operator<<(std::ostream& os, const RegCNNBoundary& b);
55 }
56 
57 #endif // REGCNN_BOUNDARY_H
int FirstWire(const unsigned int &view) const
int fLastWire[3]
Maximum wire, inclusive.
int fFirstTDC[3]
Minimum TDC in each view, inclusive.
int fFirstWire[3]
Minimum wire, inclusive.
bool IsWithin(const int &wire, const int &tdc, const unsigned int &view)
int fLastTDC[3]
Maximum TDC in each view, inclusive.
Defines an enumeration for cellhit classification.
int LastTDC(const unsigned int &view) const
int LastWire(const unsigned int &view) const
std::ostream & operator<<(std::ostream &os, const RegPixelMap3DProducer &p)
static bool * b
Definition: config.cpp:1043
int FirstTDC(const unsigned int &view) const