12#include "MucRecEvent/MucRecHitContainer.h"
42 m_GapHitCount[gapID] = 0;
59 count += m_GapHitCount[gapID];
70 if (m_GapHitCount.count(gapID))
return m_GapHitCount[gapID];
80 return m_GapHitCount[gapID];
86 if (m_pHit.count(
id))
return m_pHit[id];
120 if(
id == hit->
GetID()) {
137 AddHit(part, seg, gap, strip);
155 int hitCount = m_GapHitCount[gapID];
160 m_pMucRecHitCol->push_back(pHit);
164 cout <<
"MucRecHitContainer::AddHit-F1 failed to create new MucRecHit" << endl;
167 m_GapHitCount[gapID]++;
177 MucRecHitCol::iterator imuchit;
178 for(imuchit = p->begin();
181 int part = (*imuchit)->Part();
182 int seg = (*imuchit)->Seg();
183 int gap = (*imuchit)->Gap();
184 int strip= (*imuchit)->Strip();
187 int hitCount = m_GapHitCount[gapID];
190 m_pHit[id] = *imuchit;
192 cout <<
"MucRecHitContainer::AddHit-F1 failed to create new MucRecHit" << endl;
195 m_GapHitCount[gapID]++;
DOUBLE_PRECISION count[3]
ObjectVector< MucRecHit > MucRecHitCol
static int part(const Identifier &id)
static value_type getPartNum()
static Identifier channel_id(int barrel_ec, int segment, int layer, int channel)
For a single crystal.
static int gap(const Identifier &id)
static int seg(const Identifier &id)
static value_type getSegNum(int part)
static value_type getStripNum(int part, int seg, int gap)
static int strip(const Identifier &id)
static value_type getGapNum(int part)
void Clear()
Remove all hit objects from the container, and destroy them.
int GetHitCount()
How many hits are there in this event?
MucRecHit * GetHit(const MucRecHitID hitID)
Get a MucRecHit object by hit identifier.
void AddHit(const Identifier id)
void Init()
Points to the single instance of MucRecHitContainer.
MucRecHit * GetHitByIdentifier(const Identifier id)
void SetMucRecHitCol(MucRecHitCol *p)
int GetGapHitCount(const MucRecHitID gapID)
How many hits are there in this gap?
Identifier GetID() const
Get soft identifier of this hit.