44 #include <G4HCofThisEvent.hh>
92 G4ThreeVector direction( preStepPoint->GetMomentumDirection() );
95 GetHistory()->GetTopTransform() );
98 track->GetUserInformation() ) );
99 trackType = trackInfo->GetTrackType();
103 transform.TransformAxis( direction ),
105 preStepPoint->GetMomentum().mag(),
106 particle, track->GetTrackID(),
149 if ( nmbOfEntries == 0 )
154 for ( CexmcTrackPointsCollectionData::iterator
159 G4cout <<
" , position: " <<
161 G4cout <<
" , direction: " <<
162 itr->second->directionLocal <<
G4endl;
163 G4cout <<
" , momentum: " <<
165 G4cout <<
" , particle: " <<
166 itr->second->particle->GetParticleName() <<
G4endl;
void EndOfEvent(G4HCofThisEvent *hcOfThisEvent)
CexmcTrackPointsCollection * eventMap
G4int GetCopyNumber(void) const
G4int GetTrackId(G4Step *step)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4VUserTrackInformation * GetUserInformation() const
G4StepPoint * GetPreStepPoint() const
CexmcTrackPoints(const G4String &name)
G4GLOB_DLL std::ostream G4cout
G4THitsMap< CexmcTrackPointInfo > CexmcTrackPointsCollection
G4int GetCollectionID(G4int)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
void Initialize(G4HCofThisEvent *hcOfThisEvent)
G4int GetIndex(G4Step *step)
std::map< G4int, T * > * GetMap() const
void PrintHeader(G4int nmbOfEntries) const
G4int GetVerboseLevel() const
CexmcTrackType GetTrackType(void) const
G4MultiFunctionalDetector * detector
G4Track * GetTrack() const
G4int set(const G4int &key, T *&aHit) const
G4bool ProcessHits(G4Step *step, G4TouchableHistory *tHistory)