Message: Re: Problem with sensitivity of mother to doughter volumes Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Problem with sensitivity of mother to doughter volumes  

Keywords: Doughter volume is sensitive, but only for last mother volume layer. Problem with pointers?
Forum: Hits, Digitization and Pileup
Re: Question Problem with sensitivity of mother to doughter volumes (Petr Mikes)
Re: None Re: Problem with sensitivity of mother to doughter volumes (Makoto Asai)
Date: 28 Nov, 2005
From: Petr Mikes <mikes@fzu.cz>

Dear Makoto, thank you for your reply. You were right with our last argument i. But we still have the same problem. If we use only mother volume LayerAll, everything is ok, but when we add doughter volume layer and set it sensitive, so sensitive is only one layer. So it looks, that this copy number is constant for all copies. Is there some posibility to solve this problem?

our code ....

//-------------------------------------------------------

G4double posLayer;

solidLayerAll = new G4Box("Layer_All", CalorSizeXY/2,CalorSizeXY/2, LayerThicknessAll/2);
logicLayerAll = new G4LogicalVolume(solidLayerAll, defaultMaterial,"Layer_All");
int i;
for (i = 0; i<NbOfLayers1; i++)
{
posLayer = - i*LayerThicknessAll + CalorThickness/2 - LayerThicknessAll/2;
physiLayerAll = new G4PVPlacement(0,G4ThreeVector(0,0,posLayer),
	 			 logicLayerAll,
				 "Layer_All",
				 logicCalor,
				 false,
				 i);
}

solidLayer = new G4Box("Layer", CalorSizeXY/2,CalorSizeXY/2, LayerThicknessAll/2);
logicLayer = new G4LogicalVolume(solidLayer, SiMaterial,"Layer");
physiLayer = new G4PVPlacement(0,G4ThreeVector(0,0,0),
	 			 logicLayer,
				 "Layer",
				 logicLayerAll,
				 false,
				 0);

//------------sensitive detector---------------
  G4SDManager* SDman = G4SDManager::GetSDMpointer();
  logicLayer->SetSensitiveDetector(EMCalorimetr);  
  SDman->AddNewDetector(EMCalorimetr);

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

 Add Message Add Message
to: "Re: Problem with sensitivity of mother to doughter volumes "

 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 ]