BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcTrkRecon/include/MdcTrkRecon/MdcSegFinder.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: MdcSegFinder.h,v 1.4 2010/07/19 06:41:49 zhangy Exp $
4//
5// Description:
6// Find straight-line segments in the DCH and put them into MdcSegList
7//
8// Environment:
9// Software developed for the BaBar Detector at the SLAC B-Factory.
10//
11// Authors: Steve Schaffner
12//
13// Copyright (C) 1996 The Board of Trustees of
14//
15// History:
16// Migration for BESIII MDC
17// The Leland Stanford Junior University. All Rights Reserved.
18//------------------------------------------------------------------------
19
20#ifndef MDCSEGFINDER_H
21#define MDCSEGFINDER_H
22
23#include "MdcTrkRecon/MdcSegPatterns.h"
24
25class MdcSegList;
26class MdcSegUsage;
27template <class K, class V> class MdcMap;
28class MdcHit;
29class MdcDetector;
30class MdcLine;
31class MdcSuperLayer;
32class MdcSeg;
33class MdcHitMap;
34
35// Class interface //
36class MdcSegFinder {
37
38public:
39 MdcSegFinder( int useAllAmbig );
41 int createSegs( const MdcDetector* gm, MdcSegList& segs, // return nSeg
43 double tbunch );
44 MdcSegPatterns* thePattList() { return &patternList; }
45
46private:
47 MdcSegPatterns patternList; // allowed hit-patterns to form segments
48 int tryPatterns( MdcHit* groupHits[8], unsigned groupWord, int nhit, int lPrevHit, int npatt,
49 int* allowedPatt, const MdcSuperLayer* slayer, MdcSegList& segs,
50 const MdcMap<const MdcHit*, MdcSegUsage*>& usedHits, const MdcHitMap*,
51 double bunchTime );
52
53 bool _addHits;
54 // Preempt assignment:
55 MdcSegFinder& operator=( const MdcSegFinder& );
56 MdcSegFinder( const MdcSegFinder& );
57};
58#endif
MdcSegFinder(int useAllAmbig)
int createSegs(const MdcDetector *gm, MdcSegList &segs, const MdcMap< const MdcHit *, MdcSegUsage * > &usedHits, const MdcHitMap *map, double tbunch)