All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SRStub.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SRStub.h
3 ////////////////////////////////////////////////////////////////////////
4 #ifndef SRSTUB_H
5 #define SRSTUB_H
6 
10 
11 #include <vector>
12 
13 namespace caf
14 {
15 
16  class SRStubHit {
17  public:
18  SRStubHit();
20 
21  float charge; //!< Calibrated and electron-lifetime-corrected charge [#elec]
22  short wire; //!< Wire number of the hit
23  bool ontrack; //!< Whether this hit is also on an overlaid track
24  };
25 
26  class SRStubPlane {
27  public:
28  SRStubPlane();
30 
31  caf::Plane_t p; //!< Plane number
32  float pitch; //!< Pitch of the stub on each wire [cm].
33  float trkpitch; //!< Pitch of the overlaid track on each wire [cm].
34  float vtx_w; //!< Wire coordinate of vertex on this plane (not space charge corrected).
35  short hit_w; //!< Wire of the end-point-hit.
36  std::vector<SRStubHit> hits; //!< List of all the hits on this plane.
37  };
38 
39  class SRStub {
40  public:
41  SRStub();
42  ~SRStub() {}
43 
44  SRVector3D vtx; //!< Vertex/start position of stub [cm]
45  SRVector3D end; //!< End position of stub [cm]
46 
47  std::vector<SRStubPlane> planes;
48  float efield_vtx; //!< Electric field at the vertex position of the stub [kV/cm]
49  float efield_end; //!< Electric field at the end position of the stub [kV/cm]
50 
51  int pfpid; //!< PFP ID of an object that "overlays" the stub. -1 if there is no such object.
52  SRTrackTruth truth; ///< truth information
53  };
54 } // end namespace
55 
56 #endif // SRSTUB_H
57 //////////////////////////////////////////////////////////////////////////////
SRTrackTruth truth
truth information
Definition: SRStub.h:52
A 3-vector with more efficient storage than TVector3.
Definition: SRVector3D.h:16
Plane_t
Definition: SREnums.h:14
float pitch
Pitch of the stub on each wire [cm].
Definition: SRStub.h:32
int pfpid
PFP ID of an object that &quot;overlays&quot; the stub. -1 if there is no such object.
Definition: SRStub.h:51
short hit_w
Wire of the end-point-hit.
Definition: SRStub.h:35
~SRStub()
Definition: SRStub.h:42
std::vector< SRStubPlane > planes
Definition: SRStub.h:47
short wire
Wire number of the hit.
Definition: SRStub.h:22
caf::Plane_t p
Plane number.
Definition: SRStub.h:31
bool ontrack
Whether this hit is also on an overlaid track.
Definition: SRStub.h:23
float vtx_w
Wire coordinate of vertex on this plane (not space charge corrected).
Definition: SRStub.h:34
float trkpitch
Pitch of the overlaid track on each wire [cm].
Definition: SRStub.h:33
SRVector3D end
End position of stub [cm].
Definition: SRStub.h:45
float charge
Calibrated and electron-lifetime-corrected charge [#elec].
Definition: SRStub.h:21
std::vector< SRStubHit > hits
List of all the hits on this plane.
Definition: SRStub.h:36
float efield_end
Electric field at the end position of the stub [kV/cm].
Definition: SRStub.h:49
SRVector3D vtx
Vertex/start position of stub [cm].
Definition: SRStub.h:44
float efield_vtx
Electric field at the vertex position of the stub [kV/cm].
Definition: SRStub.h:48