Skip to content
Snippets Groups Projects
Commit 227e816c authored by Administrator's avatar Administrator Committed by Sergey Gorbunov
Browse files

Allow flexible setting of the mvd digitizer latency

The latency defines the time how much can happen between digi creation and
readout. Only after this time the daq buffer can be written to the output
timeslice without timly disordered digis.
Increase the default time and allow to set the time from the macro.
Add info output to the CbmDaq when the latency is changed.
parent b1742b44
No related branches found
No related tags found
1 merge request!1557Fix MVD digitization and reconstruction
......@@ -508,5 +508,15 @@ void CbmDaq::StartNextTimeSlice()
}
// ===========================================================================
// ===== Set the maximum allowed time for disordered digis==================
void CbmDaq::SetLatency(Double_t time)
{
if (time > fLatency) {
LOG(info) << "The latency was set from " << fLatency
<< "ns to " << time << "ns";
fLatency = time;
}
}
// ===========================================================================
ClassImp(CbmDaq)
......@@ -92,11 +92,7 @@ class CbmDaq : public FairTask {
** The current default of 2,000 ns corresponds to the STS with
** dead time of 800 ns and time resolution of 5 ns.
**/
void SetLatency(Double_t time)
{
if (time > fLatency) fLatency = time;
}
void SetLatency(Double_t time);
/** @brief Set the digitizer for a given system
** @param system System Id (ECbmModuleId)
......
......@@ -62,7 +62,9 @@ public:
/** @brief Detector specific latency
** @return latency
**/
Double_t GetLatency() const { return 110000.; }
Double_t GetLatency() const { return fLatency; }
void SetLatency(Float_t latency) { fLatency = latency;}
void SetPileUp(Int_t pileUp) { fNPileup = pileUp; }
void SetDeltaEvents(Int_t deltaEvents) { fNDeltaElect = deltaEvents; }
......@@ -164,6 +166,8 @@ private:
TStopwatch fTimer; ///< ROOT timer
Float_t fLatency{150000.}; // maximum time of digi disordering
/** Pileup manager **/
CbmMvdPileupManager* fPileupManager;
CbmMvdPileupManager* fDeltaManager;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment