A Method To Evaluate The Detection Efficiency And The Mean Lifetime Of Shortlived Particles