Public Member Functions | Public Attributes | List of all members
dt::Segment Struct Reference

Window the line must pass through from (z,y0)-(z,y1) More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/DiscreteTracker/Segment.h"

Public Member Functions

 Segment ()
 
 Segment (double a, double b, double c, double d, double e, double f, bool l, int p, int cl, int ch)
 
bool operator== (const Segment &rhs) const
 
bool operator!= (const Segment &rhs) const
 
bool operator< (const Segment &rhs) const
 
SubSeg GetSubSeg (Direction dir) const
 

Public Attributes

double zL
 
double yL0
 
double yL1
 
double zR
 
double yR0
 
double yR1
 
bool left
 
int plane
 
int cellLo
 
int cellHi
 

Detailed Description

Window the line must pass through from (z,y0)-(z,y1)

Definition at line 24 of file Segment.h.

Constructor & Destructor Documentation

dt::Segment::Segment ( )
inline

Definition at line 26 of file Segment.h.

26 {}
dt::Segment::Segment ( double  a,
double  b,
double  c,
double  d,
double  e,
double  f,
bool  l,
int  p,
int  cl,
int  ch 
)
inline

Definition at line 27 of file Segment.h.

References operator==().

30  : zL(a), yL0(b), yL1(c),
31  zR(d), yR0(e), yR1(f),
32  left(l), plane(p), cellLo(cl), cellHi(ch)
33  {
34  }
const char * p
Definition: xmltok.h:285
double yR0
Definition: Segment.h:40
bool left
Definition: Segment.h:41
const double a
Float_t d
Definition: plot.C:236
int cellHi
Definition: Segment.h:42
double zR
Definition: Segment.h:40
int plane
Definition: Segment.h:42
double yL1
Definition: Segment.h:39
double zL
Definition: Segment.h:39
int cellLo
Definition: Segment.h:42
double yL0
Definition: Segment.h:39
const hit & b
Definition: hits.cxx:21
double yR1
Definition: Segment.h:40
Float_t e
Definition: plot.C:35

Member Function Documentation

SubSeg dt::Segment::GetSubSeg ( Direction  dir) const

Definition at line 20 of file Segment.cxx.

References dt::kUpstream, yL0, yL1, yR0, yR1, zL, and zR.

Referenced by dt::Cand::MinMaxLines().

21  {
22  if(dir == kUpstream) return SubSeg(zL, yL0, yL1);
23  return SubSeg(zR, yR0, yR1);
24  }
double yR0
Definition: Segment.h:40
double zR
Definition: Segment.h:40
double yL1
Definition: Segment.h:39
double zL
Definition: Segment.h:39
TDirectory * dir
Definition: macro.C:5
double yL0
Definition: Segment.h:39
double yR1
Definition: Segment.h:40
bool dt::Segment::operator!= ( const Segment rhs) const
inline

Definition at line 36 of file Segment.h.

36 {return !(*this==rhs);}
bool dt::Segment::operator< ( const Segment rhs) const
inline

Definition at line 37 of file Segment.h.

References dir, and zL.

37 {return zL < rhs.zL;}
double zL
Definition: Segment.h:39
bool dt::Segment::operator== ( const Segment rhs) const

Definition at line 12 of file Segment.cxx.

References cellHi, cellLo, left, and plane.

13  {
14  return (left == rhs.left &&
15  plane == rhs.plane &&
16  cellLo == rhs.cellLo && cellHi == rhs.cellHi);
17  }
bool left
Definition: Segment.h:41
int cellHi
Definition: Segment.h:42
int plane
Definition: Segment.h:42
int cellLo
Definition: Segment.h:42

Member Data Documentation

int dt::Segment::cellHi

Definition at line 42 of file Segment.h.

Referenced by dt::operator<<(), and operator==().

int dt::Segment::cellLo

Definition at line 42 of file Segment.h.

Referenced by dt::operator<<(), and operator==().

bool dt::Segment::left
int dt::Segment::plane

Definition at line 42 of file Segment.h.

Referenced by dt::Cand::FirstPlane(), dt::Cand::LastPlane(), dt::operator<<(), and operator==().

double dt::Segment::yL0

Definition at line 39 of file Segment.h.

Referenced by GetSubSeg().

double dt::Segment::yL1

Definition at line 39 of file Segment.h.

Referenced by GetSubSeg().

double dt::Segment::yR0

Definition at line 40 of file Segment.h.

Referenced by GetSubSeg().

double dt::Segment::yR1

Definition at line 40 of file Segment.h.

Referenced by GetSubSeg().

double dt::Segment::zL

Definition at line 39 of file Segment.h.

Referenced by GetSubSeg(), dt::Cand::MinMaxLines(), and operator<().

double dt::Segment::zR

Definition at line 40 of file Segment.h.

Referenced by GetSubSeg().


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