Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
The RoIROD Athena Algorithm takes the output from the LVL1 Calo Trigger simulations and produces the words, as would be produced by the hardware ReadOut Drivers (RODs); i.e.
More...
#include <RoIROD.h>
|
| RoIROD (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~RoIROD () |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute (const EventContext &ctx) const override |
|
virtual StatusCode | finalize () override |
|
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 |
|
|
void | addHeader (t_SlinkContainer &slink, unsigned int subDetID, unsigned int moduleId, const EventContext &ctx) const |
| adds slink header More...
|
|
void | addTail (t_SlinkContainer &slink, unsigned int numberOfDataWords) const |
| add Slink tail More...
|
|
StatusCode | saveSlinkObjects (t_SlinkPtr CPRoIROD[TrigT1CaloDefs::numOfCPRoIRODs], t_SlinkPtr jepRoIROD[TrigT1CaloDefs::numOfJEPRoIRODs], const EventContext &ctx) const |
| save Slink Objects to SG More...
|
|
void | formSlinkObjects (t_SlinkPtr CPRoIROD[TrigT1CaloDefs::numOfCPRoIRODs], t_SlinkPtr jepRoIROD[TrigT1CaloDefs::numOfJEPRoIRODs], const EventContext &ctx) const |
| get ROIwords and form Slink words from them, adding header and tail. More...
|
|
void | assignVectors (t_SlinkPtr CPRoIROD[TrigT1CaloDefs::numOfCPRoIRODs], t_SlinkPtr jepRoIROD[TrigT1CaloDefs::numOfJEPRoIRODs]) const |
| Create the object vectors to be stored in SG and clear mult vectors. More...
|
|
std::unique_ptr< LVL1CTP::SlinkWord > | getWord (unsigned int tword) const |
| creates a new SlinkWord object with the passed word, and returns a pointer. More...
|
|
void | dumpSlinks (t_SlinkPtr CPRoIROD[TrigT1CaloDefs::numOfCPRoIRODs]) const |
| prints out the Slink info. 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...
|
|
|
SG::ReadHandleKey< t_cpmTobRoIContainer > | m_emTauRoILocation { this, "EmTauRoILocation", TrigT1CaloDefs::CPMTobRoILocation, "" } |
|
SG::ReadHandleKey< t_jemTobRoIContainer > | m_JetRoILocation { this, "JetRoILocation", TrigT1CaloDefs::JEMTobRoILocation, "" } |
|
SG::ReadHandleKey< t_EnergyRoIContainer > | m_energyRoILocation { this, "EnergyRoILocation", TrigT1CaloDefs::CMXRoILocation, "" } |
|
std::string | m_emTauSlinkLocation |
|
SG::WriteHandleKeyArray< t_SlinkContainer > | m_emTauSlinkKeys { this, "EmTauSlinkKeys", {}, "" } |
|
std::string | m_jepSlinkLocation |
|
SG::WriteHandleKeyArray< t_SlinkContainer > | m_jepSlinkKeys { this, "JEPSlinkKeys", {}, "" } |
|
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 |
|
The RoIROD Athena Algorithm takes the output from the LVL1 Calo Trigger simulations and produces the words, as would be produced by the hardware ReadOut Drivers (RODs); i.e.
-Cluster (Em & Tau) ROD to RoIB
-Jet/Energy ROD to RoIB
Definition at line 53 of file RoIROD.h.
◆ StoreGateSvc_t
◆ t_cpmTobRoIContainer
◆ t_EnergyRoIContainer
◆ t_jemTobRoIContainer
◆ t_SlinkContainer
◆ t_SlinkPtr
◆ RoIROD()
LVL1::RoIROD::RoIROD |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~RoIROD()
LVL1::RoIROD::~RoIROD |
( |
| ) |
|
|
virtual |
◆ addHeader()
void LVL1::RoIROD::addHeader |
( |
t_SlinkContainer & |
slink, |
|
|
unsigned int |
subDetID, |
|
|
unsigned int |
moduleId, |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
private |
adds slink header
adds slink header as defined in DAQ-98-129
Definition at line 163 of file RoIROD.cxx.
168 slink.push_back(
getWord(0xb0f00000));
169 slink.push_back(
getWord(0xee1234ee));
172 unsigned int moduleType=0x00;
173 slink.push_back(
getWord( (moduleType<<16)+(subDetID<<8)+moduleId ));
174 slink.push_back(
getWord(ctx.eventID().event_number()));
◆ addTail()
void LVL1::RoIROD::addTail |
( |
t_SlinkContainer & |
slink, |
|
|
unsigned int |
numberOfDataWords |
|
) |
| const |
|
private |
add Slink tail
Definition at line 181 of file RoIROD.cxx.
188 slink.push_back(
getWord(numberOfDataWords));
191 slink.push_back(
getWord(0xe0f00000 ));
◆ assignVectors()
void LVL1::RoIROD::assignVectors |
( |
t_SlinkPtr |
CPRoIROD[TrigT1CaloDefs::numOfCPRoIRODs], |
|
|
t_SlinkPtr |
jepRoIROD[TrigT1CaloDefs::numOfJEPRoIRODs] |
|
) |
| const |
|
private |
Create the object vectors to be stored in SG and clear mult vectors.
Definition at line 214 of file RoIROD.cxx.
220 CPRoIROD[
i] = std::make_unique<t_SlinkContainer>();
223 jepRoIROD[
i] = std::make_unique<t_SlinkContainer>();
◆ 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()
◆ dumpSlinks()
void LVL1::RoIROD::dumpSlinks |
( |
t_SlinkPtr |
CPRoIROD[TrigT1CaloDefs::numOfCPRoIRODs] | ) |
const |
|
private |
prints out the Slink info.
Definition at line 236 of file RoIROD.cxx.
240 <<
" has "<<(CPRoIROD[slink]->
size())<<
" words");
242 i!=CPRoIROD[slink]->end();++
i){
243 ATH_MSG_INFO(
"Word :"<<MSG::hex<<(*i)->word()<<MSG::dec);
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode LVL1::RoIROD::execute |
( |
const EventContext & |
ctx | ) |
const |
|
overridevirtual |
there are 4 CP RoI RODs which have a Slink cable connected to the RoIB. This array holds pointers to 4 DataVectors containing the Slink words
there are 2 Jet RoI RODs which have a Slink cable connected to the RoIB. This array holds pointers to 2 DataVectors containing the Slink words
Definition at line 82 of file RoIROD.cxx.
97 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 LVL1::RoIROD::finalize |
( |
| ) |
|
|
overridevirtual |
Definition at line 70 of file RoIROD.cxx.
73 return StatusCode::SUCCESS ;
◆ formSlinkObjects()
void LVL1::RoIROD::formSlinkObjects |
( |
t_SlinkPtr |
CPRoIROD[TrigT1CaloDefs::numOfCPRoIRODs], |
|
|
t_SlinkPtr |
jepRoIROD[TrigT1CaloDefs::numOfJEPRoIRODs], |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
private |
get ROIwords and form Slink words from them, adding header and tail.
Set SLink headers
Retrieve CPMTobRoIs and copy data to SLink vectors
Push TOBs to ROD vectors This version makes no attempt to order them.
Retrieve JEMTobRoIs and copy data to SLink vectors
Push TOBs to ROD vectors This version makes no attempt to order them.
Retrieve EnergySum RoI(s) and add to SLink record
Add 6 ET RoIWords to crate 1 ROD data.
Set SLink tails
Definition at line 101 of file RoIROD.cxx.
122 int crate = tau->crate();
123 CPRoIROD[crate]->push_back(
getWord(tau->roiWord()) );
133 int crate =
jet->crate();
134 jepRoIROD[crate]->push_back(
getWord(
jet->roiWord()) );
150 const unsigned int headerWords=8+1;
◆ getWord()
creates a new SlinkWord object with the passed word, and returns a pointer.
Definition at line 229 of file RoIROD.cxx.
231 return std::make_unique<LVL1CTP::SlinkWord>(tword);
◆ initialize()
StatusCode LVL1::RoIROD::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 44 of file RoIROD.cxx.
62 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()
◆ saveSlinkObjects()
StatusCode LVL1::RoIROD::saveSlinkObjects |
( |
t_SlinkPtr |
CPRoIROD[TrigT1CaloDefs::numOfCPRoIRODs], |
|
|
t_SlinkPtr |
jepRoIROD[TrigT1CaloDefs::numOfJEPRoIRODs], |
|
|
const EventContext & |
ctx |
|
) |
| const |
|
private |
save Slink Objects to SG
Definition at line 195 of file RoIROD.cxx.
209 return StatusCode::SUCCESS;
◆ 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()
◆ m_detStore
◆ m_emTauRoILocation
◆ m_emTauSlinkKeys
◆ m_emTauSlinkLocation
std::string LVL1::RoIROD::m_emTauSlinkLocation |
|
private |
◆ m_energyRoILocation
◆ 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_jepSlinkKeys
◆ m_jepSlinkLocation
std::string LVL1::RoIROD::m_jepSlinkLocation |
|
private |
◆ m_JetRoILocation
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
SG::ReadHandleKey< t_EnergyRoIContainer > m_energyRoILocation
std::string m_jepSlinkLocation
SG::WriteHandleKeyArray< t_SlinkContainer > m_jepSlinkKeys
JEMTobRoI_v1 JEMTobRoI
Define the latest version of the JEMTobRoI class.
void addTail(t_SlinkContainer &slink, unsigned int numberOfDataWords) const
add Slink tail
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
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)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
static const unsigned int numOfJEPRoIRODs
void addHeader(t_SlinkContainer &slink, unsigned int subDetID, unsigned int moduleId, const EventContext &ctx) const
adds slink header
virtual void setOwner(IDataHandleHolder *o)=0
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
(Non-const) Iterator class for DataVector/DataList.
static const std::string EmTauSlinkLocation
static const std::string jepSlinkLocation
StatusCode saveSlinkObjects(t_SlinkPtr CPRoIROD[TrigT1CaloDefs::numOfCPRoIRODs], t_SlinkPtr jepRoIROD[TrigT1CaloDefs::numOfJEPRoIRODs], const EventContext &ctx) const
save Slink Objects to SG
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
SG::ReadHandleKey< t_cpmTobRoIContainer > m_emTauRoILocation
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
std::unique_ptr< t_SlinkContainer > t_SlinkPtr
std::unique_ptr< LVL1CTP::SlinkWord > getWord(unsigned int tword) const
creates a new SlinkWord object with the passed word, and returns a pointer.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::string m_emTauSlinkLocation
SG::ReadHandleKey< t_jemTobRoIContainer > m_JetRoILocation
void formSlinkObjects(t_SlinkPtr CPRoIROD[TrigT1CaloDefs::numOfCPRoIRODs], t_SlinkPtr jepRoIROD[TrigT1CaloDefs::numOfJEPRoIRODs], const EventContext &ctx) const
get ROIwords and form Slink words from them, adding header and tail.
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
virtual StatusCode sysInitialize() override
Override sysInitialize.
static const unsigned int numOfCPRoIRODs
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
SG::WriteHandleKeyArray< t_SlinkContainer > m_emTauSlinkKeys
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
CPMTobRoI_v1 CPMTobRoI
Define the latest version of the CPMTobRoI class.
void assignVectors(t_SlinkPtr CPRoIROD[TrigT1CaloDefs::numOfCPRoIRODs], t_SlinkPtr jepRoIROD[TrigT1CaloDefs::numOfJEPRoIRODs]) const
Create the object vectors to be stored in SG and clear mult vectors.