![]() |
ATLAS Offline Software
|
#include <JetMomentMap.h>
Public Types | |
| typedef JetMoment::float_t | float_t |
| typedef JetMoment::tag_t | tag_t |
| typedef JetMoment::MomentData | data_t |
| typedef JetMapBase< data_t > | base_t |
| typedef base_t::map_t | map_t |
| typedef base_t::record_t | record_t |
| typedef size_t | key_t |
| Publish key type. | |
Public Member Functions | |
| virtual bool | setMoment (size_t jetIndex, size_t keyIndex, float_t moment) |
| virtual bool | setMoment (size_t jetIndex, size_t keyIndex, float_t moment) const |
| virtual bool | getMoment (size_t jetIndex, size_t keyIndex, float_t &moment) const |
| virtual float_t | getMoment (size_t jetIndex, size_t keyIndex) const |
| void | access () const |
| virtual bool | addRecord (size_t jetIndex) const |
| Add a record. | |
| virtual const record_t * | getRecord (size_t jetIndex) const |
| get the full record for a given jet | |
| virtual void | assignRecord (size_t jetIndex, record_t *rec) const |
| assign a given record to a given jet | |
| virtual void | addData (size_t jetIndex, size_t keyIndex, const data_t &data) const |
| Add data. | |
| virtual bool | retrieveData (size_t jetIndex, size_t keyIndex, data_t &data) const |
| Retrieve data. | |
| virtual const data_t & | accessData (size_t jetIndex, size_t keyIndex) const |
| virtual size_t | numberOfMoments (size_t jetIndex) const |
| virtual void | clear () |
| SG::OwnershipPolicy | ownPolicy () |
| size_t | getNewId () |
Static Public Attributes | |
| static OrphanJetMomentMap | instance |
Protected Member Functions | |
| virtual void | removeRecord (size_t jetIndex) const |
| remove a record | |
| virtual void | transferRecord (const JetMapBase< JetMoment::MomentData > *fromMap, size_t oldIndex, size_t newIndex) const |
| transfer a record from an other map | |
| map_t & | map () |
| void | reset () |
Protected Attributes | |
| map_t | m_store |
| Store last valid record index / mutable size_t m_lastIndex; not used so remove it for simplicity /! | |
| SG::OwnershipPolicy | m_ownPolicy |
| size_t | m_counter {} |
Static Protected Attributes | |
| static const data_t | m_nullData |
| Null data reference. | |
Friends | |
| class | JetGlobalEventSetup |
Definition at line 55 of file JetMomentMap.h.
|
inherited |
Definition at line 30 of file JetMomentMap.h.
|
inherited |
Definition at line 29 of file JetMomentMap.h.
|
inherited |
Definition at line 27 of file JetMomentMap.h.
|
inherited |
Publish key type.
Definition at line 50 of file JetMapBase.h.
|
inherited |
Definition at line 31 of file JetMomentMap.h.
|
inherited |
Definition at line 32 of file JetMomentMap.h.
|
inherited |
Definition at line 28 of file JetMomentMap.h.
|
inlineinherited |
Definition at line 45 of file JetMomentMap.h.
|
virtualinherited |
|
virtualinherited |
Add data.
This method adds data to an existing record.
| jetIndex | index of the record in the store |
| keyIndex | index of the data in the record |
| data | reference to non-mdoifiable data to be stored in record |
Note that this method will overwrite any previously stored data at the (jetIndex,keyIndex) position.
|
virtualinherited |
Add a record.
This method adds a record to the store and returns the index of this record to the client. The returned value is false if the record already existed
| JetIndex | reference to modifiable index, will contain the last index in the store. |
|
virtualinherited |
assign a given record to a given jet
The map will 'own' the given record : it will delete it when destructed. If a record already exist at jetIndex, it will be deleted.
| jetIndex | index of the record in the store |
| rec | pointer to the record to store. |
|
virtualinherited |
|
virtualinherited |
Definition at line 44 of file JetMomentMap.cxx.
|
virtualinherited |
Definition at line 34 of file JetMomentMap.cxx.
|
inlineinherited |
Definition at line 171 of file JetMapBase.h.
|
virtualinherited |
get the full record for a given jet
|
protectedinherited |
|
virtualinherited |
|
inlineinherited |
Definition at line 127 of file JetMapBase.h.
|
protectedvirtualinherited |
remove a record
Destroy the record associated to an entry.
| jetIndex | identifier of the record to remove |
|
inlineprotectedinherited |
Definition at line 174 of file JetMapBase.h.
|
virtualinherited |
Retrieve data.
Retrieves data by index pair and stores result in client supplied variable. Returns false if index pair (jetIndex,keyIndex) refers to non-existing entry, i.e. at least one of (jetIndex,keyIndex) is out of range.
| jetIndex | index of record in store |
| keyIndex | index of data in record |
| data | reference to modifiable variable storing retrieved data |
Note that in case of an invalid index pair the original value of data is not changed.
|
virtualinherited |
Definition at line 18 of file JetMomentMap.cxx.
|
virtualinherited |
Definition at line 26 of file JetMomentMap.cxx.
|
protectedvirtualinherited |
transfer a record from an other map
| fromMap | pointer to the other map |
| oldIndex | identifier of the record in the other map |
| newIndex | the identifier in this map |
|
friend |
Definition at line 57 of file JetMomentMap.h.
|
static |
Definition at line 59 of file JetMomentMap.h.
|
protectedinherited |
Definition at line 176 of file JetMapBase.h.
|
staticprotectedinherited |
Null data reference.
Definition at line 162 of file JetMapBase.h.
|
protectedinherited |
Definition at line 166 of file JetMapBase.h.
|
mutableprotectedinherited |
Store last valid record index / mutable size_t m_lastIndex; not used so remove it for simplicity /!
Data store
Definition at line 160 of file JetMapBase.h.