LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
recob::Slice Class Reference

#include "Slice.h"

Public Types

using Point_t = tracking::Point_t
 
using Vector_t = tracking::Vector_t
 

Public Member Functions

 Slice ()
 
 Slice (int id, Point_t center, Vector_t direction, Point_t end0Pos, Point_t end1Pos, float aspectratio, float charge)
 
int ID () const
 
Point_t Center () const
 
Vector_t Direction () const
 
Point_t End0Pos () const
 
Point_t End1Pos () const
 
float AspectRatio () const
 
float Charge () const
 
void SetID (const int id)
 
void SetCenter (const Point_t center)
 
void SetDirection (const Vector_t direction)
 
void SetEnd0Pos (const Point_t endpos)
 
void SetEnd1Pos (const Point_t endpos)
 
void SetAspectRatio (const float aspectratio)
 
void SetCharge (const float charge)
 

Private Attributes

int fID
 id for this slice More...
 
Point_t fCenter
 Center of the slice for flash matching. More...
 
Vector_t fDirection
 direction from a linear fit More...
 
Point_t fEnd0Pos
 Position of a SpacePoint at one end of the slice. More...
 
Point_t fEnd1Pos
 Position of the other end. More...
 
float fAspectRatio
 absolute value of the linear correlation coefficient (0 = round blob, 1 = line) More...
 
float fCharge
 

Detailed Description

Definition at line 16 of file Slice.h.

Member Typedef Documentation

Definition at line 19 of file Slice.h.

Definition at line 20 of file Slice.h.

Constructor & Destructor Documentation

recob::Slice::Slice ( )

Definition at line 5 of file Slice.cxx.

References fID.

6  {
7  fID = -999;
8  }
int fID
id for this slice
Definition: Slice.h:57
recob::Slice::Slice ( int  id,
Point_t  center,
Vector_t  direction,
Point_t  end0Pos,
Point_t  end1Pos,
float  aspectratio,
float  charge 
)
inline

Definition at line 24 of file Slice.h.

31  : fID(id)
32  , fCenter(center)
33  , fDirection(direction)
34  , fEnd0Pos(end0Pos)
35  , fEnd1Pos(end1Pos)
36  , fAspectRatio(aspectratio)
37  , fCharge(charge)
38  {}
Vector_t fDirection
direction from a linear fit
Definition: Slice.h:59
Point_t fCenter
Center of the slice for flash matching.
Definition: Slice.h:58
float fAspectRatio
absolute value of the linear correlation coefficient (0 = round blob, 1 = line)
Definition: Slice.h:63
Point_t fEnd1Pos
Position of the other end.
Definition: Slice.h:61
int fID
id for this slice
Definition: Slice.h:57
float fCharge
Definition: Slice.h:64
Point_t fEnd0Pos
Position of a SpacePoint at one end of the slice.
Definition: Slice.h:60

Member Function Documentation

float recob::Slice::AspectRatio ( ) const
inline

Definition at line 45 of file Slice.h.

References fAspectRatio.

45 { return fAspectRatio; }
float fAspectRatio
absolute value of the linear correlation coefficient (0 = round blob, 1 = line)
Definition: Slice.h:63
Point_t recob::Slice::Center ( ) const
inline

Definition at line 41 of file Slice.h.

References fCenter.

41 { return fCenter; }
Point_t fCenter
Center of the slice for flash matching.
Definition: Slice.h:58
float recob::Slice::Charge ( ) const
inline

Definition at line 46 of file Slice.h.

References fCharge.

46 { return fCharge; }
float fCharge
Definition: Slice.h:64
Vector_t recob::Slice::Direction ( ) const
inline

Definition at line 42 of file Slice.h.

References fDirection.

42 { return fDirection; }
Vector_t fDirection
direction from a linear fit
Definition: Slice.h:59
Point_t recob::Slice::End0Pos ( ) const
inline

Definition at line 43 of file Slice.h.

References fEnd0Pos.

43 { return fEnd0Pos; }
Point_t fEnd0Pos
Position of a SpacePoint at one end of the slice.
Definition: Slice.h:60
Point_t recob::Slice::End1Pos ( ) const
inline

Definition at line 44 of file Slice.h.

References fEnd1Pos.

44 { return fEnd1Pos; }
Point_t fEnd1Pos
Position of the other end.
Definition: Slice.h:61
int recob::Slice::ID ( ) const
inline

Definition at line 40 of file Slice.h.

References fID.

Referenced by lar_pandora::LArPandoraEventDump::PrintSlice().

40 { return fID; }
int fID
id for this slice
Definition: Slice.h:57
void recob::Slice::SetAspectRatio ( const float  aspectratio)
inline

Definition at line 53 of file Slice.h.

References fAspectRatio.

53 { fAspectRatio = aspectratio; }
float fAspectRatio
absolute value of the linear correlation coefficient (0 = round blob, 1 = line)
Definition: Slice.h:63
void recob::Slice::SetCenter ( const Point_t  center)
inline

Definition at line 49 of file Slice.h.

References fCenter.

49 { fCenter = center; }
Point_t fCenter
Center of the slice for flash matching.
Definition: Slice.h:58
void recob::Slice::SetCharge ( const float  charge)
inline

Definition at line 54 of file Slice.h.

References fCharge.

54 { fCharge = charge; }
float fCharge
Definition: Slice.h:64
void recob::Slice::SetDirection ( const Vector_t  direction)
inline

Definition at line 50 of file Slice.h.

References fDirection.

50 { fDirection = direction; }
Vector_t fDirection
direction from a linear fit
Definition: Slice.h:59
void recob::Slice::SetEnd0Pos ( const Point_t  endpos)
inline

Definition at line 51 of file Slice.h.

References fEnd0Pos.

51 { fEnd0Pos = endpos; }
Point_t fEnd0Pos
Position of a SpacePoint at one end of the slice.
Definition: Slice.h:60
void recob::Slice::SetEnd1Pos ( const Point_t  endpos)
inline

Definition at line 52 of file Slice.h.

References fEnd1Pos.

52 { fEnd1Pos = endpos; }
Point_t fEnd1Pos
Position of the other end.
Definition: Slice.h:61
void recob::Slice::SetID ( const int  id)
inline

Definition at line 48 of file Slice.h.

References fID.

48 { fID = id; }
int fID
id for this slice
Definition: Slice.h:57

Member Data Documentation

float recob::Slice::fAspectRatio
private

absolute value of the linear correlation coefficient (0 = round blob, 1 = line)

Definition at line 63 of file Slice.h.

Referenced by AspectRatio(), and SetAspectRatio().

Point_t recob::Slice::fCenter
private

Center of the slice for flash matching.

Definition at line 58 of file Slice.h.

Referenced by Center(), and SetCenter().

float recob::Slice::fCharge
private

Definition at line 64 of file Slice.h.

Referenced by Charge(), and SetCharge().

Vector_t recob::Slice::fDirection
private

direction from a linear fit

Definition at line 59 of file Slice.h.

Referenced by Direction(), and SetDirection().

Point_t recob::Slice::fEnd0Pos
private

Position of a SpacePoint at one end of the slice.

Definition at line 60 of file Slice.h.

Referenced by End0Pos(), and SetEnd0Pos().

Point_t recob::Slice::fEnd1Pos
private

Position of the other end.

Definition at line 61 of file Slice.h.

Referenced by End1Pos(), and SetEnd1Pos().

int recob::Slice::fID
private

id for this slice

Definition at line 57 of file Slice.h.

Referenced by ID(), SetID(), and Slice().


The documentation for this class was generated from the following files: