BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
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

◆ Links()

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.

810 {
812
813 const AList<TMLink> & links = s.links();
814 const AList<TMLink> & trackLinks = t.links();
815 unsigned n = links.length();
816 for (unsigned i = 0; i < n; i++) {
817 if (trackLinks.hasMember(links[i]))
818 a.append(links[i]);
819 }
820
821 return a;
822}
const Int_t n
XmlRpcServer s
Definition: HelloServer.cpp:11
int t()
Definition: t.c:1

◆ NCoreLinks()

unsigned NCoreLinks ( const CAList< TSegment0 > &  list)

returns # of core links in segments.

Definition at line 794 of file TSegment0.cxx.

794 {
795 unsigned n = 0;
796 unsigned nList = list.length();
797 for (unsigned i = 0; i < nList; i++) {
798 const AList<TMLink> & links = list[i]->links();
799 for (unsigned j = 0; j < links.length(); j++) {
800 unsigned state = links[j]->hit()->state();
801 if ((! (state & WireHitPatternLeft)) &&
802 (! (state & WireHitPatternRight)))
803 ++n;
804 }
805 }
806 return n;
807}
#define WireHitPatternLeft
Definition: TMDCWireHit.h:33
#define WireHitPatternRight
Definition: TMDCWireHit.h:34