Skip to content
Snippets Groups Projects
Commit 0b2826ee authored by Rafal Bielski's avatar Rafal Bielski :wave:
Browse files

add configurable delay between ROB requests

parent 9d45aefa
No related branches found
No related tags found
No related merge requests found
......@@ -55,13 +55,14 @@ hypo.HypoOutputDecisions = "MTCalibPebDecisions"
hypoTool1 = MTCalibPebHypoTool("HLT_MTCalibPeb1")
hypoTool1.RandomAcceptRate = 0.75
hypoTool1.BurnTimePerCycleMillisec = 200
hypoTool1.BurnTimePerCycleMillisec = 100
hypoTool1.NumBurnCycles = 3
hypoTool2 = MTCalibPebHypoTool("HLT_MTCalibPeb2")
hypoTool2.RandomAcceptRate = 0.25
hypoTool2.BurnTimePerCycleMillisec = 1000
hypoTool2.BurnTimePerCycleMillisec = 200
hypoTool2.NumBurnCycles = 10
hypoTool2.TimeBetweenROBReqMillisec = 100
hypoTool2.ROBAccessDict = {
"01 :ADD: Preload ": [ 0x42002a, 0x42002b ], # robs for 1st preload
"02 :ADD: Preload ": [ 0x42002e, 0x42002f ], # robs for 2nd preload
......@@ -72,7 +73,7 @@ hypoTool2.ROBAccessDict = {
"07 :GET: Retrieve ": [ 0x420060 ], # robs for 2nd retrieval
"08 :GET: Retrieve ": [ 0x420064 ], # robs for 3rd retrieval
"09 :COL: Ev.Build ": [ 0x0 ] # event building
} # This is just an example with a few ROBs (LAr in this case) for testing the ROBDataProvider
} # This is just an example with a few ROBs (LAr in this case) for testing the ROBDataProvider
hypo.HypoTools = [hypoTool1, hypoTool2]
......@@ -81,7 +82,6 @@ hypo.HypoTools = [hypoTool1, hypoTool2]
################################################################################
from TrigOutputHandling.TrigOutputHandlingConf import TriggerEDMSerialiserTool, StreamTagMakerTool, TriggerBitsMakerTool
from eformat import helper
# Tool serialising EDM objects to fill the HLT result
serialiser = TriggerEDMSerialiserTool()
......
......@@ -138,6 +138,7 @@ StatusCode MTCalibPebHypoTool::decide(const MTCalibPebHypoTool::Input& input) co
int nrobs = m_robDataProviderSvc->collectCompleteEventData(input.eventContext, name()+"-COL");
ATH_MSG_DEBUG("Number of ROBs retrieved: " << nrobs);
}
std::this_thread::sleep_for(std::chrono::milliseconds(m_timeBetweenRobReqMillisec));
}
// ---------------------------------------------------------------------------
......
......@@ -73,6 +73,10 @@ private:
"The string key has to contain :ADD: (prefetch), :GET: (retrieve), or :COL: (full event building)."
"The value is a vector of corresponding ROB IDs."
};
Gaudi::Property<unsigned int> m_timeBetweenRobReqMillisec {
this, "TimeBetweenROBReqMillisec", 0,
"Delay in milliseconds between subsequent ROB request operations from ROBAccessDict"
};
// ------------------------- Service or tool handles -------------------------
ServiceHandle<IROBDataProviderSvc> m_robDataProviderSvc;
......
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