Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
NSW L1 simulation algorithm.
More...
#include <NSWL1Simulation.h>
|
| NSWL1Simulation (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute (const EventContext &ctx) const override |
|
virtual StatusCode | finalize () override |
|
const ServiceHandle< ITHistSvc > & | histSvc () const |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. More...
|
|
virtual unsigned int | cardinality () const override |
| Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
|
|
virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
virtual bool | filterPassed (const EventContext &ctx) const |
|
virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
ToolHandle< IPadTdsTool > | m_pad_tds {this, "PadTdsTool", "NSWL1::PadTdsOfflineTool", "Tool simulating the functionalities of the sTGC PAD TDS"} |
|
ToolHandle< IPadTriggerLogicTool > | m_pad_trigger {this, "PadTriggerTool", "NSWL1::PadTriggerLogicOfflineTool", "Tool simulating the sTGC pad trigger logic"} |
|
ToolHandle< IStripTdsTool > | m_strip_tds {this, "StripTdsTool", "NSWL1::StripTdsOfflineTool", "Tool simulating the functionalities of the sTGC Strip TDS"} |
|
ToolHandle< IStripClusterTool > | m_strip_cluster {this, "StripClusterTool", "NSWL1::StripClusterTool", "Tool simulating the sTGC Strip Clustering"} |
|
ToolHandle< IStripSegmentTool > | m_strip_segment {this, "StripSegmentTool", "NSWL1::StripSegmentTool", "Tool simulating the sTGC Segment finding"} |
|
ToolHandle< IMMTriggerTool > | m_mmtrigger {this, "MMTriggerTool", "NSWL1::MMTriggerTool", "Tool simulating the MM Trigger"} |
|
ToolHandle< ITriggerProcessorTool > | m_trigProcessor {this, "TriggerProcessorTool", "NSWL1::TriggerProcessorTool", "Tool simulating the TP"} |
|
Gaudi::Property< bool > | m_doNtuple {this, "DoNtuple", false, "Create an ntuple for data analysis"} |
|
Gaudi::Property< bool > | m_doMM {this, "DoMM", false, "Run data analysis for MM"} |
|
Gaudi::Property< bool > | m_doMMDiamonds {this, "DoMMDiamonds", false, "Run data analysis for MM using Diamond Roads algorithm"} |
|
Gaudi::Property< bool > | m_dosTGC {this, "DosTGC", false, "Run data analysis for sTGCs"} |
|
Gaudi::Property< bool > | m_doStrip {this, "DoStrip", false, "Run data analysis for sTGC strip trigger"} |
|
Gaudi::Property< bool > | m_doPad {this, "DoPad", false, "Run data analysis for sTGC pad trigger"} |
|
ServiceHandle< ITHistSvc > | m_histSvc |
|
MuonVal::MuonTesterTree m_altree | ATLAS_THREAD_SAFE {"SimulationTree", "/NSWL1Simulation"} |
|
DataObjIDColl | m_extendedExtraObjects |
| Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
|
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
NSW L1 simulation algorithm.
This is the algorithm that masters the simulation of the Level-1 into the NSW. This algorithm will manage the configuration of the NSW LV1 and handle the tools used for simulating the hardware components, for monitoring the basic functionalities and for collecting the data into an ntuple (parameter definition and performance studies). Depending of the job configuration it executes the pure offline simulation or the detailed hardware simulation.
- Authors
- Alessandro Di Mattia dimat.nosp@m.tia@.nosp@m.cern..nosp@m.ch, Geraldine Conti geral.nosp@m.dine.nosp@m..cont.nosp@m.i@ce.nosp@m.rn.ch Major updates for Release 22 processing: Francesco Giuseppe Gravili franc.nosp@m.esco.nosp@m..gius.nosp@m.eppe.nosp@m..grav.nosp@m.ili@.nosp@m.cern..nosp@m.ch
Definition at line 46 of file NSWL1Simulation.h.
◆ StoreGateSvc_t
◆ NSWL1Simulation()
NSWL1::NSWL1Simulation::NSWL1Simulation |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ cardinality()
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Override this to return 0 for reentrant algorithms.
Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode NSWL1::NSWL1Simulation::execute |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtual |
Definition at line 46 of file NSWL1Simulation.cxx.
47 std::vector<std::shared_ptr<PadData>> pads;
48 std::vector<std::unique_ptr<PadTrigger>> padTriggers;
49 std::vector<std::unique_ptr<StripData>> strips;
50 std::vector<std::unique_ptr<StripClusterData> >
clusters;
51 auto padTriggerContainer = std::make_unique<Muon::NSW_PadTriggerDataContainer>();
52 auto stripTriggerContainer = std::make_unique<Muon::NSW_TrigRawDataContainer>();
53 auto MMTriggerContainer = std::make_unique<Muon::NSW_TrigRawDataContainer>();
73 std::scoped_lock lock(
mutex);
75 if(!success)
return StatusCode::FAILURE;
79 auto trgContainer=std::make_unique<Muon::NSW_TrigRawDataContainer>();
80 ATH_CHECK(
m_trigProcessor->mergeRDO(padTriggerContainer.get(), stripTriggerContainer.get(), MMTriggerContainer.get(), trgContainer.get()) );
81 ATH_CHECK(rdohandle.record(std::move(trgContainer)));
82 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
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
◆ extraOutputDeps()
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.
◆ filterPassed()
◆ finalize()
StatusCode NSWL1::NSWL1Simulation::finalize |
( |
| ) |
|
|
overridevirtual |
◆ histSvc()
◆ initialize()
StatusCode NSWL1::NSWL1Simulation::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 14 of file NSWL1Simulation.cxx.
19 if(
m_doNtuple and Gaudi::Concurrency::ConcurrencyFlags::numConcurrentEvents() > 1) {
20 ATH_MSG_ERROR(
"DoNtuple is not possible in multi-threaded mode");
21 return StatusCode::FAILURE;
42 return StatusCode::SUCCESS;
◆ inputHandles()
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.
◆ isClonable()
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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()
◆ renounceArray()
◆ setFilterPassed()
◆ sysExecute()
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.
◆ sysInitialize()
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in InputMakerBase, and HypoBase.
Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.
110 if (
sc.isFailure()) {
118 if ( cs.retrieve().isFailure() ) {
120 return StatusCode::SUCCESS;
122 if (cs->regHandle(
this,*
h).isFailure()) {
123 sc = StatusCode::FAILURE;
124 ATH_MSG_ERROR(
"unable to register WriteCondHandle " <<
h->fullKey()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ ATLAS_THREAD_SAFE
◆ m_detStore
◆ m_doMM
Gaudi::Property<bool> NSWL1::NSWL1Simulation::m_doMM {this, "DoMM", false, "Run data analysis for MM"} |
|
private |
◆ m_doMMDiamonds
Gaudi::Property<bool> NSWL1::NSWL1Simulation::m_doMMDiamonds {this, "DoMMDiamonds", false, "Run data analysis for MM using Diamond Roads algorithm"} |
|
private |
◆ m_doNtuple
Gaudi::Property<bool> NSWL1::NSWL1Simulation::m_doNtuple {this, "DoNtuple", false, "Create an ntuple for data analysis"} |
|
private |
◆ m_doPad
Gaudi::Property<bool> NSWL1::NSWL1Simulation::m_doPad {this, "DoPad", false, "Run data analysis for sTGC pad trigger"} |
|
private |
◆ m_dosTGC
Gaudi::Property<bool> NSWL1::NSWL1Simulation::m_dosTGC {this, "DosTGC", false, "Run data analysis for sTGCs"} |
|
private |
◆ m_doStrip
Gaudi::Property<bool> NSWL1::NSWL1Simulation::m_doStrip {this, "DoStrip", false, "Run data analysis for sTGC strip trigger"} |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 114 of file AthCommonReentrantAlgorithm.h.
◆ m_histSvc
◆ m_mmtrigger
◆ m_pad_tds
◆ m_pad_trigger
◆ m_strip_cluster
◆ m_strip_segment
◆ m_strip_tds
◆ m_trigProcessor
◆ m_trigRdoContainer
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
ToolHandle< ITriggerProcessorTool > m_trigProcessor
ToolHandle< IStripClusterTool > m_strip_cluster
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
ToolHandle< IStripTdsTool > m_strip_tds
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)
SG::WriteHandleKey< Muon::NSW_TrigRawDataContainer > m_trigRdoContainer
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
ToolHandle< IPadTriggerLogicTool > m_pad_trigger
ToolHandle< IMMTriggerTool > m_mmtrigger
MuonVal::MuonTesterTree m_altree ATLAS_THREAD_SAFE
virtual void setOwner(IDataHandleHolder *o)=0
An algorithm that can be simultaneously executed in multiple threads.
ToolHandle< IPadTdsTool > m_pad_tds
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Gaudi::Property< bool > m_doNtuple
ToolHandle< IStripSegmentTool > m_strip_segment
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
Gaudi::Property< bool > m_dosTGC
ServiceHandle< ITHistSvc > m_histSvc
Gaudi::Property< bool > m_doStrip
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
StatusCode fillContainer(const std::unique_ptr< Muon::NSW_PadTriggerDataContainer > &out, const std::vector< std::unique_ptr< NSWL1::PadTrigger >> &triggers, const uint32_t l1id)
Gaudi::Property< bool > m_doMMDiamonds
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
bool fill(const EventContext &ctx)
Fills the tree per call.
virtual StatusCode sysInitialize() override
Override sysInitialize.
Gaudi::Property< bool > m_doPad
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Gaudi::Property< bool > m_doMM