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

#include "TrkReco/TTrack.h"
#include "TrkReco/TSegment0.h"
#include "TrkReco/TMDCUtil.h"
#include "TrkReco/TMLink.h"
#include "TrkReco/TMDCWire.h"
#include "TrkReco/TMDCWireHit.h"
#include "TrkReco/Range.h"

Go to the source code of this file.

Functions

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


Function Documentation

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

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:07 2016 for BOSS_7.0.2 by  doxygen 1.4.7