|
ATLAS Offline Software
|
Algorithm fixing the muon RoI information in the data.
More...
#include <MuCTPI_RDOToRoIBResult.h>
|
| MuCTPI_RDOToRoIBResult (const std::string &name, ISvcLocator *pSvcLocator) |
| Regular algorithm constructor. More...
|
|
virtual StatusCode | execute () override |
| Regular algorithm execure function. More...
|
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
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 |
|
|
static uint32_t | multiplicityBCID (uint32_t multi_word) |
| Extract the BCID stored in the multiplicity word. More...
|
|
static uint32_t | toRoIWord (uint32_t data_word) |
| Transform a data word into an RoI word. More...
|
|
static uint32_t | roiBCID (uint32_t data_word) |
| Extract the BCID stored in the data word. More...
|
|
static bool | roiAccepted (uint32_t data_word) |
| Extract whether the candidate was accepted to be sent to LVL2. More...
|
|
Algorithm fixing the muon RoI information in the data.
This algorithm can create a fixed ROIB::RoIBResult object from the
incorrect object in the data, plus the MuCTPI_RDO readout data.
- Author
- Attila Krasznahorkay Jr.
- Revision
- 275499
- Date
- 2010-01-27 19:25:00 +0100 (Wed, 27 Jan 2010)
Definition at line 27 of file MuCTPI_RDOToRoIBResult.h.
◆ StoreGateSvc_t
◆ MuCTPI_RDOToRoIBResult()
MuCTPI_RDOToRoIBResult::MuCTPI_RDOToRoIBResult |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ 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);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ 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.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ 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.
338 return PBASE::declareProperty(
name, property,
doc);
◆ 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 MuCTPI_RDOToRoIBResult::execute |
( |
| ) |
|
|
overridevirtual |
Regular algorithm execure function.
Definition at line 31 of file MuCTPI_RDOToRoIBResult.cxx.
53 std::vector< ROIB::MuCTPIRoI > roi_vector;
61 std::vector< uint32_t >::const_iterator dword_itr = muctpi_rdo->
dataWord().begin();
62 std::vector< uint32_t >::const_iterator dword_end = muctpi_rdo->
dataWord().end();
63 for( ; dword_itr != dword_end; ++dword_itr ) {
71 ATH_MSG_VERBOSE(
" - Processed data word: 0x" << std::hex << std::setw( 8 )
72 << std::setfill(
'0' ) << *dword_itr );
80 std::move(roi_vector) );
88 std::vector< ROIB::EMTauResult >(roibresult->
eMTauResult()) );
93 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()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ 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.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ multiplicityBCID()
uint32_t MuCTPI_RDOToRoIBResult::multiplicityBCID |
( |
uint32_t |
multi_word | ) |
|
|
staticprivate |
Extract the BCID stored in the multiplicity word.
- Parameters
-
multi_word | Multiplicity word from the MuCTPI_RDO object |
- Returns
- The BCID stored in the multiplicity word
Definition at line 100 of file MuCTPI_RDOToRoIBResult.cxx.
102 return ( ( multi_word >> 18 ) & 0x7 );
◆ 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()
◆ roiAccepted()
bool MuCTPI_RDOToRoIBResult::roiAccepted |
( |
uint32_t |
data_word | ) |
|
|
staticprivate |
Extract whether the candidate was accepted to be sent to LVL2.
- Parameters
-
- Returns
true
if the candidate was destined to go to LVL2, false
otherwise
Definition at line 129 of file MuCTPI_RDOToRoIBResult.cxx.
131 return ( ( data_word >> 26 ) & 0
x1 );
◆ roiBCID()
uint32_t MuCTPI_RDOToRoIBResult::roiBCID |
( |
uint32_t |
data_word | ) |
|
|
staticprivate |
Extract the BCID stored in the data word.
- Parameters
-
- Returns
- the BCID stored in the data word
Definition at line 119 of file MuCTPI_RDOToRoIBResult.cxx.
121 return ( ( data_word >> 14 ) & 0x7 );
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ toRoIWord()
uint32_t MuCTPI_RDOToRoIBResult::toRoIWord |
( |
uint32_t |
data_word | ) |
|
|
staticprivate |
Transform a data word into an RoI word.
- Parameters
-
- Returns
- The RoI word created from the data word
Definition at line 109 of file MuCTPI_RDOToRoIBResult.cxx.
111 return ( ( ( data_word & 0x8000000 ) >> 4 ) | ( ( data_word & 0x3fe0000 ) >> 3 ) |
112 ( data_word & 0x3fff ) );
◆ updateVHKA()
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_muctpiInputKey
std::string MuCTPI_RDOToRoIBResult::m_muctpiInputKey |
|
private |
◆ m_roibInputKey
std::string MuCTPI_RDOToRoIBResult::m_roibInputKey |
|
private |
◆ m_roibOutputKey
std::string MuCTPI_RDOToRoIBResult::m_roibOutputKey |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
std::string m_roibInputKey
Key of the old (incorrect) RoIBResult object.
std::string m_muctpiInputKey
Key of the MuCTPI_RDO object.
static uint32_t toRoIWord(uint32_t data_word)
Transform a data word into an RoI word.
static bool roiAccepted(uint32_t data_word)
Extract whether the candidate was accepted to be sent to LVL2.
Class holding the LVL1 RoIB result build by the RoIBuilder.
const std::vector< JetEnergyResult > & jetEnergyResult() const
Gets the jet/energy part of the L1 RDO.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string m_roibOutputKey
Key of the new (correct) RoIBResult object.
const std::vector< EMTauResult > & eMTauResult() const
Gets the egamma part of the L1 RDO.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
const Header & header() const
Member function returning the header.
Class for storing the 32-bit muon RoI word.
Class holding the LVL1 CTP result used by the RoIBuilder.
#define ATH_MSG_VERBOSE(x)
static uint32_t roiBCID(uint32_t data_word)
Extract the BCID stored in the data word.
virtual void setOwner(IDataHandleHolder *o)=0
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
uint32_t candidateMultiplicity() const
Function returning the candidate multiplicity for the triggered bunch crossing.
virtual StatusCode sysInitialize() override
Override sysInitialize.
static uint32_t multiplicityBCID(uint32_t multi_word)
Extract the BCID stored in the multiplicity word.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
const Trailer & trailer() const
Member function returning the trailer.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Class holding the RoIs from the MuCTPI collected by the RoIB.
const CTPResult & cTPResult() const
Gets the CTP part of the L1 RDO.
ROIB::Trailer models the LVL1 ROD Trailer.
setEventNumber setTimeStamp bcid
Class representing the readout data of the MuCTPI hardware and simulation.
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
const MuCTPIResult & muCTPIResult() const
Gets the MuCTPI part of the L1 RDO.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
const std::vector< uint32_t > & dataWord() const
Function returning the muon candidate data words.