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
  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.

Thanks,

Simone

   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:
 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 ]