Public Member Functions | List of all members
bpfit::HitList3D Class Reference

Essential 3D information for tracking. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/BreakPointFitter/func/HitList3D.h"

Inheritance diagram for bpfit::HitList3D:

Public Member Functions

 HitList3D ()
 
 HitList3D (unsigned int n)
 
 HitList3D (const rb::Cluster &clust, bool wbyq=false)
 
void SetHit (unsigned int i, geo::View_t, double x, double y, double z, double t, double sig_x, double sig_y, double sig_z, double sig_t, double w=1.0)
 
void AddHit (geo::View_t, double x, double y, double z, double t, double sig_x, double sig_y, double sig_z, double sig_t, double w=1.0)
 
void CompleteOrtho (Interp3D interp=0)
 
void SortByZ ()
 
void SortByY ()
 

Detailed Description

Essential 3D information for tracking.

Definition at line 58 of file HitList3D.h.

Constructor & Destructor Documentation

HitList3D::HitList3D ( )

Definition at line 8 of file HitList3D.cxx.

8 { }
HitList3D::HitList3D ( unsigned int  n)

Definition at line 9 of file HitList3D.cxx.

9 : std::vector<Hit3D>(n) { }
bpfit::HitList3D::HitList3D ( const rb::Cluster clust,
bool  wbyq = false 
)

Member Function Documentation

void HitList3D::AddHit ( geo::View_t  v,
double  x,
double  y,
double  z,
double  t,
double  sig_x,
double  sig_y,
double  sig_z,
double  sig_t,
double  w = 1.0 
)

Definition at line 13 of file HitList3D.cxx.

References push_back().

23 {
24  this->push_back(Hit3D(v,x,y,z,t,sig_x,sig_y,sig_z,sig_t,w));
25 }
base_types push_back(int_type())
z
Definition: test.py:28
Float_t w
Definition: plot.C:20
void HitList3D::CompleteOrtho ( Interp3D  interp = 0)

CompleteOrtho extrapolates the coordinate in the orthogonal view corresponding to the same z value in the current view.

Parameters
interp- optional alternate interpolation function

Definition at line 145 of file HitList3D.cxx.

References gsDefaultInterp(), MECModelEnuComparisons::i, gen_flatrecord::size, and SortByZ().

Referenced by bpfit::BreakPoint::AverageXY(), and bpfit::BreakPoint::FillHitList().

146 {
147  if (interp==0) {
148  this->SortByZ();
149  interp = gsDefaultInterp;
150  }
151 
152  // ...for the sake of readability
153  HitList3D& hitlist = (*this);
154 
155  unsigned int i;
156  for (i=0; i<this->size(); ++i) {
157  (*interp)(hitlist[i], hitlist);
158  }
159 }
void gsDefaultInterp(Hit3D &h, HitList3D &hl)
Definition: HitList3D.cxx:61
Essential 3D information for tracking.
Definition: HitList3D.h:58
void HitList3D::SetHit ( unsigned int  i,
geo::View_t  v,
double  x,
double  y,
double  z,
double  t,
double  sig_x,
double  sig_y,
double  sig_z,
double  sig_t,
double  w = 1.0 
)

Definition at line 29 of file HitList3D.cxx.

References bpfit::Hit3D::fSigX, bpfit::Hit3D::fSigY, bpfit::Hit3D::fSigZ, bpfit::Hit3D::fT, bpfit::Hit3D::fView, bpfit::Hit3D::fW, bpfit::Hit3D::fX, bpfit::Hit3D::fY, bpfit::Hit3D::fZ, make_syst_table_plots::h, MECModelEnuComparisons::i, confusionMatrixTree::t, registry_explorer::v, w, submit_syst::x, submit_syst::y, and test::z.

Referenced by bpfit::BreakPoint::AverageXY(), and bpfit::BreakPoint::FillHitList().

40 {
41  Hit3D& h = (*this)[i];
42  h.fView = v;
43  h.fX = x;
44  h.fY = y;
45  h.fZ = z;
46  h.fT = t;
47  h.fSigX = sig_x;
48  h.fSigY = sig_y;
49  h.fSigZ = sig_z;
50  h.fW = w;
51 }
double fSigX
Error on x.
Definition: HitList3D.h:39
double fW
Weight of hit.
Definition: HitList3D.h:43
double fX
X coordinate of hit.
Definition: HitList3D.h:35
geo::View_t fView
View hit belongs in (x or y)
Definition: HitList3D.h:34
z
Definition: test.py:28
double fT
time coordinate of hit
Definition: HitList3D.h:38
double fSigY
Error on y.
Definition: HitList3D.h:40
double fY
Y coordinate of hit.
Definition: HitList3D.h:36
Float_t w
Definition: plot.C:20
double fZ
Z coordinate of hit.
Definition: HitList3D.h:37
double fSigZ
Error on z.
Definition: HitList3D.h:41
void HitList3D::SortByY ( )

Sort the hits from top to bottom

Definition at line 184 of file HitList3D.cxx.

References febshutoff_auto::end, and gsSortHit3DByY().

185 {
186  sort(this->begin(), this->end(), gsSortHit3DByY);
187 }
static bool gsSortHit3DByY(const Hit3D &h1, const Hit3D &h2)
Definition: HitList3D.cxx:170
void HitList3D::SortByZ ( )

Sort the hits from south to north

Definition at line 177 of file HitList3D.cxx.

References febshutoff_auto::end, and gsSortHit3DByZ().

Referenced by bpfit::BreakPoint::AverageXY(), CompleteOrtho(), and bpfit::BreakPoint::FillHitList().

178 {
179  sort(this->begin(), this->end(), gsSortHit3DByZ);
180 }
static bool gsSortHit3DByZ(const Hit3D &h1, const Hit3D &h2)
Definition: HitList3D.cxx:163

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