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;
CexmcTrackPointsDigitizer(const G4String &name)
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
const G4int CexmcInvalidTrackId(-1)
G4ThreeVector positionLocal
const G4String CexmcDetectorTypeName[CexmcNumberOfDetectorTypes]
static G4DigiManager * GetDMpointer()
const G4VHitsCollection * GetHitsCollection(G4int HCID, G4int eventID=0)
static CexmcSide GetSide(G4int index)
static G4int GetColumn(G4int index)
G4int GetHitsCollectionID(G4String HCname)
const G4String CexmcDetectorRoleName[CexmcNumberOfDetectorRoles]
static G4int GetRow(G4int index)
static G4RunManager * GetRunManager()
const CalorimeterGeometryData & GetCalorimeterGeometry(void) const
G4bool IsValid(void) const