LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Boundary.h
Go to the documentation of this file.
1 
7 #ifndef LCVN_BOUNDARY_H
8 #define LCVN_BOUNDARY_H
9 
10 #include <ostream>
11 #include <vector>
12 
13 namespace lcvn {
14 
19  class Boundary {
20 
21  public:
24  Boundary(const int nWire,
25  const double tRes,
26  const int minWireX,
27  const int minWireY,
28  const int minWireZ,
29  const double centerTDCX,
30  const double centerTDCY,
31  const double centerTDCZ);
32 
33  Boundary(){};
34 
35  bool IsWithin(const unsigned int wire, const double cell, const unsigned int view);
36 
37  int FirstWire(const unsigned int view) const { return fFirstWire[view]; };
38  int LastWire(const unsigned int view) const { return fLastWire[view]; };
39  double FirstTDC(const unsigned int view) const { return fFirstTDC[view]; };
40  double LastTDC(const unsigned int view) const { return fLastTDC[view]; };
41 
42  private:
43  int fFirstWire[3];
44  int fLastWire[3];
45  double fFirstTDC[3];
46  double fLastTDC[3];
47  };
48 
49  std::ostream& operator<<(std::ostream& os, const Boundary& b);
50 }
51 
52 #endif // CVN_BOUNDARY_H
int fFirstWire[3]
Minimum wire, inclusive.
Definition: Boundary.h:40
int LastWire(const unsigned int view) const
Definition: Boundary.h:38
Utility class for truth labels.
int FirstWire(const unsigned int view) const
Definition: Boundary.h:37
double fLastTDC[3]
Maximum cell in each view, inclusive.
Definition: Boundary.h:46
double fFirstTDC[3]
Minimum cell in each view, inclusive.
Definition: Boundary.h:45
double FirstTDC(const unsigned int view) const
Definition: Boundary.h:39
double LastTDC(const unsigned int view) const
Definition: Boundary.h:40
std::ostream & operator<<(std::ostream &os, const Boundary &b)
Definition: Boundary.cxx:47
int fLastWire[3]
Maximum wire, inclusive.
Definition: Boundary.h:44
bool IsWithin(const unsigned int wire, const double cell, const unsigned int view)
Definition: Boundary.cxx:40