Fixed bugs in digitizer

bugs have been fixed. The code has been tested with 10 events.
Initially, the seed of lRndm is set to 0:
   pSeed = 0; // default value
  lRndm->SetSeed(pSeed);
Information of the seed will be written into log files.