93 G4int hcId( digiManager->GetHitsCollectionID(
97 hitsCollection( static_cast< const CexmcTrackPointsCollection * >(
98 digiManager->GetHitsCollection( hcId ) ) );
100 if ( hitsCollection )
102 for ( CexmcTrackPointsCollectionData::iterator
103 k( hitsCollection->GetMap()->begin() );
104 k != hitsCollection->GetMap()->end(); ++k )
106 monitorTP = *k->second;
111 hcId = digiManager->GetHitsCollectionID(
115 digiManager->GetHitsCollection( hcId ) );
117 if ( hitsCollection )
119 for ( CexmcTrackPointsCollectionData::iterator
120 k( hitsCollection->GetMap()->begin() );
121 k != hitsCollection->GetMap()->end(); ++k )
127 targetTPBeamParticle = *k->second;
132 targetTPOutputParticle = *k->second;
133 hasTriggered = targetTPOutputParticle.
IsValid();
138 targetTPNucleusParticle = *k->second;
141 if ( k->second->trackType ==
151 targetTPOutputParticleDecayProductParticle[ 0 ].
152 trackId > 0 ? 1 : 0 );
153 targetTPOutputParticleDecayProductParticle[ index ] =
161 hcId = digiManager->GetHitsCollectionID(
165 digiManager->GetHitsCollection( hcId ) );
167 if ( hitsCollection )
169 for ( CexmcTrackPointsCollectionData::iterator
170 k( hitsCollection->GetMap()->begin() );
171 k != hitsCollection->GetMap()->end(); ++k )
176 G4int index( k->first );
182 vetoCounterTPLeft = *k->second;
185 vetoCounterTPRight = *k->second;
193 hcId = digiManager->GetHitsCollectionID(
197 digiManager->GetHitsCollection( hcId ) );
199 if ( hitsCollection )
201 for ( CexmcTrackPointsCollectionData::iterator
202 k( hitsCollection->GetMap()->begin() );
203 k != hitsCollection->GetMap()->end(); ++k )
208 G4int index( k->first );
216 crystalWidth + crystalWidth / 2 );
219 crystalHeight + crystalHeight / 2 );
223 calorimeterTPLeft = *k->second;
230 calorimeterTPRight = *k->second;
G4ThreeVector positionLocal
const G4String CexmcDetectorTypeName[CexmcNumberOfDetectorTypes]
static G4DigiManager * GetDMpointer()
static CexmcSide GetSide(G4int index)
static G4int GetColumn(G4int index)
const G4String CexmcDetectorRoleName[CexmcNumberOfDetectorRoles]
static G4int GetRow(G4int index)
G4bool IsValid(void) const