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

Macros

#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.
 

Macro Definition Documentation

◆ TSegment0_INLINE_DEFINE_HERE

#define TSegment0_INLINE_DEFINE_HERE

Definition at line 165 of file TSegment0.h.

Typedef Documentation

◆ HepPoint3D

typedef HepGeom::Point3D<double> HepPoint3D

Definition at line 25 of file TSegment0.h.

◆ HepVector3D

typedef HepGeom::Vector3D<double> HepVector3D

Definition at line 29 of file TSegment0.h.

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