BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcTrkRecon/MdcTrkRecon-00-03-45/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
42 const MdcMap<const MdcHit*, MdcSegUsage*>& usedHits, const MdcHitMap* map,double tbunch);
43 MdcSegPatterns* thePattList() {return &patternList;}
44
45private:
46 MdcSegPatterns patternList; // allowed hit-patterns to form segments
47 int tryPatterns(MdcHit *groupHits[8], unsigned groupWord, int nhit,
48 int lPrevHit, int npatt, int *allowedPatt, const MdcSuperLayer *slayer,
49 MdcSegList &segs, const MdcMap<const MdcHit*, MdcSegUsage*>& usedHits, const MdcHitMap*,
50 double bunchTime);
51
52 bool _addHits;
53 // Preempt assignment:
54 MdcSegFinder& operator= (const MdcSegFinder&);
56};
57#endif
58
59
60
61
62
63
64
MdcSegFinder(int useAllAmbig)
int createSegs(const MdcDetector *gm, MdcSegList &segs, const MdcMap< const MdcHit *, MdcSegUsage * > &usedHits, const MdcHitMap *map, double tbunch)