|
ATLAS Offline Software
|
Go to the documentation of this file.
12 m_jetAuthor(
Jet::s_defaultJetAuthor),
13 m_nextId(
Jet::s_defaultJetId+1),
14 m_keyDescInstance(false),
16 m_fastjetClustSeq(nullptr)
33 (*it)->m_collection =
nullptr;
48 std::string mapname =
author();
49 mapname +=
"MomentMap";
114 std::string viewS =
"";
120 size_t oldId = j->
id();
152 std::cout <<
" JetCollection ERROR attempt to record in SG with key ="<<
key <<
" while author ="<<
author() <<
" both should be the same."<< std::endl;
164 if ( this->
at(id_)->m_collection !=
this)
return;
static const size_t s_defaultJetAuthor
JetKeyDescriptor * m_Stores
void toIdentifiedObject(const ID_type &dataID, IProxyDict *sg=0)
Set the link to an object given by a string key.
const shape_map_t * getMomentMap(bool addIfMissing) const
JetKeyDescriptorInstance * keyDesc() const
Basic data class defines behavior for all Jet objects The Jet class is the principal data class for...
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
JetCollection(SG::OwnershipPolicy own=SG::OWN_ELEMENTS)
static JetKeyDescriptorInstance * instance()
OwnershipPolicy
describes the possible element ownership policies (see e.g. DataVector)
size_t id() const
returns this jet unique identifier in its collection
virtual void transferRecord(const JetMapBase< P > *fromMap, size_t oldIndex, size_t newIndex) const
transfer a record from an other map
std::string getMomentMapName() const
void createKeyStore() const
const JetCollection * parentCollection() const
a pointer to the collection this jet belongs to (can be NULL)
void resetJetId(std::size_t)
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current JetMomentMap
@ OWN_ELEMENTS
this data object owns its elements
JetKeyDescriptorInstance m_keyDescInstance
This JetKeyDescriptorInstance points by default to the global JetKeyDescriptorInstance's store....
size_t m_nextId
the next free identifier for jets inside this collection
size_t m_jetAuthor
the author of this jetcollection.
iterator insert(iterator position, value_type pElem)
Add a new element to the collection.
std::string jetAuthor() const
Author and calibration history are encoded in a simple way inside the jet object.
bool isValid() const
Test to see if the link is dereferencable.
const key_t & getKey(const category_t &cat, size_t index) const
const JetCollection * m_collection
Shape store link.
void clear()
Erase all the elements in the collection.
DataLink< JetMomentMap > m_momentMapLink
static const key_t InfoCat
Index category for general jet info.
void setAuthor(const std::string &author)
size_t m_jetAuthor
Jet author store.
std::string author() const
const_pointer cptr() const
Dereference the link.
void toStorableObject(const_reference data, IProxyDict *sg=0)
Set the link to an object given by a reference.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
bool m_ownMap
false if the map is recorded in SG
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const JetMomentMap * getMomentMap() const
iterator insert(iterator position, Jet *j)
static const size_t s_defaultJetId
SG::OwnershipPolicy ownPolicy() const
Return the ownership policy setting for this container.
size_t getIndex(const category_t &cat, const key_t &key, bool createIfMissing=true)
const Jet * at(size_type n) const
Access an element, as an rvalue.
SG::OwnershipPolicy m_ownPolicy
DataVector< Jet >::iterator iterator
void recordedInSG(std::string key)
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
const JetKeyDescriptor * m_ConstStores