Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
trk::LocatedChan Class Reference

Representation of a detector channel with positional information. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-04-11/TrackFit/LocatedChan.h"

Inheritance diagram for trk::LocatedChan:
geo::OfflineChan

Public Member Functions

 LocatedChan ()
 
 LocatedChan (int plane, int cell)
 
void SetHit (art::Ptr< rb::CellHit > chit)
 
art::Ptr< rb::CellHitGetHit () const
 
void SetCenter (double x, double y, double z)
 
void GetCenter (double *xyz)
 
void SetHalfWidths (double dx, double dy, double dz)
 
void GetHalfWidths (double *dxyz)
 
int ToDBValidityChan () const
 
unsigned short Plane () const
 
unsigned short Cell () const
 
bool operator== (const OfflineChan &rhs) const
 
bool operator< (const OfflineChan &rhs) const
 

Static Public Member Functions

static OfflineChan FromDBValidityChan (int chan)
 

Protected Attributes

art::Ptr< rb::CellHitfHit
 cellhit in this channel More...
 
TVector3 fcenter
 cell center position More...
 
TVector3 fhalfwidths
 half widths of cell More...
 
unsigned short fPlane
 
unsigned short fCell
 

Detailed Description

Representation of a detector channel with positional information.

Definition at line 15 of file LocatedChan.h.

Constructor & Destructor Documentation

trk::LocatedChan::LocatedChan ( )

Definition at line 6 of file LocatedChan.cxx.

7  :OfflineChan()
8  {
9  }
trk::LocatedChan::LocatedChan ( int  plane,
int  cell 
)

Definition at line 11 of file LocatedChan.cxx.

Member Function Documentation

unsigned short geo::OfflineChan::Cell ( ) const
inlineinherited
OfflineChan OfflineChan::FromDBValidityChan ( int  chan)
staticinherited
void trk::LocatedChan::GetCenter ( double *  xyz)

Return the center position of a the channel

Parameters
xyz: 3-D array. The returned location

Definition at line 37 of file LocatedChan.cxx.

References fcenter.

38  {
39  xyz[0] = fcenter.X();
40  xyz[1] = fcenter.Y();
41  xyz[2] = fcenter.Z();
42  }
TVector3 fcenter
cell center position
Definition: LocatedChan.h:29
void trk::LocatedChan::GetHalfWidths ( double *  dxyz)

Return the half widths of the channel

Parameters
dxyz: 3-D array. The half width of the cell in each dimension

Definition at line 53 of file LocatedChan.cxx.

References fhalfwidths.

54  {
55  dxyz[0] = fhalfwidths.X();
56  dxyz[1] = fhalfwidths.Y();
57  dxyz[2] = fhalfwidths.Z();
58  }
TVector3 fhalfwidths
half widths of cell
Definition: LocatedChan.h:30
art::Ptr< rb::CellHit > trk::LocatedChan::GetHit ( ) const

Definition at line 23 of file LocatedChan.cxx.

References fHit.

24  {
25  return fHit;
26  }
art::Ptr< rb::CellHit > fHit
cellhit in this channel
Definition: LocatedChan.h:28
bool OfflineChan::operator< ( const OfflineChan rhs) const
inherited

Definition at line 27 of file OfflineChan.cxx.

References geo::OfflineChan::fCell, and geo::OfflineChan::fPlane.

Referenced by geo::OfflineChan::operator==().

28  {
29  if(fPlane < rhs.fPlane) return true;
30  if(fPlane > rhs.fPlane) return false;
31  return fCell < rhs.fCell;
32  }
unsigned short fCell
Definition: OfflineChan.h:41
unsigned short fPlane
Definition: OfflineChan.h:41
bool geo::OfflineChan::operator== ( const OfflineChan rhs) const
inlineinherited

Definition at line 35 of file OfflineChan.h.

References geo::OfflineChan::fCell, geo::OfflineChan::fPlane, and geo::OfflineChan::operator<().

36  { return fPlane == rhs.fPlane && fCell == rhs.fCell; }
unsigned short fCell
Definition: OfflineChan.h:41
unsigned short fPlane
Definition: OfflineChan.h:41
unsigned short geo::OfflineChan::Plane ( ) const
inlineinherited
void trk::LocatedChan::SetCenter ( double  x,
double  y,
double  z 
)

Definition at line 29 of file LocatedChan.cxx.

References fcenter.

30  {
31  fcenter.SetXYZ(x,y,z);
32  }
TVector3 fcenter
cell center position
Definition: LocatedChan.h:29
z
Definition: test.py:28
void trk::LocatedChan::SetHalfWidths ( double  dx,
double  dy,
double  dz 
)

Definition at line 45 of file LocatedChan.cxx.

References fhalfwidths.

46  {
47  fhalfwidths.SetXYZ(dx,dy,dz);
48  }
double dy[NP][NC]
double dx[NP][NC]
double dz[NP][NC]
TVector3 fhalfwidths
half widths of cell
Definition: LocatedChan.h:30
void trk::LocatedChan::SetHit ( art::Ptr< rb::CellHit chit)

Definition at line 17 of file LocatedChan.cxx.

References fHit.

Referenced by trk::KalmanTrack::produce(), and trk::KalmanTrackMerge::produce().

18  {
19  fHit = chit;
20  }
art::Ptr< rb::CellHit > fHit
cellhit in this channel
Definition: LocatedChan.h:28
int OfflineChan::ToDBValidityChan ( ) const
inherited

Member Data Documentation

unsigned short geo::OfflineChan::fCell
protectedinherited
TVector3 trk::LocatedChan::fcenter
protected

cell center position

Definition at line 29 of file LocatedChan.h.

Referenced by GetCenter(), and SetCenter().

TVector3 trk::LocatedChan::fhalfwidths
protected

half widths of cell

Definition at line 30 of file LocatedChan.h.

Referenced by GetHalfWidths(), and SetHalfWidths().

art::Ptr<rb::CellHit> trk::LocatedChan::fHit
protected

cellhit in this channel

Definition at line 28 of file LocatedChan.h.

Referenced by GetHit(), and SetHit().

unsigned short geo::OfflineChan::fPlane
protectedinherited

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