Message: Re: Creating an array of sensitive detectors Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Creating an array of sensitive detectors 

Forum: Hits, Digitization and Pileup
Re: None Creating an array of sensitive detectors (Ira Wolfson)
Date: 09 Jun, 2011
From: Tsukasa Aso <Tsukasa Aso>

Hi,

  We recommend following way,

  1) create a logical volume for your detector

  2) place the logical volume with "copyNo".
       Please look at novice example  N05/src/ExN05DetectorConstruction.cc.

     or you may use replica volume for your detector(f.e. detector array w/o gap.)
       Please look at novice example  N03/src/DetectorConstruction.cc.

     ** Please note that the logical volume object is only one. 
        The logical volume is placed with copyNo or replicaNo.

  3) create a sensitive detector and attach it to the logical volume.
      The sensitive detector is called every step of track in the logical volume.
      In your sensitive detector, you need to pick copyNo/replicaNo up to
     know the physical volume. 

        G4TouchableHistory* hist = (G4TouchableHistory*) 
             (aStep->GetPreStepPoint()->GetTouchable());

         G4int copyID = hist->GetCopyNumber()

         or 

         G4int copyID = hist->GetReplicaNumber();

Tsukasa Aso

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

1 None: Re: Creating an array of sensitive detectors   (michel maire - 10 Jun, 2011)
(_ Ok: Re: Creating an array of sensitive detectors   (Ira Wolfson - 10 Jun, 2011)
 Add Message Add Message
to: "Re: Creating an array of sensitive detectors"

 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 ]