72 static int HCID1 = -1;
77 OpticalHitsCollection =
97 if (thisVolume !=
"PMT1" && thisVolume !=
"PMT2")
113 OpticalHitsCollection->
insert(OpticalHit);
121 G4cout <<
" POSITION (mm) : "
122 << HitPosition.
x()/
mm <<
" " << HitPosition.
y()/
mm <<
" " << HitPosition.
z()/
mm <<
G4endl;
135 static G4int HCID = -1;
G4THitsCollection< UltraOpticalHit > UltraOpticalHitsCollection
void SetTrackStatus(const G4TrackStatus aTrackStatus)
G4String SensitiveDetectorName
G4ParticleDefinition * GetDefinition() const
void Initialize(G4HCofThisEvent *)
G4int GetCollectionID(G4String colName)
virtual G4int GetCollectionID(G4int i)
G4StepPoint * GetPreStepPoint() const
G4double GetKineticEnergy() const
G4GLOB_DLL std::ostream G4cout
void insert(G4String str)
const G4String & GetName() const
const G4ThreeVector & GetPosition() const
G4bool ProcessHits(G4Step *astep, G4TouchableHistory *ROHist)
void SetPosition(G4ThreeVector xyz)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
void EndOfEvent(G4HCofThisEvent *)
static G4SDManager * GetSDMpointer()
void SetEnergy(G4double fEn)
G4VPhysicalVolume * GetVolume() const
G4CollectionNameVector collectionName
G4Track * GetTrack() const
static G4OpticalPhoton * Definition()