36 #include "G4HCofThisEvent.hh" 61 static G4int HCID = -1;
73 if(edep==0.)
return false;
76 newHit->
SetTrackID (aStep->GetTrack()->GetTrackID());
77 newHit->
SetChamberNb(aStep->GetPreStepPoint()->GetTouchableHandle()
80 newHit->
SetPos (aStep->GetPostStepPoint()->GetPosition());
95 G4cout <<
"\n-------->Hits Collection: in this event they are " << NbHits
96 <<
" hits in the tracker chambers: " <<
G4endl;
G4String SensitiveDetectorName
G4int GetCollectionID(G4String colName)
ExN02TrackerHitsCollection * trackerCollection
void Initialize(G4HCofThisEvent *)
G4GLOB_DLL std::ostream G4cout
void insert(G4String str)
G4bool ProcessHits(G4Step *, G4TouchableHistory *)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
void SetPos(G4ThreeVector xyz)
void EndOfEvent(G4HCofThisEvent *)
void SetTrackID(G4int track)
G4THitsCollection< ExN02TrackerHit > ExN02TrackerHitsCollection
static G4SDManager * GetSDMpointer()
void SetEdep(G4double de)
void SetChamberNb(G4int chamb)
G4CollectionNameVector collectionName