Skip to content
Snippets Groups Projects
Commit 55d8b01c authored by Michael Deveaux's avatar Michael Deveaux Committed by Florian Uhlig
Browse files

Time based update

parent 0c10cd47
No related branches found
No related tags found
1 merge request!1371Add time based digitization and reconstruction for MVD
......@@ -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();
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment