Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update in StMuFcsUtil #484

Merged
merged 1 commit into from
Jan 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions StRoot/StMuDSTMaker/COMMON/StMuFcsUtil.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ void StMuFcsUtil::fillMuFcsHits(StMuFcsCollection* muFcs,
);

// set the corrected energy too
muFcsHit->setEnergy( vecHit[i]->energy() );
muFcsHit->setAdcSum ( vecHit[i]->adcSum() );
muFcsHit->setFitPeak ( vecHit[i]->fitPeak() );
muFcsHit->setFitSigma( vecHit[i]->fitSigma());
muFcsHit->setFitChi2 ( vecHit[i]->fitChi2() );
muFcsHit->setNPeak ( vecHit[i]->nPeak() );
muFcsHit->setEnergy ( vecHit[i]->energy() );

// store in memory map between StEvent and StMuDst version
mMapHits[ fcscol->hits(idet)[i] ] = muFcsHit;
Expand Down Expand Up @@ -284,6 +289,11 @@ void StMuFcsUtil::fillFcsHits(StFcsCollection* fcscol,
l, muHit->data()
);

hit->setEnergy( muHit->energy() );
hit->setAdcSum ( muHit->adcSum() );
hit->setFitPeak ( muHit->fitPeak() );
hit->setFitSigma( muHit->fitSigma());
hit->setFitChi2 ( muHit->fitChi2() );
hit->setNPeak ( muHit->nPeak() );
hit->setEnergy ( muHit->energy() );
} // while
} // fillFcsHits