ATLAS Offline Software
|
#include <MUCTPI_AthTool.h>
Public Member Functions | |
MUCTPI_AthTool (const std::string &type, const std::string &name, const IInterface *parent) | |
virtual | ~MUCTPI_AthTool () override=default |
virtual StatusCode | initialize () override |
virtual StatusCode | start () override |
StatusCode | execute () 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 | sysInitialize () override |
Perform system initialization for an algorithm. 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 |
Protected Member Functions | |
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
remove all handles from I/O resolution More... | |
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. More... | |
Private Types | |
typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
StatusCode | executeFromDigi () const |
Event loop method for running as part of digitization. More... | |
StatusCode | executeFromAOD () const |
Event loop method for running on an AOD file. More... | |
StatusCode | executeFromRDO () const |
Event loop method for running on an RDO file. More... | |
StatusCode | saveOutput (std::optional< std::reference_wrapper< MUCTPIResults >> results, int bcidOffset=0) const |
Save the outputs of the simulation into StoreGate. More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &) |
specialization for handling Gaudi::Property<SG::VarHandleKey> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &) |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &) |
specialization for handling Gaudi::Property<SG::VarHandleBase> More... | |
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &) |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More... | |
Private Attributes | |
SG::ReadHandleKey< LVL1MUONIF::Lvl1MuCTPIInputPhase1 > | m_muctpiPhase1KeyRPC {this, "MuctpiPhase1LocationRPC", "L1MuctpiStoreRPC", "Location of muctpiPhase1 for Rpc"} |
SG::ReadHandleKey< LVL1MUONIF::Lvl1MuCTPIInputPhase1 > | m_muctpiPhase1KeyTGC {this, "MuctpiPhase1LocationTGC", "L1MuctpiStoreTGC", "Location of muctpiPhase1 for Tgc"} |
SG::WriteHandleKey< LVL1::MuCTPICTP > | m_MuCTPICTPWriteKey {this, "MuCTPICTPLocation", LVL1MUCTPI::DEFAULT_MuonCTPLocation, "Location of MuCTPICTP"} |
SG::WriteHandleKeyArray< xAOD::MuonRoIContainer > | m_MuCTPI_xAODWriteKeys |
SG::WriteHandleKeyArray< LVL1::MuCTPIL1Topo > | m_MuCTPIL1TopoKeys |
Gaudi::Property< std::string > | m_overlapStrategyName { this, "OverlapStrategyName", "LUT", "Overlap strategy for the MUCTPI. Options: \"LUT\" or \"NULL\" " } |
Gaudi::Property< std::string > | m_lutXMLFile { this, "LUTXMLFile", "TrigConfMuctpi/overlapRun3_20201214.xml", "xml file with the overlap handling for the MUCTPI. Default file for Run3: \"TrigConfMuctpi/overlapRun3_20201214.xml\" " } |
Gaudi::Property< std::string > | m_barrelRoIFile { this, "BarrelRoIFile", m_DEFAULT_barrelRoIFile, "" } |
Gaudi::Property< std::string > | m_ecfRoIFile { this, "EndcapForwardRoIFile", m_DEFAULT_ecfRoIFile, "" } |
Gaudi::Property< std::string > | m_side0LUTFile { this, "Side0LUTFile", m_DEFAULT_side0LUTFile, "" } |
Gaudi::Property< std::string > | m_side1LUTFile { this, "Side1LUTFile", m_DEFAULT_side1LUTFile, "" } |
Gaudi::Property< std::string > | m_inputSource { this, "InputSource", "DIGITIZATION", "" } |
Gaudi::Property< std::string > | m_aodLocId { this, "AODLocID", m_DEFAULT_AODLocID, "" } |
Gaudi::Property< std::string > | m_rdoLocId { this, "RDOLocID", m_DEFAULT_RDOLocID, "" } |
Gaudi::Property< std::string > | m_rdoOutputLocId { this, "RDOOutputLocID", m_DEFAULT_RDOLocID, "" } |
Gaudi::Property< std::string > | m_roiOutputLocId { this, "RoIOutputLocID", m_DEFAULT_locationMuCTPItoRoIB, "" } |
Gaudi::Property< std::string > | m_ctpOutputLocId { this, "CTPOutputLocID", m_DEFAULT_locationMuCTPItoCTP, "" } |
Gaudi::Property< std::string > | m_tgcLocId { this, "TGCLocID", m_DEFAULT_L1MuctpiStoreLocationTGC, "" } |
Gaudi::Property< std::string > | m_rpcLocId { this, "RPCLocID", m_DEFAULT_L1MuctpiStoreLocationRPC, "" } |
ServiceHandle< StoreGateSvc > | m_detStore { this, "DetectorStore", "StoreGateSvc/DetectorStore", "Detector store to get the menu" } |
SimController | m_theMuctpi |
ToolHandle< LVL1::ITrigT1MuonRecRoiTool > | m_rpcTool {this, "RPCRecRoiTool", "LVL1::TrigT1RPCRecRoiTool/LVL1__TrigT1RPCRecRoiTool", "Tool to get the eta/phi coordinates in the RPC"} |
ToolHandle< LVL1::ITrigT1MuonRecRoiTool > | m_tgcTool {this, "TGCRecRoiTool", "LVL1::TrigT1TGCRecRoiTool/LVL1__TrigT1TGCRecRoiTool", "Tool to get the eta/phi coordinates in the TGC"} |
ToolHandle< LVL1::TrigThresholdDecisionTool > | m_trigThresholdDecisionTool {this, "TrigThresholdDecisionTool", "LVL1::TrigThresholdDecisionTool/LVL1__TrigThresholdDecisionTool", "Tool to get pass/fail of each trigger threshold"} |
StatusCode(LVL1MUCTPIPHASE1::MUCTPI_AthTool::* | m_executeFunction )(void) const |
Function pointer to the execute function we want to use: More... | |
StoreGateSvc_t | m_evtStore |
Pointer to StoreGate (event store by default) More... | |
std::vector< SG::VarHandleKeyArray * > | m_vhka |
bool | m_varHandleArraysDeclared |
Static Private Attributes | |
static constexpr std::array< int, 4 > | m_bcidOffsetList {-2,-1,1,2} |
static const std::string | m_DEFAULT_locationMuCTPItoCTP = "/Run/L1MuCTPItoCTPLocation" |
static const std::string | m_DEFAULT_locationMuCTPItoRoIB = "/Run/L1MuCTPItoRoIBLocation" |
static const std::string | m_DEFAULT_L1MuctpiStoreLocationRPC = "/Event/L1MuctpiStoreRPC" |
static const std::string | m_DEFAULT_L1MuctpiStoreLocationTGC = "/Event/L1MuctpiStoreTGC" |
static const std::string | m_DEFAULT_AODLocID = "LVL1_ROI" |
static const std::string | m_DEFAULT_RDOLocID = "MUCTPI_RDO" |
static const std::string | m_DEFAULT_barrelRoIFile = "TrigConfMuctpi/Data_ROI_Mapping_Barrel_040422.txt" |
static const std::string | m_DEFAULT_ecfRoIFile = "TrigConfMuctpi/Data_RoI_Mapping_EF_040422.txt" |
static const std::string | m_DEFAULT_side0LUTFile = "TrigConfMuctpi/lookup_0_040422.json" |
static const std::string | m_DEFAULT_side1LUTFile = "TrigConfMuctpi/lookup_1_040422.json" |
Definition at line 39 of file MUCTPI_AthTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
LVL1MUCTPIPHASE1::MUCTPI_AthTool::MUCTPI_AthTool | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Definition at line 52 of file MUCTPI_AthTool.cxx.
|
overridevirtualdefault |
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
|
inlineprivateinherited |
specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>
Definition at line 199 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Definition at line 259 of file AthCommonDataStore.h.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Declare a new Gaudi property.
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.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore
Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 95 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 85 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 90 of file AthCommonDataStore.h.
StatusCode LVL1MUCTPIPHASE1::MUCTPI_AthTool::execute | ( | ) | const |
Definition at line 195 of file MUCTPI_AthTool.cxx.
|
private |
|
private |
Event loop method for running as part of digitization.
This is the default execute() function.
It reads inputs from the RPC and TGC sector logics, and runs the MuCTPI simulation with their inputs.
Need to check here if there are several BC slices in the input object, and run the simulation for each one
Definition at line 212 of file MUCTPI_AthTool.cxx.
|
private |
|
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
|
overridevirtual |
Definition at line 63 of file MUCTPI_AthTool.cxx.
|
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.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
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.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
private |
Save the outputs of the simulation into StoreGate.
Definition at line 377 of file MUCTPI_AthTool.cxx.
|
overridevirtual |
Definition at line 167 of file MUCTPI_AthTool.cxx.
|
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 DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
Definition at line 117 of file MUCTPI_AthTool.h.
|
private |
Definition at line 110 of file MUCTPI_AthTool.h.
|
staticconstexprprivate |
Definition at line 65 of file MUCTPI_AthTool.h.
|
private |
Definition at line 121 of file MUCTPI_AthTool.h.
|
staticprivate |
Definition at line 94 of file MUCTPI_AthTool.h.
|
staticprivate |
Definition at line 96 of file MUCTPI_AthTool.h.
|
staticprivate |
Definition at line 97 of file MUCTPI_AthTool.h.
|
staticprivate |
Definition at line 92 of file MUCTPI_AthTool.h.
|
staticprivate |
Definition at line 93 of file MUCTPI_AthTool.h.
|
staticprivate |
Definition at line 90 of file MUCTPI_AthTool.h.
|
staticprivate |
Definition at line 91 of file MUCTPI_AthTool.h.
|
staticprivate |
Definition at line 95 of file MUCTPI_AthTool.h.
|
staticprivate |
Definition at line 98 of file MUCTPI_AthTool.h.
|
staticprivate |
Definition at line 99 of file MUCTPI_AthTool.h.
|
private |
Definition at line 127 of file MUCTPI_AthTool.h.
|
private |
Definition at line 111 of file MUCTPI_AthTool.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
inlineprivate |
Function pointer to the execute function we want to use:
Definition at line 135 of file MUCTPI_AthTool.h.
|
private |
Definition at line 116 of file MUCTPI_AthTool.h.
|
private |
Definition at line 107 of file MUCTPI_AthTool.h.
|
private |
Definition at line 71 of file MUCTPI_AthTool.h.
|
private |
Definition at line 70 of file MUCTPI_AthTool.h.
|
private |
Definition at line 79 of file MUCTPI_AthTool.h.
|
private |
Definition at line 68 of file MUCTPI_AthTool.h.
|
private |
Definition at line 69 of file MUCTPI_AthTool.h.
|
private |
Definition at line 106 of file MUCTPI_AthTool.h.
|
private |
Definition at line 118 of file MUCTPI_AthTool.h.
|
private |
Definition at line 119 of file MUCTPI_AthTool.h.
|
private |
Definition at line 120 of file MUCTPI_AthTool.h.
|
private |
Definition at line 125 of file MUCTPI_AthTool.h.
|
private |
Definition at line 130 of file MUCTPI_AthTool.h.
|
private |
Definition at line 112 of file MUCTPI_AthTool.h.
|
private |
Definition at line 113 of file MUCTPI_AthTool.h.
|
private |
Definition at line 124 of file MUCTPI_AthTool.h.
|
private |
Definition at line 131 of file MUCTPI_AthTool.h.
|
private |
Definition at line 129 of file MUCTPI_AthTool.h.
|
private |
Definition at line 132 of file MUCTPI_AthTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.