ALLPix / allpix

AllPix is a powerful tool for various simulation goals with pixel detectors, see the Twiki page for more details
https://twiki.cern.ch/twiki/bin/view/Main/AllPix
12 stars 29 forks source link

digitization problem in AllPix_v1.1alpha #13

Open emx77 opened 8 years ago

emx77 commented 8 years ago

Dear all,

I am testing the version after the geometry changes, with the timepix digitization for some reason I get no or only a small number of digitized hits with small charge.

The energy depositions seem correct to me. The sensor volume use to be centred around Z=0 now its shifted so may be this is a problem for the digitization. Can some one check this?

Cheers, Erik.

emx77 commented 8 years ago

I did some more debugging and it seems the problem is related to the calculation of the relative position of the energy deposition w.r.t. the pixel.

If I replace the following line in AllPixTrackerSD.cc:

// correctedPos = correctedPos - centerOfPixel - m_relativePosOfSD; correctedPos = correctedPos - centerOfPixel;

I get sensible digitization results again.

it would be useful if someone could cross check this piece of code to see it really does what is should do.

Kind regards, Erik.