BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcHitGroup Class Reference

#include <MdcHitGroup.h>

Public Member Functions

 MdcHitGroup ()
 
 ~MdcHitGroup ()
 
const MdcGeoWireGetWire ()
 
vector< MdcDigi * > GetHit ()
 
bool HasHit ()
 
bool Used ()
 
int GetType1 ()
 
int GetType2 ()
 
vector< int > GetType3 ()
 
vector< int > GetType4 ()
 
vector< int > GetNeiborHits ()
 
int GetNoNeiborHits ()
 
void SetWire (const MdcGeoWire *aWire)
 
void AddHit (MdcDigi *aHit)
 
void AddType1 (int wireID)
 
void AddType2 (int wireID)
 
void AddType3 (int wireID)
 
void AddType4 (int wireID)
 
void SetUsedFlag ()
 

Detailed Description

Definition at line 14 of file MdcHitGroup.h.

Constructor & Destructor Documentation

◆ MdcHitGroup()

MdcHitGroup::MdcHitGroup ( )
inline

Definition at line 18 of file MdcHitGroup.h.

18 :fType1ID(-1),
19 fType2ID(-1),
20 useflag(1)
21 {
22 fType3ID.clear();
23 fType4ID.clear();
24 fAllNeiborID.clear();
25 fHitsOfWire.clear();
26 fWire=NULL;
27 };
#define NULL

◆ ~MdcHitGroup()

MdcHitGroup::~MdcHitGroup ( )
inline

Definition at line 30 of file MdcHitGroup.h.

30{};

Member Function Documentation

◆ AddHit()

void MdcHitGroup::AddHit ( MdcDigi * aHit)
inline

Definition at line 54 of file MdcHitGroup.h.

54{fHitsOfWire.push_back(aHit);}

◆ AddType1()

void MdcHitGroup::AddType1 ( int wireID)
inline

Definition at line 55 of file MdcHitGroup.h.

55 {
56 fType1ID=wireID;
57 fAllNeiborID.push_back(wireID);
58 }

◆ AddType2()

void MdcHitGroup::AddType2 ( int wireID)
inline

Definition at line 59 of file MdcHitGroup.h.

59 {
60 fType2ID=wireID;
61 fAllNeiborID.push_back(wireID);
62 }

◆ AddType3()

void MdcHitGroup::AddType3 ( int wireID)
inline

Definition at line 63 of file MdcHitGroup.h.

63 {
64 fType3ID.push_back(wireID);
65 fAllNeiborID.push_back(wireID);
66 }

◆ AddType4()

void MdcHitGroup::AddType4 ( int wireID)
inline

Definition at line 67 of file MdcHitGroup.h.

67 {
68 fType4ID.push_back(wireID);
69 fAllNeiborID.push_back(wireID);
70 }

◆ GetHit()

vector< MdcDigi * > MdcHitGroup::GetHit ( )
inline

Definition at line 34 of file MdcHitGroup.h.

34{return fHitsOfWire;}

◆ GetNeiborHits()

vector< int > MdcHitGroup::GetNeiborHits ( )
inline

Definition at line 47 of file MdcHitGroup.h.

47{return fAllNeiborID;}

◆ GetNoNeiborHits()

int MdcHitGroup::GetNoNeiborHits ( )
inline

Definition at line 48 of file MdcHitGroup.h.

48 {
49 return fType3ID.size()+fType4ID.size()+(fType1ID<0?0:1)+(fType2ID<0?0:1);
50 }

◆ GetType1()

int MdcHitGroup::GetType1 ( )
inline

Definition at line 43 of file MdcHitGroup.h.

43{return fType1ID;}

◆ GetType2()

int MdcHitGroup::GetType2 ( )
inline

Definition at line 44 of file MdcHitGroup.h.

44{return fType2ID;}

◆ GetType3()

vector< int > MdcHitGroup::GetType3 ( )
inline

Definition at line 45 of file MdcHitGroup.h.

45{return fType3ID;}

◆ GetType4()

vector< int > MdcHitGroup::GetType4 ( )
inline

Definition at line 46 of file MdcHitGroup.h.

46{return fType4ID;}

◆ GetWire()

const MdcGeoWire * MdcHitGroup::GetWire ( )
inline

Definition at line 33 of file MdcHitGroup.h.

33{return fWire;}

◆ HasHit()

bool MdcHitGroup::HasHit ( )
inline

Definition at line 35 of file MdcHitGroup.h.

35 {
36 if(fHitsOfWire.size()==0) {return false;}
37 else {return true;}
38 }

◆ SetUsedFlag()

void MdcHitGroup::SetUsedFlag ( )
inline

Definition at line 71 of file MdcHitGroup.h.

71{useflag=0;}

◆ SetWire()

void MdcHitGroup::SetWire ( const MdcGeoWire * aWire)
inline

Definition at line 53 of file MdcHitGroup.h.

53{fWire=aWire;}

◆ Used()

bool MdcHitGroup::Used ( )
inline

Definition at line 39 of file MdcHitGroup.h.

39 {
40 if(fHitsOfWire.size()==0||useflag==0) {return true;}
41 else {return false;}
42 }

The documentation for this class was generated from the following file: