]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONDigitizerV3.cxx
Time information in digitization:
[u/mrichter/AliRoot.git] / MUON / AliMUONDigitizerV3.cxx
index 3a20cf95e76f7c8eff7c6e7dafc3b21c08ddd7f7..5c6f67eeb76809bfa3dcf7a1461519573204099f 100644 (file)
@@ -783,8 +783,14 @@ AliMUONDigitizerV3::MergeWithSDigits(AliMUONVDigitStore*& outputStore,
   TIter next(input.CreateIterator());
   AliMUONVDigit* sdigit;
   
+  const float kTime1 = muon()->GetTimeMin();
+  const float kTime2 = muon()->GetTimeMax();
+
   while ( ( sdigit = static_cast<AliMUONVDigit*>(next()) ) )
   {
+    float time = sdigit->Time()*1E9;
+    if (time<kTime1 || time>kTime2) continue;
+    
     // Update the track references using the mask.
     // FIXME: this is dirty, for backward compatibility only.
     // Should re-design all this way of keeping track of MC information...