BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
HoughHitList.h
Go to the documentation of this file.
1#ifndef HOUGHHITLIST_H
2#define HOUGHHITLIST_H
3
4#include "CLHEP/Matrix/Vector.h"
5#include "HoughGlobal.h"
6#include "HoughHit.h"
7#include "MdcRawEvent/MdcDigi.h"
8#include <vector>
9
10using namespace Event;
11typedef std::vector<MdcDigi*> MdcDigiVec;
12
14public:
15 // constructors
17 HoughHitList( MdcDigiVec mdcDigiVec );
19 void clearHoughHitList();
20
21 //**********************************
22 // Accessor
23 //**********************************
24 int nHit() const { return _houghHitList.size(); }
25 int getHitNum( int ) const;
26 int getHitNumA( int ) const;
27 int getHitNumS( int ) const;
28 // int nMdcHit() const;
29 // int nCgemHit() const;
30 const std::vector<HoughHit>& getList() const;
31 std::vector<HoughHit>& getList();
32 const HoughHit& getHoughHit( int i ) const { return _houghHitList[i]; }
33 HoughHit& getHoughHit( int i ) { return _houghHitList[i]; }
34 HoughHitType type() const { return _type; }
35
36 //**********************************
37 // Modify
38 //**********************************
39 void addHit( HoughHit& a ); // add hit into hitlist
40 int addMdcDigiList( MdcDigiVec mdcDigiVec );
41 int addTruthInfo( std::map<int, const HepVector> mcTkPars );
42 void setType( HoughHitType t ) { _type = t; }
43 int outerHit();
44 void continousHit();
45 void remove( const HoughHit& hit );
46
47 void print();
48 void printAll();
49 void printAll( int );
50
51private:
52 std::vector<HoughHit> _houghHitList;
53 HoughHitType _type;
54};
55#endif
HoughHitType
Definition HoughGlobal.h:18
std::vector< MdcDigi * > MdcDigiVec
int addMdcDigiList(MdcDigiVec mdcDigiVec)
const HoughHit & getHoughHit(int i) const
void remove(const HoughHit &hit)
int getHitNumA(int) const
void setType(HoughHitType t)
void addHit(HoughHit &a)
HoughHitType type() const
void continousHit()
int addTruthInfo(std::map< int, const HepVector > mcTkPars)
const std::vector< HoughHit > & getList() const
void clearHoughHitList()
HoughHit & getHoughHit(int i)
int getHitNum(int) const
int nHit() const
int getHitNumS(int) const
int t()
Definition t.c:1