BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TSegment0.h File Reference
#include "CLHEP/Geometry/Point3D.h"
#include "CLHEP/Geometry/Vector3D.h"
#include "TrkReco/TMDCUtil.h"
#include "TrkReco/TMLink.h"
#include "TrkReco/TTrackBase.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

Typedef Documentation

◆ HepPoint3D

typedef HepGeom::Point3D<double> HepPoint3D

◆ HepVector3D

typedef HepGeom::Vector3D<double> HepVector3D

Function Documentation

◆ Links()

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

returns AList of TMLink used for a track.

Definition at line 844 of file TSegment0.cxx.

844 {
846
847 const AList<TMLink>& links = s.links();
848 const AList<TMLink>& trackLinks = t.links();
849 unsigned n = links.length();
850 for ( unsigned i = 0; i < n; i++ )
851 {
852 if ( trackLinks.hasMember( links[i] ) ) a.append( links[i] );
853 }
854
855 return a;
856}
const Int_t n
XmlRpcServer s
int t()
Definition t.c:1

◆ NCoreLinks()

unsigned NCoreLinks ( const CAList< TSegment0 > & list)

returns # of core links in segments.

Definition at line 829 of file TSegment0.cxx.

829 {
830 unsigned n = 0;
831 unsigned nList = list.length();
832 for ( unsigned i = 0; i < nList; i++ )
833 {
834 const AList<TMLink>& links = list[i]->links();
835 for ( unsigned j = 0; j < links.length(); j++ )
836 {
837 unsigned state = links[j]->hit()->state();
838 if ( ( !( state & WireHitPatternLeft ) ) && ( !( state & WireHitPatternRight ) ) ) ++n;
839 }
840 }
841 return n;
842}