LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 18 of file Slice.h.

Member Typedef Documentation

Definition at line 22 of file Slice.h.

Definition at line 23 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:49
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 27 of file Slice.h.

28  : fID(id), fCenter(center), fDirection(direction), fEnd0Pos(end0Pos), fEnd1Pos(end1Pos), fAspectRatio(aspectratio), fCharge(charge)
29  {}
Vector_t fDirection
direction from a linear fit
Definition: Slice.h:51
Point_t fCenter
Center of the slice for flash matching.
Definition: Slice.h:50
float fAspectRatio
absolute value of the linear correlation coefficient (0 = round blob, 1 = line)
Definition: Slice.h:54
Point_t fEnd1Pos
Position of the other end.
Definition: Slice.h:53
int fID
id for this slice
Definition: Slice.h:49
float fCharge
Definition: Slice.h:55
Point_t fEnd0Pos
Position of a SpacePoint at one end of the slice.
Definition: Slice.h:52

Member Function Documentation

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

Definition at line 36 of file Slice.h.

References fAspectRatio.

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

Definition at line 32 of file Slice.h.

References fCenter.

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

Definition at line 37 of file Slice.h.

References fCharge.

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

Definition at line 33 of file Slice.h.

References fDirection.

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

Definition at line 34 of file Slice.h.

References fEnd0Pos.

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

Definition at line 35 of file Slice.h.

References fEnd1Pos.

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

Definition at line 31 of file Slice.h.

References fID.

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

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

Definition at line 44 of file Slice.h.

References fAspectRatio.

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

Definition at line 40 of file Slice.h.

References fCenter.

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

Definition at line 45 of file Slice.h.

References fCharge.

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

Definition at line 41 of file Slice.h.

References fDirection.

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

Definition at line 42 of file Slice.h.

References fEnd0Pos.

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

Definition at line 43 of file Slice.h.

References fEnd1Pos.

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

Definition at line 39 of file Slice.h.

References fID.

39 { fID = id;}
int fID
id for this slice
Definition: Slice.h:49

Member Data Documentation

float recob::Slice::fAspectRatio
private

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

Definition at line 54 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 50 of file Slice.h.

Referenced by Center(), and SetCenter().

float recob::Slice::fCharge
private

Definition at line 55 of file Slice.h.

Referenced by Charge(), and SetCharge().

Vector_t recob::Slice::fDirection
private

direction from a linear fit

Definition at line 51 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 52 of file Slice.h.

Referenced by End0Pos(), and SetEnd0Pos().

Point_t recob::Slice::fEnd1Pos
private

Position of the other end.

Definition at line 53 of file Slice.h.

Referenced by End1Pos(), and SetEnd1Pos().

int recob::Slice::fID
private

id for this slice

Definition at line 49 of file Slice.h.

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


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