|Message: 4 SD||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I have am experiencing a weird behavior of my simulation. I have 4 sensitive detectors, created by copying and pasting the same code in different sections and substituting their names in the code, and of these 4 only 2 are printing out output.
From now on to keep the discussion simple I will refer only to two of them, "ACD" (the working one) and "BSC" (the not printing one).
The detectors are very close to each other, so that if a particle crosses one it must cross the others too.
Here is the piece of code I use to register both:
// Create a new sensitive detector G4VSensitiveDetector* ACDarraySD = new ACDSD("ACDSD"); // Register detector with manager SDman->AddNewDetector(ACDarraySD); // Attach detector to volume ACDpxl_log->SetSensitiveDetector(ACDarraySD);
// Create a new sensitive detector BSCSD* aBSCSD = new BSCSD("/BSCSD"); SDman->AddNewDetector(aBSCSD); BSC_log->SetSensitiveDetector(aBSCSD);
and attached you will find all the files related to both. I spent days comparing them to see if I forgot something or if there was some error, but I am completely stuck with no clue of what is going on.
From what I have seen the problem seems to be that the entrie in BSCCollection are always 0, but I have no idea of what could be the reason.
Looking in the forum I found several posts related to similar problems, but none of them was of any help. I hope that someone more experienced than me can help me figure out this puzzle, I am at disposal for any missing information.
Attachment: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/08/24/04.21-14280-EventAction.cc http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/08/24/04.21-65635-ACDSD.cc http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/08/24/04.21-19238-BSCSD.cc http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/08/24/04.21-16281-ACDHit.cc http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/08/24/04.21-40392-BSCHit.cc http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/08/24/04.22-35794-ACDHit.hh http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/08/24/04.22-59191-ACDHitsCollection.hh http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/08/24/04.22-22024-ACDSD.hh http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/08/24/04.22-4888-BSCHit.hh http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/08/24/04.22-40529-BSCHitsCollection.hh http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/08/24/04.22-53925-BSCSD.hh http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2015/08/24/04.22-84218-EventAction.hh
|Inline Depth:||Outline Depth:||Add message:|