62 HitHPGeID =
new G4int[500];
75 HitHPGeID =
new G4int[500];
86 mercuryDetector = det;
88 HitHPGeID =
new G4int[500];
120 else if (planeDetector) {nPixel = planeDetector->
GetNbOfPixels();}
121 else if (mercuryDetector) {nPixel = mercuryDetector->
GetNbOfPixels();}
123 for (
G4int j=0;j<nPixel;j++)
124 {HitHPGeID [j]= -1;};
150 if (edep==0.)
return false;
160 G4int PixelNumber = 0;
168 if ( HitHPGeID[PixelNumber]==-1)
172 HitHPGeID[PixelNumber] = HPGeCollection->
insert(HPGeHit) - 1;
174 G4cout <<
" New Hit on pixel: " << PixelNumber <<
G4endl;
179 (*HPGeCollection)[HitHPGeID[PixelNumber]]->AddEnergy(edep);
182 G4cout <<
" Energy added to Pixel: " << PixelNumber <<
G4endl;
193 static G4int HCID = -1;
G4String SensitiveDetectorName
G4int GetCollectionID(G4String colName)
G4VPhysicalVolume * GetVolume(G4int depth=0) const
const G4VTouchable * GetTouchable() const
G4bool ProcessHits(G4Step *, G4TouchableHistory *)
G4THitsCollection< XrayFluoSensorHit > XrayFluoSensorHitsCollection
G4StepPoint * GetPreStepPoint() const
G4GLOB_DLL std::ostream G4cout
void insert(G4String str)
G4double GetTotalEnergyDeposit() const
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
void EndOfEvent(G4HCofThisEvent *)
XrayFluoSD(G4String, XrayFluoDetectorConstruction *)
static G4SDManager * GetSDMpointer()
void AddEnergy(G4double de)
virtual G4int GetCopyNo() const =0
void Initialize(G4HCofThisEvent *)
G4CollectionNameVector collectionName