Message: 4 SD Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None 4 SD 

Forum: Hits, Digitization and Pileup
Date: 24 Aug, 2015
From: Simone <Simone>

Dear all,

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
   // Attach detector to volume

  // Create a new  sensitive detector

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.




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

1 None: Re: 4 SD   (Tsukasa Aso - 24 Aug, 2015)
(_ Sad: Re: 4 SD   (Simone - 24 Aug, 2015)
(_ None: Re: 4 SD   (Tsukasa Aso - 24 Aug, 2015)
(_ None: Re: 4 SD   (Simone - 25 Aug, 2015)
(_ More: Re: 4 SD   (Simone - 25 Aug, 2015)
(_ News: Re: 4 SD: solved   (Simone - 30 Sep, 2015)
 Add Message Add Message
to: "4 SD"

 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 ]