diff --git a/src/AllPixLCIOwriter.cc b/src/AllPixLCIOwriter.cc index d2e8d6f..e955b46 100644 --- a/src/AllPixLCIOwriter.cc +++ b/src/AllPixLCIOwriter.cc @@ -113,6 +113,7 @@ void AllPixLCIOwriter::WriteEvent(int runnr, int eventID, map telescopeEncoder(encodingString, telescopeDataCollection); @@ -135,12 +136,12 @@ void AllPixLCIOwriter::WriteEvent(int runnr, int eventID, mapaddElement(planeData); + planeNr++; }else{ dataCollection->addElement(planeData); event->addCollection(dataCollection, collectionName); + dutNr++; } - planeNr++; }