48 #include "G4HCofThisEvent.hh" 63 G4String HCname=
"scintillatorCollection";
87 if(aStep->GetTrack()->GetDefinition()
97 stepl = aStep->GetStepLength();
99 if ((edep==0.)&&(stepl==0.))
return false;
105 newHit->
SetPos(aStep->GetPostStepPoint()->GetPosition());
106 newHit->
SetTime(aStep->GetPreStepPoint()->GetGlobalTime());
122 static G4int HCID = -1;
129 G4cout <<
" LXe collection: " << nHits <<
" hits" <<
G4endl;
void SetParticle(G4String name)
G4String SensitiveDetectorName
void EndOfEvent(G4HCofThisEvent *)
G4int GetCollectionID(G4String colName)
void Initialize(G4HCofThisEvent *)
G4THitsCollection< DMXScintHit > DMXScintHitsCollection
void SetPos(G4ThreeVector xyz)
virtual void PrintAllHits()
const G4String & GetParticleName() const
G4GLOB_DLL std::ostream G4cout
void insert(G4String str)
void SetParticleEnergy(G4double e1)
G4bool ProcessHits(G4Step *, G4TouchableHistory *)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
void SetTime(G4double t2)
static G4SDManager * GetSDMpointer()
G4CollectionNameVector collectionName
static G4OpticalPhoton * OpticalPhotonDefinition()
DMXScintHitsCollection * scintillatorCollection
void SetEdep(G4double de)
G4double GetPDGCharge() const