Message: <HitsCollection> is ambiguous Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question <HitsCollection> is ambiguous 

Forum: Hits, Digitization and Pileup
Date: 09 Mar, 2010
From: Simone <Simone>

Hello to everyone, I'm Simone, and this is my first post in this forum.

I want to make it clear first that I'm a total beginner in using GEANT4 and in developing C++ software in general, having had my first experience in both of them only 1-2 months ago.

After this little introduction I would like to go straight to the core of my problem: I'm trying to define two sensitive detectors inside my geant application. I had no problem defining one, and in that case the program runs correctly. When I add the other one however I get the following error (the code compiles correctly anyway): INFORMATION: Run No 0 starts.

<HitsCollectionTES> is ambiguous.
<HitsCollectionACD> is ambiguous.
<HitsCollectionTES> is ambiguous.
<HitsCollectionACD> is ambiguous.
<HitsCollectionTES> is ambiguous.
<HitsCollectionACD> is ambiguous.
HepRepFile writing to G4Data1.heprep INFORMATION: Run No 0 ends (Number of events = 1). Graphics systems deleted. Visualization Manager deleting...

now, HitsCollectionTES and HitsCollectionACD are the hitcollections object I defined in the sensitivedetector.cc, and use to retreive info on the deposited energy in the usereventaction.cc; I've checked this file many times and I can't find this source ambiguity, and I've been stuck in this situation for a almost a week before surrending and asking here for help. I really appreciate any kind of help

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2010/03/09/03.11-72310-SensitiveDetector.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2010/03/09/03.11-4198-UserEventAction.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2010/03/09/03.11-18453-DetectorConstruction.cc

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

1 Question: Re: <HitsCollection> is ambiguous   (Bruno Morgado - 02 Feb, 2011)
2 None: Re: <HitsCollection> is ambiguous   (Chaw - 15 Mar, 2011)
 Add Message Add Message
to: "<HitsCollection> is ambiguous"

 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 ]