Bug fix in copy constructor of CTP scalers class. Bug #57162
[u/mrichter/AliRoot.git] / STEER / AliTriggerRunScalers.cxx
index 5c5ef4d38be867c8f428d9a17b2a4cf25301da50..951a93ca5d0cdf29c26e9d6824e36cc12ad64c0b 100644 (file)
@@ -90,6 +90,7 @@ AliTriggerRunScalers::AliTriggerRunScalers(const AliTriggerRunScalers &run) :
  fScalersRecordESD()
 {
 // copy constructor
+  fClassIndex.Set(run.fClassIndex.GetSize());
 for (Int_t i = 0; i < run.fClassIndex.GetSize(); i++) {
     if (run.fClassIndex[i]) fClassIndex.AddAt(run.fClassIndex[i], i);
   }