BOSS 8.0.0
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 ), fType2ID( -1 ), useflag( 1 ) {
19 fType3ID.clear();
20 fType4ID.clear();
21 fAllNeiborID.clear();
22 fHitsOfWire.clear();
23 fWire = NULL;
24 };

◆ ~MdcHitGroup()

MdcHitGroup::~MdcHitGroup ( )
inline

Definition at line 27 of file MdcHitGroup.h.

27{};

Member Function Documentation

◆ AddHit()

void MdcHitGroup::AddHit ( MdcDigi * aHit)
inline

Definition at line 52 of file MdcHitGroup.h.

52{ fHitsOfWire.push_back( aHit ); }

◆ AddType1()

void MdcHitGroup::AddType1 ( int wireID)
inline

Definition at line 53 of file MdcHitGroup.h.

53 {
54 fType1ID = wireID;
55 fAllNeiborID.push_back( wireID );
56 }

◆ AddType2()

void MdcHitGroup::AddType2 ( int wireID)
inline

Definition at line 57 of file MdcHitGroup.h.

57 {
58 fType2ID = wireID;
59 fAllNeiborID.push_back( wireID );
60 }

◆ AddType3()

void MdcHitGroup::AddType3 ( int wireID)
inline

Definition at line 61 of file MdcHitGroup.h.

61 {
62 fType3ID.push_back( wireID );
63 fAllNeiborID.push_back( wireID );
64 }

◆ AddType4()

void MdcHitGroup::AddType4 ( int wireID)
inline

Definition at line 65 of file MdcHitGroup.h.

65 {
66 fType4ID.push_back( wireID );
67 fAllNeiborID.push_back( wireID );
68 }

◆ GetHit()

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

Definition at line 31 of file MdcHitGroup.h.

31{ return fHitsOfWire; }

◆ GetNeiborHits()

vector< int > MdcHitGroup::GetNeiborHits ( )
inline

Definition at line 44 of file MdcHitGroup.h.

44{ return fAllNeiborID; }

◆ GetNoNeiborHits()

int MdcHitGroup::GetNoNeiborHits ( )
inline

Definition at line 45 of file MdcHitGroup.h.

45 {
46 return fType3ID.size() + fType4ID.size() + ( fType1ID < 0 ? 0 : 1 ) +
47 ( fType2ID < 0 ? 0 : 1 );
48 }

◆ GetType1()

int MdcHitGroup::GetType1 ( )
inline

Definition at line 40 of file MdcHitGroup.h.

40{ return fType1ID; }

◆ GetType2()

int MdcHitGroup::GetType2 ( )
inline

Definition at line 41 of file MdcHitGroup.h.

41{ return fType2ID; }

◆ GetType3()

vector< int > MdcHitGroup::GetType3 ( )
inline

Definition at line 42 of file MdcHitGroup.h.

42{ return fType3ID; }

◆ GetType4()

vector< int > MdcHitGroup::GetType4 ( )
inline

Definition at line 43 of file MdcHitGroup.h.

43{ return fType4ID; }

◆ GetWire()

const MdcGeoWire * MdcHitGroup::GetWire ( )
inline

Definition at line 30 of file MdcHitGroup.h.

30{ return fWire; }

◆ HasHit()

bool MdcHitGroup::HasHit ( )
inline

Definition at line 32 of file MdcHitGroup.h.

32 {
33 if ( fHitsOfWire.size() == 0 ) { return false; }
34 else { return true; }
35 }

◆ SetUsedFlag()

void MdcHitGroup::SetUsedFlag ( )
inline

Definition at line 69 of file MdcHitGroup.h.

69{ useflag = 0; }

◆ SetWire()

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

Definition at line 51 of file MdcHitGroup.h.

51{ fWire = aWire; }

◆ Used()

bool MdcHitGroup::Used ( )
inline

Definition at line 36 of file MdcHitGroup.h.

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

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