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 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);
   }