83{
84 Initialize();
85
87 G4DigiManager* DigiMan = G4DigiManager::GetDMpointer();
88
89
90 G4int THCID;
91 THCID = DigiMan->GetHitsCollectionID("BesMucHitsCollection");
92
93
96
97 if(THC) {
98 G4int trackIndex, part, seg, gap, strip;
100
101 G4int n_hit = THC->entries();
102 for(G4int i = 0; i < n_hit; i++) {
103 aDigit->
SetHit((*THC)[i]);
109
110
112 {
113 m_part = part;
114 m_seg = seg;
115 m_gap = gap;
116 m_strip = strip;
117
118 m_tupleMuc->write();
119 }
120
121 (*THC)[i]->SetPart(part);
122 (*THC)[i]->SetSeg(seg);
123 (*THC)[i]->SetGap(gap);
124 (*THC)[i]->SetStrip(strip);
125 if(m_stripID[part][seg][gap][strip] == 0) {
126 NewDigi(trackIndex, part, seg, gap, strip);
127 }
128 else {
129 OldDigi();
130 }
131 }
132
133 StoreDigiCollection(m_besMucDigisCollection);
134 delete aDigit;
135 }
136}
G4TDigiCollection< BesMucDigi > BesMucDigisCollection
G4THitsCollection< BesMucHit > BesMucHitsCollection
G4int GetNearestStripNo()
void SetHit(BesMucHit *hit)