BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/MdcTrkRecon/MdcTrkRecon/MdcSegData.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: MdcSegData.h,v 1.3 2011/09/26 01:06:37 zhangy Exp $
4//
5// Description:
6// Hold (pointer to) list of Mdc hits, and some auxiliary information.
7// It mostly exists for historical reasons.
8//
9// Environment:
10// Software developed for the BaBar Detector at the SLAC B-Factory.
11//
12// Author(s): Steve Schaffner
13//------------------------------------------------------------------------
14#ifndef MDCSEGDATA_H
15#define MDCSEGDATA_H
16
17//#include "MdcTrkRecon/MdcHitDict.h"
18#include "MdcTrkRecon/MdcMap.h"
19#include "MdcData/MdcHit.h"
20
21class MdcDetector;
22class MdcHitMap;
23class MdcSegUsage;
24
25
27{
28public:
30
31 MdcSegData(bool skipUsedHit);
32 virtual ~MdcSegData();
33
34 int nevent() const {return eventNumber;}
35 int nhits() const;
36 int runNumber() const {return _runNumber;}
37 const MdcHit* hit(int hitno) const;
38 const MdcHitDict& segUsage() const {return _segUsageDict;}
39 const MdcHitMap* hitMap() const {return _hitMap;}
40 void loadevent(MdcHitCol *col, MdcHitMap *hmap, double tbunch);
41 double bunchTime(void) const {return _bunchTime;}
42 bool skippingUsed() const {return _skipUsed;}
43 void poisonHits(const MdcDetector *gm, int debug = 0);
44
45private:
46 bool _skipUsed;
47 int eventNumber;
48 int _runNumber;
49 MdcHitCol* _theHits;
50 MdcHitDict _segUsageDict;
51 MdcSegUsage* _segUsage;
52 MdcHitMap* _hitMap;
53 double _bunchTime;
54
55 // Preempt
56 MdcSegData& operator= (const MdcSegData&);
57 MdcSegData(const MdcSegData &);
58};
59#endif
ObjectVector< MdcHit > MdcHitCol
void poisonHits(const MdcDetector *gm, int debug=0)
Definition: MdcSegData.cxx:81
int nhits() const
Definition: MdcSegData.cxx:36
void loadevent(MdcHitCol *col, MdcHitMap *hmap, double tbunch)
Definition: MdcSegData.cxx:43
MdcMap< const MdcHit *, MdcSegUsage * > MdcHitDict
virtual ~MdcSegData()
Definition: MdcSegData.cxx:29
const MdcHit * hit(int hitno) const
Definition: MdcSegData.cxx:73