ATLAS Offline Software
|
#include <L1JEMJetTools.h>
Public Member Functions | |
L1JEMJetTools (const std::string &, const std::string &, const IInterface *) | |
virtual StatusCode | initialize () override |
standard Athena-Algorithm method More... | |
virtual StatusCode | finalize () override |
standard Athena-Algorithm method More... | |
virtual void | mapJetInputs (const xAOD::JetElementContainer *jes, std::map< int, JetInput * > *elements, int slice=-1) const override |
Convert user-supplied JetElements to map of JetInputs. More... | |
virtual void | findRoIs (const std::map< int, JetInput * > *elements, xAOD::JEMTobRoIContainer *rois) const override |
Return vector of TOB RoI objects derived from user-specified inputs. More... | |
virtual void | findRoIs (const xAOD::JetElementContainer *jes, xAOD::JEMTobRoIContainer *rois, int slice=-1) const override |
Find list of RoIs passing at least 1 threshold. More... | |
virtual void | findRoIs (const std::map< int, JetInput * > *elements, DataVector< JEMJetAlgorithm > *rois) const override |
Return vector of RoI objects derived from user-specified inputs. More... | |
virtual void | findRoIs (const xAOD::JetElementContainer *jes, DataVector< JEMJetAlgorithm > *rois, int slice=-1) const override |
Find list of RoIs passing at least 1 threshold. More... | |
virtual void | findJEMResults (const std::map< int, JetInput * > *inputs, int crate, int module, xAOD::JEMTobRoIContainer *rois, std::vector< unsigned int > &jetCMXData) const override |
Form JEM results for specified crate/module using user-supplied map of input towers Adds to DataVector of JEMTobRoI and returns backplane data words. More... | |
virtual void | findJEMResults (const std::map< int, JetInput * > *inputs, int crate, int module, DataVector< JEMTobRoI > *rois, std::vector< unsigned int > &jetCMXData) const override |
Form JEM results for specified crate/module using user-supplied map of input towers Adds to DataVector of JEMTobRoI and returns backplane data words. More... | |
virtual JEMJetAlgorithm | findRoI (double RoIeta, double RoIphi, const std::map< int, JetInput * > *elements) const override |
Return RoI object for specified location. More... | |
virtual JEMJetAlgorithm | formSums (double RoIeta, double RoIphi, const std::map< int, JetInput * > *elements) const override |
Form jet cluster sums for a given RoI location. More... | |
virtual JEMJetAlgorithm | formSums (uint32_t roiWord, const std::map< int, JetInput * > *elements) const override |
=====================Form clusters for given RoI ==================== More... | |
Private Attributes | |
const TrigConf::L1Menu * | m_l1menu {nullptr} |
JEPRoIDecoder | m_conv |
Utility for decoding RoI words. More... | |
This is a tool to reconstruct the L1 Jet trigger sums for a particular RoI location from the stored JetInputs. Used for offline monitoring and trigger reconstruction.
Definition at line 44 of file L1JEMJetTools.h.
LVL1::L1JEMJetTools::L1JEMJetTools | ( | const std::string & | t, |
const std::string & | n, | ||
const IInterface * | p | ||
) |
Definition at line 23 of file L1JEMJetTools.cxx.
|
overridevirtual |
standard Athena-Algorithm method
Definition at line 36 of file L1JEMJetTools.cxx.
|
overridevirtual |
Form JEM results for specified crate/module using user-supplied map of input towers Adds to DataVector of JEMTobRoI and returns backplane data words.
This tool appends to an existing DataVector of results, so do not clear that. But reset & resize the module results vectors, to be safe
Count RoIs (for correct filling of backplane words)
Loop over all reference elements in order of TOB readout. As only 1 TOB possible per frame, order within these doesn't matter
If want to be clever and test whether worth proceeding before evaluating window, this would be the place to put the test
Form algorithm object for this location
Did it pass as JetTOB? If so: Create TOB RoI object and push back into system results Add bit to presence map Add TOB to backplane data (if not overflowed)
Definition at line 357 of file L1JEMJetTools.cxx.
|
overridevirtual |
Form JEM results for specified crate/module using user-supplied map of input towers Adds to DataVector of JEMTobRoI and returns backplane data words.
Form results for a specified module.
This tool appends to an existing DataVector of results, so do not clear that. But reset & resize the module results vectors, to be safe
Count RoIs (for correct filling of backplane words)
Loop over all reference elements in order of TOB readout. As only 1 TOB possible per frame, order within these doesn't matter
If want to be clever and test whether worth proceeding before evaluating window, this would be the place to put the test
Form algorithm object for this location
Did it pass as JetTOB? If so: Create TOB RoI object and push back into system results Add bit to presence map Add TOB to backplane data (if not overflowed)
Definition at line 249 of file L1JEMJetTools.cxx.
|
overridevirtual |
Return RoI object for specified location.
Form RoI object for specified coordinate.
Definition at line 465 of file L1JEMJetTools.cxx.
|
overridevirtual |
Return vector of RoI objects derived from user-specified inputs.
Find list of RoIs passing at least 1 threshold.
JetElements can be multi-slice
Now step through JetInput map
Each element could be reference element of 4 RoIs
But need to ensure we don't double count, so we use
a std::map to keep track of which RoIs already exist
We also use KeyUtilities to find neighbours (to allow
for the variable sizes of JetInputs)
Definition at line 121 of file L1JEMJetTools.cxx.
|
overridevirtual |
Return vector of TOB RoI objects derived from user-specified inputs.
Find list of RoIs passing at least 1 threshold.
JetElements can be multi-slice
Now step through JetInput map
Each element could be reference element of 4 RoIs
But need to ensure we don't double count, so we use
a std::map to keep track of which RoIs already exist
We also use KeyUtilities to find neighbours (to allow
for the variable sizes of JetInputs)
Definition at line 184 of file L1JEMJetTools.cxx.
|
overridevirtual |
Find list of RoIs passing at least 1 threshold.
Need a map of JetInputs as input
Now find the RoIs in this map
Clean up JetInputs
Definition at line 164 of file L1JEMJetTools.cxx.
|
overridevirtual |
Find list of RoIs passing at least 1 threshold.
Need a map of JetInputs as input
Now find the RoIs in this map
Clean up JetInputs
Definition at line 229 of file L1JEMJetTools.cxx.
|
overridevirtual |
Form jet cluster sums for a given RoI location.
=====================Form clusters for given coordinates ====================
Definition at line 471 of file L1JEMJetTools.cxx.
|
overridevirtual |
=====================Form clusters for given RoI ====================
Definition at line 478 of file L1JEMJetTools.cxx.
|
overridevirtual |
|
overridevirtual |
Convert user-supplied JetElements to map of JetInputs.
Can specify which time slice of data to use
Fill map from DataVector
Definition at line 43 of file L1JEMJetTools.cxx.
|
private |
Utility for decoding RoI words.
Definition at line 88 of file L1JEMJetTools.h.
|
private |
Definition at line 85 of file L1JEMJetTools.h.