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

Move CCE calculation to CbmMvdDataSheet - obsolete code removed

parent 967c990a
No related branches found
No related tags found
1 merge request!1371Add time based digitization and reconstruction for MVD
......@@ -1047,12 +1047,12 @@ void CbmMvdSensorDigitizerTask::ProducePixelCharge(CbmMvdPoint* point)
fCurrentTotalCharge += sPoint->charge;
//compute the charge distributed to this pixel by this segment
Float_t totCharge = (sPoint->charge * fLorentzNorm * (0.5 * fPar0 * fPar1 / TMath::Pi())
/ TMath::Max(1.e-10, (((Current[0] - xCentre) * (Current[0] - xCentre))
+ ((Current[1] - yCentre) * (Current[1] - yCentre)))
/ fPixelSize / fPixelSize
+ 0.25 * fPar1 * fPar1)
+ fPar2);
// Float_t totCharge = (sPoint->charge * fLorentzNorm * (0.5 * fPar0 * fPar1 / TMath::Pi())
// / TMath::Max(1.e-10, (((Current[0] - xCentre) * (Current[0] - xCentre))
// + ((Current[1] - yCentre) * (Current[1] - yCentre)))
// / fPixelSize / fPixelSize
// + 0.25 * fPar1 * fPar1)
// + fPar2);
totCharge= sPoint->charge * fLorentzNorm *
fSensorDataSheet-> ComputeCCE(xCentre, yCentre, 0, Current[0], Current[1],0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment