Message: How to extract the hit information and build readout geometry Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question How to extract the hit information and build readout geometry 

Forum: Geometry
Date: 21 Apr, 2009
From: Pradip Datta <Pradip Datta>

Hi all,

I am new in geant4. I am modifying the ExN02 for my purpose. I have already built my geometry (which is quite complex), I can visualize the events and the process. But I need something more for which I am not getting any clue. It will be immense help if somebody help me to sort my problems.

I have two problems:

1. I have placed 4 identical Boolean solid (Detector) in world space using a loop and thus every detector has its own copy no. My question is that how to retrieve the detector number (that is "i") which has got the hit? and what is the total energy deposition by all the physical process in that detector (not interested in the detailed processes but in total energy)?

The section of the program shown below

for(G4int i=0;i<4;i++)
  {
  .........
  .........
  unionMoved_phys = new G4PVPlacement(zRot,
            G4ThreeVector(unionMovedPos_x,unionMovedPos_y,unionMovedPos_z),
            logicCylinder_front_back_01,"Cylinder_Crystal",logicWorld,false, i);
  }
  //------------------------------------------------ 
  // Sensitive detectors
  //------------------------------------------------ 

  G4SDManager* SDman = G4SDManager::GetSDMpointer();

  G4String GeCrystalSDname = "ExN02/GeCrystalSD";
  ExN02TrackerSD* aTrackerSD = new ExN02TrackerSD( GeCrystalSDname );
  SDman->AddNewDetector( aTrackerSD );
  logicCylinder_front_back_01->SetSensitiveDetector( aTrackerSD );
________________________________________________________________________________

2. Can any body give me a simple example that how can I define a readout geometry? Actually I have constructed the detector using many small components to reproduce the shape. However, in reality readout is taken only from two segment of that detector. For simplicity, the detector can be considered as a box (say of size 4 x 4 x 4). I want make readout geometry such that I can differentiate between the hits in z/2 plane. The hit position may be in world coordinate but in output I need the segment no. detector no and the total energy deposition (not by a single process but sum of all process)

I am not getting any clue. I have gone through the Geant4 mannual but I am not sure what to do (may be it is due to the fact that I am not conversant with C++). I need your support to make any further progress.

Regards,

Pdatta

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

1 None: Re: How to extract the hit information and build readout geometry   (michel maire - 21 Apr, 2009)
(_ Feedback: Re: How to extract the hit information and build readout geometry   (Pradip Datta - 23 Apr, 2009)
 Add Message Add Message
to: "How to extract the hit information and build readout geometry"

 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 ]