Bug fix in copy constructor of CTP scalers class. Bug #57162
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 17 Oct 2009 20:25:58 +0000 (20:25 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 17 Oct 2009 20:25:58 +0000 (20:25 +0000)
STEER/AliTriggerRunScalers.cxx

index 5c5ef4d..951a93c 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);
   }