ATLAS Offline Software
Loading...
Searching...
No Matches
MTCalibPebHypoTool Class Reference

Base class for tools used by MTCalibPebHypoAlg. More...

#include <MTCalibPebHypoTool.h>

Inheritance diagram for MTCalibPebHypoTool:
Collaboration diagram for MTCalibPebHypoTool:

Classes

struct  Input
struct  ROBRequestInstruction
 ROB request instruction description. More...

Public Member Functions

 MTCalibPebHypoTool (const std::string &type, const std::string &name, const IInterface *parent)
 Standard constructor.
virtual ~MTCalibPebHypoTool ()
 Standard destructor.
virtual StatusCode initialize () override
virtual StatusCode finalize () override
StatusCode decide (const Input &input) const
 Decides whether to accept the event.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

Gaudi::Property< bool > m_useRandomSeed
Gaudi::Property< double > m_acceptRate
Gaudi::Property< unsigned int > m_burnTimePerCycleMillisec
Gaudi::Property< unsigned int > m_numBurnCycles
Gaudi::Property< bool > m_burnTimeRandomly
Gaudi::Property< bool > m_doCrunch
Gaudi::Property< bool > m_checkDataConsistency
Gaudi::Property< std::map< std::string, std::vector< uint32_t > > > m_robAccessDictProp
Gaudi::Property< unsigned int > m_timeBetweenRobReqMillisec
Gaudi::Property< std::set< uint32_t > > m_pebRobList
Gaudi::Property< std::set< uint32_t > > m_pebSubDetList
Gaudi::Property< std::map< std::string, unsigned int > > m_createRandomData
ServiceHandle< IROBDataProviderSvcm_robDataProviderSvc {this, "ROBDataProviderSvc", "ROBDataProviderSvc", "Name of the ROB data provider"}
ServiceHandle< ICPUCrunchSvc > m_cpuCrunchSvc {this, "CPUCrunchSvc", "CPUCrunchSvc", "Name of the CPU cruncher"}
HLT::Identifier m_decisionId
 The decision id of the tool instance.
SG::WriteHandleKeyArray< xAOD::TrigCompositeContainerm_randomDataWHK
 WriteHandleKey array for collections specified in the CreateRandomData property.
std::vector< std::pair< ROBRequestInstruction, std::vector< uint32_t > > > m_robAccessDict
 Ordered map of ROB request instructions filled from ROBAccessDict property at initialisation.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Base class for tools used by MTCalibPebHypoAlg.

Definition at line 23 of file MTCalibPebHypoTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ MTCalibPebHypoTool()

MTCalibPebHypoTool::MTCalibPebHypoTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Standard constructor.

Definition at line 118 of file MTCalibPebHypoTool.cxx.

119: AthAlgTool(type,name,parent),
AthAlgTool()
Default constructor:
static HLT::Identifier fromToolName(const std::string &tname)
HLT::Identifier m_decisionId
The decision id of the tool instance.

◆ ~MTCalibPebHypoTool()

MTCalibPebHypoTool::~MTCalibPebHypoTool ( )
virtual

Standard destructor.

Definition at line 125 of file MTCalibPebHypoTool.cxx.

125{}

Member Function Documentation

◆ decide()

StatusCode MTCalibPebHypoTool::decide ( const Input & input) const

Decides whether to accept the event.

Definition at line 175 of file MTCalibPebHypoTool.cxx.

175 {
176 // Re-seed the static thread-local RNG
177 if (not m_useRandomSeed.value()) {
178 const seed_t seed = eventSeed(input.eventContext.eventID(), name());
179 ATH_MSG_DEBUG("Using seed " << seed << " for event " << input.eventContext.eventID());
180 threadLocalGenerator().seed(seed);
181 }
182
183 // ---------------------------------------------------------------------------
184 // Burn CPU time
185 // ---------------------------------------------------------------------------
186 for (unsigned int iCycle = 0; iCycle < m_numBurnCycles; ++iCycle) {
187 if (Athena::Timeout::instance(input.eventContext).reached()) {
188 ATH_MSG_ERROR("Timeout reached in CPU time burning cycle # " << iCycle+1);
190 }
191 unsigned int burnTime = m_burnTimeRandomly
192 ? randomInteger<unsigned int>(0, m_burnTimePerCycleMillisec)
194 ATH_MSG_VERBOSE("CPU time burning cycle # " << iCycle+1 << ", burn time [ms] = " << burnTime);
195 if (m_doCrunch) m_cpuCrunchSvc->crunch_for(std::chrono::milliseconds(burnTime));
196 else std::this_thread::sleep_for(std::chrono::milliseconds(burnTime));
197 }
198
199 // ---------------------------------------------------------------------------
200 // Prefetch or retrieve ROBs
201 // ---------------------------------------------------------------------------
202 for (const auto& [instr,robVec] : m_robAccessDict) {
203 // Check for timeout
204 if (Athena::Timeout::instance(input.eventContext).reached()) {
205 ATH_MSG_ERROR("Timeout reached in ROB retrieval loop");
207 }
208
209 // Select a random sample of ROBs from the list, if needed
210 ATH_MSG_DEBUG("Processing instruction " << instr.toString());
211 std::vector<uint32_t> robs;
212 if (instr.isRandom && instr.nRandom < robVec.size()) {
213 std::sample(robVec.begin(),robVec.end(),
214 std::back_inserter(robs),
215 instr.nRandom,
216 threadLocalGenerator());
217 }
218 else robs = robVec;
219
220 // Execute the ROB requests
221 using ReqType = ROBRequestInstruction::Type;
222 if (instr.type == ReqType::ADD || instr.type == ReqType::ADDGET) {
223 // Prefetch ROBs
224 ATH_MSG_DEBUG("Preloading ROBs: " << idsToString(robs));
225 m_robDataProviderSvc->addROBData(input.eventContext, robs, name()+"-ADD");
226 }
227 if (instr.type == ReqType::GET || instr.type == ReqType::ADDGET) {
228 // Retrieve ROBs
229 ATH_MSG_DEBUG("Retrieving ROBs: " << idsToString(robs));
230 // VROBFRAG is a typedef for std::vector<const eformat::ROBFragment<const uint32_t*>*>
232 m_robDataProviderSvc->getROBData(input.eventContext, robs, robFragments, name()+"-GET");
233 ATH_MSG_DEBUG("Number of ROBs retrieved: " << robFragments.size());
234 if (!robFragments.empty()) {
235 ATH_MSG_DEBUG("List of ROBs found: " << std::endl << format(robFragments));
236 }
237 if (m_checkDataConsistency.value()) {
238 for (const IROBDataProviderSvc::ROBF* rob : robFragments) {
239 try {
240 if (!rob->check_rob() || !rob->check_rod()) {
241 ATH_MSG_ERROR("Data consistency check failed");
242 }
243 }
244 catch (const std::exception& ex) {
245 ATH_MSG_ERROR("Data consistency check failed: " << ex.what());
246 }
247 ATH_MSG_DEBUG("Data consistency check passed for ROB 0x" << std::hex << rob->rob_source_id() << std::dec);
248 }
249 }
250 }
251 if (instr.type == ReqType::COL) {
252 // Event building
253 ATH_MSG_DEBUG("Requesting full event ROBs");
254 int nrobs = m_robDataProviderSvc->collectCompleteEventData(input.eventContext, name()+"-COL");
255 ATH_MSG_DEBUG("Number of ROBs retrieved: " << nrobs);
256 }
257 if (instr.type == ReqType::INVALID) {
258 ATH_MSG_ERROR("Invalid ROB request instruction " << instr.toString());
259 return StatusCode::FAILURE;
260 }
261
262 // Sleep between ROB requests
263 std::this_thread::sleep_for(std::chrono::milliseconds(m_timeBetweenRobReqMillisec));
264 }
265
266 // ---------------------------------------------------------------------------
267 // Produce random data
268 // ---------------------------------------------------------------------------
269 {
270 using DataCont = xAOD::TrigCompositeContainer;
271 using AuxCont = xAOD::TrigCompositeAuxContainer;
272 for (const SG::WriteHandleKey<DataCont>& handleKey : m_randomDataWHK) {
273 // Create data and aux container
274 std::unique_ptr<DataCont> data = std::make_unique<DataCont>();
275 std::unique_ptr<AuxCont> aux = std::make_unique<AuxCont>();
276 data->setStore(aux.get());
277 // Record the container in event store
278 SG::WriteHandle<DataCont> handle(handleKey,input.eventContext);
279 ATH_CHECK( handle.record(std::move(data),std::move(aux)) );
280 ATH_MSG_DEBUG("Recorded TrigCompositeContainer " << handleKey.key() << " in event store");
281 // Fill the container with random data
282 unsigned int maxElements = m_createRandomData.value().at(handleKey.key());
283 fillRandomData(*handle,maxElements);
284 }
285 }
286
287 // ---------------------------------------------------------------------------
288 // Random accept decision with PEB information
289 // ---------------------------------------------------------------------------
290 bool accept = randomAccept(m_acceptRate);
291 if(!accept) {
292 ATH_MSG_DEBUG("Decision " << m_decisionId << " is reject");
293 return StatusCode::SUCCESS;
294 }
295
296 ATH_MSG_DEBUG("Decision " << m_decisionId << " is accept");
298
299 if (m_pebRobList.empty() && m_pebSubDetList.empty()) {
300 ATH_MSG_VERBOSE("Not configured to write any PEBInfo, nothing will be attached to the decision");
301 }
302 else {
303 ATH_MSG_DEBUG("Attaching ROBs=[" << idsToString(m_pebRobList) << "] and SubDets=["
304 << idsToString(m_pebSubDetList) << "] to the decision object");
305 ATH_CHECK(appendPEBInfo(input.decision,m_pebRobList,m_pebSubDetList));
306 }
307
308 return StatusCode::SUCCESS;
309}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_DEBUG(x)
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
bool reached() const
Check if the timeout was reached.
Definition Timeout.h:45
static Timeout & instance()
Get reference to Timeout singleton.
Definition Timeout.h:64
OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment ROBF
std::vector< const ROBF * > VROBFRAG
Gaudi::Property< double > m_acceptRate
ServiceHandle< ICPUCrunchSvc > m_cpuCrunchSvc
Gaudi::Property< unsigned int > m_timeBetweenRobReqMillisec
Gaudi::Property< unsigned int > m_numBurnCycles
std::vector< std::pair< ROBRequestInstruction, std::vector< uint32_t > > > m_robAccessDict
Ordered map of ROB request instructions filled from ROBAccessDict property at initialisation.
Gaudi::Property< std::set< uint32_t > > m_pebSubDetList
Gaudi::Property< std::set< uint32_t > > m_pebRobList
Gaudi::Property< bool > m_useRandomSeed
SG::WriteHandleKeyArray< xAOD::TrigCompositeContainer > m_randomDataWHK
WriteHandleKey array for collections specified in the CreateRandomData property.
ServiceHandle< IROBDataProviderSvc > m_robDataProviderSvc
Gaudi::Property< unsigned int > m_burnTimePerCycleMillisec
Gaudi::Property< bool > m_burnTimeRandomly
Gaudi::Property< bool > m_doCrunch
Gaudi::Property< bool > m_checkDataConsistency
Gaudi::Property< std::map< std::string, unsigned int > > m_createRandomData
@ TIMEOUT
Timeout during event processing.
StatusCode accept(const xAOD::Muon *mu)
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
TrigCompositeContainer_v1 TrigCompositeContainer
Declare the latest version of the container.
TrigCompositeAuxContainer_v2 TrigCompositeAuxContainer
Declare the latest version of the container.

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ finalize()

StatusCode MTCalibPebHypoTool::finalize ( )
overridevirtual

Definition at line 167 of file MTCalibPebHypoTool.cxx.

167 {
168 ATH_MSG_INFO("Finalising " << name());
170 ATH_CHECK(m_randomDataWHK.initialize());
171 return StatusCode::SUCCESS;
172}
#define ATH_MSG_INFO(x)

◆ initialize()

StatusCode MTCalibPebHypoTool::initialize ( )
overridevirtual

Definition at line 130 of file MTCalibPebHypoTool.cxx.

130 {
131 ATH_MSG_INFO("Initialising " << name());
133 if (m_doCrunch) ATH_CHECK(m_cpuCrunchSvc.retrieve());
134
135 // Copy keys from map<string,uint> to WriteHandleKeyArray
136 for (const auto& [name, number] : m_createRandomData) {
137 m_randomDataWHK.push_back(name);
138 }
139 ATH_CHECK(m_randomDataWHK.initialize());
140
141 // Parse and print the ROB request dictionary
142 for (const auto& [instrString,robVec] : m_robAccessDictProp.value()) {
143 m_robAccessDict.emplace_back(ROBRequestInstruction(instrString),robVec);
144 if (m_robAccessDict.back().first.type==ROBRequestInstruction::Type::INVALID) {
145 ATH_MSG_ERROR("Invalid instruction " << instrString);
146 return StatusCode::FAILURE;
147 }
148 }
149 if (msgLvl(MSG::DEBUG)) {
150 if (!m_robAccessDict.empty()) {
151 ATH_MSG_DEBUG(name() << " will execute the following ROB request instructions:");
152 for (const auto& [instr,robVec] : m_robAccessDict) {
153 ATH_MSG_DEBUG("---> Instruction : " << instr.toString());
154 ATH_MSG_DEBUG(" ROB list : " << idsToString(robVec));
155 }
156 }
157 ATH_MSG_DEBUG(name() << " PEBROBList = [" << idsToString(m_pebRobList) << "]");
158 ATH_MSG_DEBUG(name() << " PEBSubDetList = [" << idsToString(m_pebSubDetList) << "]");
159 }
160
161 return StatusCode::SUCCESS;
162}
bool msgLvl(const MSG::Level lvl) const
Gaudi::Property< std::map< std::string, std::vector< uint32_t > > > m_robAccessDictProp
ROB request instruction description.
std::string number(const double &d, const std::string &s)
Definition utils.cxx:186

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_acceptRate

Gaudi::Property<double> MTCalibPebHypoTool::m_acceptRate
private
Initial value:
{
this, "RandomAcceptRate", -1,
"Rate of random accepts, <=0 is never, >=1 is always"
}

Definition at line 67 of file MTCalibPebHypoTool.h.

67 {
68 this, "RandomAcceptRate", -1,
69 "Rate of random accepts, <=0 is never, >=1 is always"
70 };

◆ m_burnTimePerCycleMillisec

Gaudi::Property<unsigned int> MTCalibPebHypoTool::m_burnTimePerCycleMillisec
private
Initial value:
{
this, "BurnTimePerCycleMillisec", 0,
"Burn time per cycle in milliseconds"
}

Definition at line 71 of file MTCalibPebHypoTool.h.

71 {
72 this, "BurnTimePerCycleMillisec", 0,
73 "Burn time per cycle in milliseconds"
74 };

◆ m_burnTimeRandomly

Gaudi::Property<bool> MTCalibPebHypoTool::m_burnTimeRandomly
private
Initial value:
{
this, "BurnTimeRandomly", true,
"If true, burn time per cycle is a random value from uniform distribution between 0 and the given value"
}

Definition at line 79 of file MTCalibPebHypoTool.h.

79 {
80 this, "BurnTimeRandomly", true,
81 "If true, burn time per cycle is a random value from uniform distribution between 0 and the given value"
82 };

◆ m_checkDataConsistency

Gaudi::Property<bool> MTCalibPebHypoTool::m_checkDataConsistency
private
Initial value:
{
this, "CheckDataConsistency", false,
"Perform consistency checks for all retrieved ROB data"
}

Definition at line 87 of file MTCalibPebHypoTool.h.

87 {
88 this, "CheckDataConsistency", false,
89 "Perform consistency checks for all retrieved ROB data"
90 };

◆ m_cpuCrunchSvc

ServiceHandle<ICPUCrunchSvc> MTCalibPebHypoTool::m_cpuCrunchSvc {this, "CPUCrunchSvc", "CPUCrunchSvc", "Name of the CPU cruncher"}
private

Definition at line 121 of file MTCalibPebHypoTool.h.

121{this, "CPUCrunchSvc", "CPUCrunchSvc", "Name of the CPU cruncher"};

◆ m_createRandomData

Gaudi::Property<std::map<std::string,unsigned int> > MTCalibPebHypoTool::m_createRandomData
private
Initial value:
{
this, "CreateRandomData", {},
"Create random data which can be serialised and saved to output. The property value should be a dictionary in the "
"form {name: number} where name is the collection name and number is the maximum number of elements and "
"their decorations"
}

Definition at line 112 of file MTCalibPebHypoTool.h.

112 {
113 this, "CreateRandomData", {},
114 "Create random data which can be serialised and saved to output. The property value should be a dictionary in the "
115 "form {name: number} where name is the collection name and number is the maximum number of elements and "
116 "their decorations"
117 };

◆ m_decisionId

HLT::Identifier MTCalibPebHypoTool::m_decisionId
private

The decision id of the tool instance.

Definition at line 125 of file MTCalibPebHypoTool.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_doCrunch

Gaudi::Property<bool> MTCalibPebHypoTool::m_doCrunch
private
Initial value:
{
this, "Crunch", false,
"Crunch CPU instead of sleeping"
}

Definition at line 83 of file MTCalibPebHypoTool.h.

83 {
84 this, "Crunch", false,
85 "Crunch CPU instead of sleeping"
86 };

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_numBurnCycles

Gaudi::Property<unsigned int> MTCalibPebHypoTool::m_numBurnCycles
private
Initial value:
{
this, "NumBurnCycles", 0,
"Number of time burning cycles"
}

Definition at line 75 of file MTCalibPebHypoTool.h.

75 {
76 this, "NumBurnCycles", 0,
77 "Number of time burning cycles"
78 };

◆ m_pebRobList

Gaudi::Property<std::set<uint32_t> > MTCalibPebHypoTool::m_pebRobList
private
Initial value:
{
this, "PEBROBList", {},
"The list of ROBs to add for partial event building in each passed event"
}

Definition at line 104 of file MTCalibPebHypoTool.h.

104 {
105 this, "PEBROBList", {},
106 "The list of ROBs to add for partial event building in each passed event"
107 };

◆ m_pebSubDetList

Gaudi::Property<std::set<uint32_t> > MTCalibPebHypoTool::m_pebSubDetList
private
Initial value:
{
this, "PEBSubDetList", {},
"The list of SubDets to add for partial event building in each passed event"
}

Definition at line 108 of file MTCalibPebHypoTool.h.

108 {
109 this, "PEBSubDetList", {},
110 "The list of SubDets to add for partial event building in each passed event"
111 };

◆ m_randomDataWHK

SG::WriteHandleKeyArray<xAOD::TrigCompositeContainer> MTCalibPebHypoTool::m_randomDataWHK
private

WriteHandleKey array for collections specified in the CreateRandomData property.

Definition at line 127 of file MTCalibPebHypoTool.h.

◆ m_robAccessDict

std::vector<std::pair<ROBRequestInstruction,std::vector<uint32_t> > > MTCalibPebHypoTool::m_robAccessDict
private

Ordered map of ROB request instructions filled from ROBAccessDict property at initialisation.

Definition at line 129 of file MTCalibPebHypoTool.h.

◆ m_robAccessDictProp

Gaudi::Property<std::map<std::string,std::vector<uint32_t> > > MTCalibPebHypoTool::m_robAccessDictProp
private
Initial value:
{
this, "ROBAccessDict", {},
"Dictionary of prefetch/retrieve operations with given ROB IDs. The value is a vector of ROB IDs. "
"The string key has to contain :ADD: (prefetch), :GET: (retrieve), :ADDGET: (prefetch+retrieve) or :COL: (full "
"event building). :ADD:, :GET: and :ADDGET: may be also appended with :RNDX: where X is an integer. In this case, "
"random X ROBs will be prefetched/retrieved from the provided list, e.g. :GET:RND10: retrieves 10 random ROBs from "
"the list. Otherwise the full list is used. Note std::map is sorted by std::less<std::string>, so starting the key "
"with a number may be needed to enforce ordering, e.g. '01 :ADD:RND10:'."
}

Definition at line 91 of file MTCalibPebHypoTool.h.

91 {
92 this, "ROBAccessDict", {},
93 "Dictionary of prefetch/retrieve operations with given ROB IDs. The value is a vector of ROB IDs. "
94 "The string key has to contain :ADD: (prefetch), :GET: (retrieve), :ADDGET: (prefetch+retrieve) or :COL: (full "
95 "event building). :ADD:, :GET: and :ADDGET: may be also appended with :RNDX: where X is an integer. In this case, "
96 "random X ROBs will be prefetched/retrieved from the provided list, e.g. :GET:RND10: retrieves 10 random ROBs from "
97 "the list. Otherwise the full list is used. Note std::map is sorted by std::less<std::string>, so starting the key "
98 "with a number may be needed to enforce ordering, e.g. '01 :ADD:RND10:'."
99 };

◆ m_robDataProviderSvc

ServiceHandle<IROBDataProviderSvc> MTCalibPebHypoTool::m_robDataProviderSvc {this, "ROBDataProviderSvc", "ROBDataProviderSvc", "Name of the ROB data provider"}
private

Definition at line 120 of file MTCalibPebHypoTool.h.

120{this, "ROBDataProviderSvc", "ROBDataProviderSvc", "Name of the ROB data provider"};

◆ m_timeBetweenRobReqMillisec

Gaudi::Property<unsigned int> MTCalibPebHypoTool::m_timeBetweenRobReqMillisec
private
Initial value:
{
this, "TimeBetweenROBReqMillisec", 0,
"Delay in milliseconds between subsequent ROB request operations from ROBAccessDict"
}

Definition at line 100 of file MTCalibPebHypoTool.h.

100 {
101 this, "TimeBetweenROBReqMillisec", 0,
102 "Delay in milliseconds between subsequent ROB request operations from ROBAccessDict"
103 };

◆ m_useRandomSeed

Gaudi::Property<bool> MTCalibPebHypoTool::m_useRandomSeed
private
Initial value:
{
this, "UseRandomSeed", false,
"If true, use random seed for the internal RNG. If false, use a seed based on run/event number and tool name."
}

Definition at line 63 of file MTCalibPebHypoTool.h.

63 {
64 this, "UseRandomSeed", false,
65 "If true, use random seed for the internal RNG. If false, use a seed based on run/event number and tool name."
66 };

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: