LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Slice.h
Go to the documentation of this file.
1 //
3 // \brief Definition of slice object for LArSoft
4 //
5 // \author tjyang@fnal.gov
6 //
8 
9 #ifndef RB_SLICE_H
10 #define RB_SLICE_H
11 
12 
13 #include <iosfwd>
14 #include <vector>
15 
16 
17 namespace recob {
18 
19  class Slice {
20 
21  public:
22  Slice(); // Needed to hide constexpr from GCCXML.
23 
24  private:
25 
26  int fID;
27  float fAspectRatio;
28 
29  public:
30  explicit Slice(int id, float aspectratio);
31 
32  int ID() const;
33  float AspectRatio() const;
34  void SetID(const int id) { fID = id;}
35  void SetAspectRatio(const float aspectratio) {fAspectRatio = aspectratio;}
36 
37  };
38 }
39 
40 
41 inline int recob::Slice::ID() const { return fID; }
42 inline float recob::Slice::AspectRatio() const { return fAspectRatio; }
43 
44 #endif // RB_SLICE_H
void SetAspectRatio(const float aspectratio)
Definition: Slice.h:35
Reconstruction base classes.
float fAspectRatio
absolute value of the linear correlation coefficient (0 = round blob, 1 = line)
Definition: Slice.h:27
void SetID(const int id)
Definition: Slice.h:34
int fID
id for this slice
Definition: Slice.h:26
int ID() const
Definition: Slice.h:41
float AspectRatio() const
Definition: Slice.h:42