Classes | Typedefs | Functions | Variables
trk Namespace Reference

Track finder for cosmic rays. More...

Classes

class  CosmicTrack
 
class  CosmicTrackAlg
 An algorithm to perform cosmic ray track fitting. More...
 
class  CosmicTrackAna
 
class  CosmicTrackSelection
 
class  CosmicTrackUtilities
 
class  KalmanGeoHelper
 A collection of geometry functions used by the KalmanTrack tracking algorithm. More...
 
class  KalmanTrack
 
class  KalmanTrackAna
 
class  KalmanTrackMerge
 
class  LocatedChan
 Representation of a detector channel with positional information. More...
 
class  RLFit
 
class  TrackAlg
 An algorithm to perform cosmic ray track fitting. More...
 
class  TrkAssn
 
class  WindowTrackingAlg
 An algorithm to perform cosmic ray track fitting. More...
 

Typedefs

typedef std::pair< TVector3, TVector3 > zBounds
 
typedef std::map< double, zBoundszBoundMap
 

Functions

bool sortTVector3ByZ (TVector3 const &a, TVector3 const &b)
 
bool sortTVector3ByY (TVector3 const &a, TVector3 const &b)
 
bool sortFLSHits (sim::FLSHit const &a, sim::FLSHit const &b)
 
bool CompareByPlane (const trk::LocatedChan &a, const trk::LocatedChan &b)
 
void SortByPlane (std::vector< trk::LocatedChan > &c)
 
bool CompareByCell (const trk::LocatedChan &a, const trk::LocatedChan &b)
 
void SortByCell (std::vector< trk::LocatedChan > &c)
 

Variables

static std::vector< double > planez
 
static std::vector< double > planehalfd
 
static std::vector< std::vector< std::array< double, 3 > > > cellxyz
 

Detailed Description

Track finder for cosmic rays.

Tracking algorithms.

Cosmic track selection code.

Author
brebe.nosp@m.l@fn.nosp@m.al.go.nosp@m.v, gsdav.nosp@m.ies@.nosp@m.iasta.nosp@m.te.e.nosp@m.du
Date
Author
Brian Rebel - brebe.nosp@m.l@fn.nosp@m.al.go.nosp@m.v
Date

Typedef Documentation

typedef std::map<double, zBounds> trk::zBoundMap

Definition at line 32 of file CosmicTrackUtilities.h.

typedef std::pair<TVector3, TVector3> trk::zBounds

Definition at line 31 of file CosmicTrackUtilities.h.

Function Documentation

bool trk::CompareByCell ( const trk::LocatedChan a,
const trk::LocatedChan b 
)

Definition at line 72 of file LocatedChan.cxx.

References geo::OfflineChan::Cell().

Referenced by SortByCell().

73  {
74  return a.Cell() < b.Cell();
75  }
unsigned short Cell() const
Definition: OfflineChan.h:32
bool trk::CompareByPlane ( const trk::LocatedChan a,
const trk::LocatedChan b 
)

Definition at line 61 of file LocatedChan.cxx.

References geo::OfflineChan::Plane().

Referenced by SortByPlane().

62  {
63  return a.Plane() < b.Plane();
64  }
unsigned short Plane() const
Definition: OfflineChan.h:31
void trk::SortByCell ( std::vector< trk::LocatedChan > &  c)

Definition at line 78 of file LocatedChan.cxx.

References CompareByCell().

Referenced by trk::KalmanTrack::FindTracks().

79  {
80  std::sort(c.begin(), c.end(), trk::CompareByCell);
81  }
bool CompareByCell(const trk::LocatedChan &a, const trk::LocatedChan &b)
Definition: LocatedChan.cxx:72
void trk::SortByPlane ( std::vector< trk::LocatedChan > &  c)

Definition at line 67 of file LocatedChan.cxx.

References CompareByPlane().

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

68  {
69  std::sort(c.begin(), c.end(), trk::CompareByPlane);
70  }
bool CompareByPlane(const trk::LocatedChan &a, const trk::LocatedChan &b)
Definition: LocatedChan.cxx:61
bool trk::sortFLSHits ( sim::FLSHit const &  a,
sim::FLSHit const &  b 
)

Definition at line 288 of file CosmicTrackAna_module.cc.

References sim::FLSHit::GetCellID(), and sim::FLSHit::GetPlaneID().

289  {
290  if(a.GetPlaneID() != b.GetPlaneID())
291  return a.GetPlaneID() < b.GetPlaneID();
292 
293  return a.GetCellID() < b.GetCellID();
294  }
const double a
const hit & b
Definition: hits.cxx:21
bool trk::sortTVector3ByY ( TVector3 const &  a,
TVector3 const &  b 
)

Definition at line 283 of file CosmicTrackAna_module.cc.

284  {
285  return a.Y() > b.Y();
286  }
const double a
const hit & b
Definition: hits.cxx:21
bool trk::sortTVector3ByZ ( TVector3 const &  a,
TVector3 const &  b 
)

Definition at line 278 of file CosmicTrackAna_module.cc.

279  {
280  return a.Z() < b.Z();
281  }
const double a
const hit & b
Definition: hits.cxx:21

Variable Documentation

std::vector< std::vector< std::array<double, 3> > > trk::cellxyz
static

Definition at line 19 of file KalmanGeoHelper.cxx.

std::vector<double> trk::planehalfd
static

Definition at line 17 of file KalmanGeoHelper.cxx.

std::vector<double> trk::planez
static

Definition at line 16 of file KalmanGeoHelper.cxx.