BOSS 7.0.8
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
7#include <vector>
8#include "CLHEP/Matrix/Vector.h"
9
10using namespace Event;
11typedef std::vector<MdcDigi*> MdcDigiVec;
12
14 public:
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 //**********************************
38 // Modify
39 //**********************************
40 void addHit(HoughHit& a);//add hit into hitlist
41 int addMdcDigiList(MdcDigiVec mdcDigiVec );
42 int addTruthInfo(std::map<int, const HepVector > mcTkPars);
43 void setType(HoughHitType t){ _type=t; }
44 int outerHit();
45 int continousHit();
46 void remove(const HoughHit& hit);
47
48
49 void print();
50 void printAll();
51 void printAll(int);
52 private:
53 std::vector<HoughHit> _houghHitList;
54 HoughHitType _type;
55};
56#endif
HoughHitType
Definition: HoughGlobal.h:23
std::vector< MdcDigi * > MdcDigiVec
Definition: HoughHitList.h:11
std::vector< MdcDigi * > MdcDigiVec
TTree * t
Definition: binning.cxx:23
int addMdcDigiList(MdcDigiVec mdcDigiVec)
int continousHit()
const HoughHit & getHoughHit(int i) const
Definition: HoughHitList.h:32
void remove(const HoughHit &hit)
int getHitNumA(int) const
void setType(HoughHitType t)
Definition: HoughHitList.h:43
void addHit(HoughHit &a)
HoughHitType type() const
Definition: HoughHitList.h:34
int addTruthInfo(std::map< int, const HepVector > mcTkPars)
const std::vector< HoughHit > & getList() const
void clearHoughHitList()
HoughHit & getHoughHit(int i)
Definition: HoughHitList.h:33
int getHitNum(int) const
int nHit() const
Definition: HoughHitList.h:24
int getHitNumS(int) const
Definition: Event.h:21