Message: GetCollectionID does not find /detector/collection Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None GetCollectionID does not find /detector/collection 

Keywords: GetCollectionID, AddNewDetector, collectionName
Forum: Hits, Digitization and Pileup
Date: 11 Dec, 2003
From: Peter Niessen <niessen@ifh.de>

Dear GEANT4 gurus,

in my application I created a photon detector and want to read hits in
it. In my

class PhtonDetectorSD : public G4VSensitiveDetector {
PhotonDetectorSD {collectionName.insert ("phColl");}
....

and in my
class Detector : public G4VUserDetectorConstruction {
...
G4SDManager *SDman = G4SDManager::GetSDMpointer ();
G4String photon_sensor_SD_name = "/photo";
PhotonDetectorSD *photo_SD = new PhotonDetectorSD (photon_sensor_SD_name);
SDman->AddNewDetector (photo_SD);
PhotonDetector_log->SetSensitiveDetector (photo_SD);
...

However, in the EventAction class, 

SDman->GetCollectionID ("/photo/phColl")  does not work but only
SDman->GetCollectionID ("phColl") gives the right collection id.

Any clues?

Thanks, Peter.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "GetCollectionID does not find /detector/collection"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]