diff --git a/reco/detectors/mvd/CbmMvdHitfinder.cxx b/reco/detectors/mvd/CbmMvdHitfinder.cxx index 9412709be6dae3006182deaa5796af7615f02692..80990e0dde0d70c9d0cee72296eaac5e9b4e3e43 100644 --- a/reco/detectors/mvd/CbmMvdHitfinder.cxx +++ b/reco/detectors/mvd/CbmMvdHitfinder.cxx @@ -202,7 +202,7 @@ InitStatus CbmMvdHitfinder::Init() // ********** Register output array - fHits = new TClonesArray("CbmMvdHit", 10000); + fHits = new TClonesArray("CbmMvdHit", 1000); ioman->Register("MvdHit", "Mvd Hits", fHits, IsOutputBranchPersistent("MvdHit")); fDetector = CbmMvdDetector::Instance(); diff --git a/reco/detectors/mvd/plugins/tasks/CbmMvdSensorHitfinderTask.cxx b/reco/detectors/mvd/plugins/tasks/CbmMvdSensorHitfinderTask.cxx index a384d8e7a62cefbee054ed6a4b45bf5c0c4a862f..aeb00561994cbdfc645043eb5c1a824fd717fdca 100644 --- a/reco/detectors/mvd/plugins/tasks/CbmMvdSensorHitfinderTask.cxx +++ b/reco/detectors/mvd/plugins/tasks/CbmMvdSensorHitfinderTask.cxx @@ -268,7 +268,7 @@ void CbmMvdSensorHitfinderTask::CreateHit(CbmMvdCluster* cluster, TVector3& pos, //LOG(debug) << "adding new hit to fHits at X: " << pos.X() << " , Y: "<< pos.Y() << " , Z: " << pos.Z() << " , from cluster nr " << cluster->GetRefId(); Int_t nHits = fOutputBuffer->GetEntriesFast(); - new ((*fOutputBuffer)[nHits]) CbmMvdHit(fSensor->GetStationNr(), pos, dpos, indexX, indexY, cluster->GetRefId(), 0); + new ((*fOutputBuffer)[nHits]) CbmMvdHit(fSensor->GetStationNr(), pos, dpos, indexX, indexY, cluster->GetRefId(), 0); // Bug - Should be the sensor ID CbmMvdHit* currentHit = (CbmMvdHit*) fOutputBuffer->At(nHits); currentHit->SetTime(fSensor->GetCurrentEventTime()); currentHit->SetTimeError(fSensor->GetIntegrationtime() / 2);