Setting new ID of deleted particles to -1.
authorbthorsbr <brian.peter.thorsbro@cern.ch>
Mon, 18 Aug 2014 07:18:06 +0000 (09:18 +0200)
committerhristov <Peter.Hristov@cern.ch>
Wed, 20 Aug 2014 08:27:40 +0000 (10:27 +0200)
EVGEN/AliGenExtFile.cxx

index 84ac897..332e8aa 100644 (file)
@@ -196,6 +196,8 @@ void AliGenExtFile::Generate()
           for (Int_t id = 0; id < idCount; id++) {
              if (selectedIdMap[id]) {
                 newIdMap[id] = newId; ++newId;
+             } else {
+                newIdMap[id] = -1;
              }
           }
        }