Message: Loops in A01EventAction (hits in multiply placed volume?) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Loops in A01EventAction (hits in multiply placed volume?) 

Keywords: hits in multiply placed volume
Forum: Hits, Digitization and Pileup
Date: 04 Mar, 2005
From: Kazuyoshi Furutaka <Kazuyoshi Furutaka>

Hi all...

Would someone please explain why we need loops
which run "the number of multiple placement of
volumes"-times in A01EventAction of
examples/extended/analysis/A01 ?
(I'm afraid I don't understand concept of sensitive 
detectors and hit collections...)

In the example, there're 5 layers in the drift chamber 1,
which are physically placed using a loop.
Inside each layer there's a "virtual" wire plane, which
is placed once in the logical volume of the chamber and
is set as a sensitive detector.

So I thought that there's only one sensitive detector
for 5 layers; all hits in the virtual wire plane are 
in the corresponding hit collection, and the number of 
hits in the collection (for all the 5 layers) is equal
to 'n_hit = DHC1->entries()'.

Why do we need the outer loops in the following to
process hits in the drift chamber 1?:
  for(int i2=0;i2<5;i2++)
    for(int i1=0;i1<n_hit;i1++)
       (process each hit....)
It looks to me as counting of the same hits 5 times.

Thanks in advance.


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

1 None: Re: Loops in A01EventAction (hits in multiply placed volume?)   (Makoto Asai - 07 Mar, 2005)
(_ Feedback: Re: Loops in A01EventAction (hits in multiply placed volume?)   (Kazuyoshi Furutaka - 07 Mar, 2005)
 Add Message Add Message
to: "Loops in A01EventAction (hits in multiply placed volume?)"

 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 ]