46 #include <G4String.hh>
59 const CexmcSetup * setup( static_cast< const CexmcSetup * >(
65 void CexmcTrackPointsDigitizer::InitializeData(
void )
71 targetTPOutputParticleDecayProductParticle[ 0 ].
trackId =
73 targetTPOutputParticleDecayProductParticle[ 1 ].
trackId =
97 hitsCollection( static_cast< const CexmcTrackPointsCollection * >(
100 if ( hitsCollection )
102 for ( CexmcTrackPointsCollectionData::iterator
103 k( hitsCollection->GetMap()->begin() );
104 k != hitsCollection->GetMap()->end(); ++k )
106 monitorTP = *k->second;
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 ] =
167 if ( hitsCollection )
169 for ( CexmcTrackPointsCollectionData::iterator
170 k( hitsCollection->GetMap()->begin() );
171 k != hitsCollection->GetMap()->end(); ++k )
182 vetoCounterTPLeft = *k->second;
185 vetoCounterTPRight = *k->second;
199 if ( hitsCollection )
201 for ( CexmcTrackPointsCollectionData::iterator
202 k( hitsCollection->GetMap()->begin() );
203 k != hitsCollection->GetMap()->end(); ++k )
216 crystalWidth + crystalWidth / 2 );
219 crystalHeight + crystalHeight / 2 );
223 calorimeterTPLeft = *k->second;
230 calorimeterTPRight = *k->second;