/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/TrkReco/TrkReco-00-08-59-patch4-slc6tag/TrkReco/TSegment0.h File Reference

#include "CLHEP/Geometry/Point3D.h"
#include "CLHEP/Geometry/Vector3D.h"
#include "TrkReco/TTrackBase.h"
#include "TrkReco/TMDCUtil.h"
#include "TrkReco/TMLink.h"

Go to the source code of this file.

Classes

class  TSegment0
 A class to relate TMDCWireHit and TTrack objects. More...

Defines

#define TSegment0_INLINE_DEFINE_HERE

Typedefs

typedef HepGeom::Point3D<
double > 
HepPoint3D
typedef HepGeom::Vector3D<
double > 
HepVector3D

Functions

unsigned NCoreLinks (const CAList< TSegment0 > &list)
 returns # of core links in segments.
AList< TMLinkLinks (const TSegment0 &, const TTrack &)
 returns AList of TMLink used for a track.


Define Documentation

#define TSegment0_INLINE_DEFINE_HERE

Definition at line 165 of file TSegment0.h.


Typedef Documentation

typedef HepGeom::Point3D<double> HepPoint3D

Definition at line 25 of file TSegment0.h.

typedef HepGeom::Vector3D<double> HepVector3D

Definition at line 29 of file TSegment0.h.


Function Documentation

AList<TMLink> Links ( const TSegment0 ,
const TTrack  
)

returns AList of TMLink used for a track.

Definition at line 810 of file TSegment0.cxx.

References genRecEmupikp::i, s, and t().

00810                                              {
00811     AList<TMLink> a;
00812 
00813     const AList<TMLink> & links = s.links();
00814     const AList<TMLink> & trackLinks = t.links();
00815     unsigned n = links.length();
00816     for (unsigned i = 0; i < n; i++) {
00817         if (trackLinks.hasMember(links[i]))
00818             a.append(links[i]);
00819     }
00820 
00821     return a;
00822 }

unsigned NCoreLinks ( const CAList< TSegment0 > &  list  ) 

returns # of core links in segments.

Definition at line 794 of file TSegment0.cxx.

References genRecEmupikp::i, ganga-rec::j, WireHitPatternLeft, and WireHitPatternRight.

00794                                            {
00795     unsigned n = 0;
00796     unsigned nList = list.length();
00797     for (unsigned i = 0; i < nList; i++) {
00798         const AList<TMLink> & links = list[i]->links();
00799         for (unsigned j = 0; j < links.length(); j++) {
00800             unsigned state = links[j]->hit()->state();
00801             if ((! (state & WireHitPatternLeft)) &&
00802                 (! (state & WireHitPatternRight)))
00803                 ++n;
00804         }
00805     }
00806     return n;
00807 }


Generated on Tue Nov 29 23:17:08 2016 for BOSS_7.0.2 by  doxygen 1.4.7