35 for(;it != itE; ++it){
36 (*it)->m_collection =
nullptr;
51 std::string mapname =
author();
52 mapname +=
"MomentMap";
71 map->m_ownPolicy = m_ownPolicy;
117 std::string viewS =
"";
123 size_t oldId = j->
id();
155 std::cout <<
" JetCollection ERROR attempt to record in SG with key ="<< key <<
" while author ="<<
author() <<
" both should be the same."<< std::endl;
167 if ( this->
at(id_)->m_collection !=
this)
return;
Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Current JetMomentMap
const Jet * at(size_type n) const
value_type push_back(value_type pElem)
Add an element to the end of the collection.
iterator insert(iterator position, value_type pElem)
Add a new element to the collection.
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
const_iterator end() const noexcept
const_iterator begin() const noexcept
SG::OwnershipPolicy ownPolicy() const
void clear()
Erase all the elements in the collection.
size_t m_nextId
the next free identifier for jets inside this collection
std::string getMomentMapName() const
const fastjet::ClusterSequence * m_fastjetClustSeq
Pointer to the fastjet object this jet is build from.
bool m_ownMap
false if the map is recorded in SG
iterator insert(iterator position, Jet *j)
void setAuthor(const std::string &author)
std::string author() const
JetKeyDescriptorInstance m_keyDescInstance
This JetKeyDescriptorInstance points by default to the global JetKeyDescriptorInstance's store....
void resetJetId(std::size_t)
DataLink< JetMomentMap > m_momentMapLink
void recordedInSG(std::string key)
JetCollection(SG::OwnershipPolicy own=SG::OWN_ELEMENTS)
const JetMomentMap * getMomentMap() const
size_t m_jetAuthor
the author of this jetcollection.
DataVector< Jet >::iterator iterator
JetKeyDescriptorInstance * keyDesc() const
Theses classes implement a mapping between string and index used by jets.
const JetKeyDescriptor * m_ConstStores
JetKeyDescriptor * m_Stores
static JetKeyDescriptorInstance * instance()
size_t getIndex(const category_t &cat, const key_t &key, bool createIfMissing=true)
const key_t & getKey(const category_t &cat, size_t index) const
virtual void transferRecord(const JetMapBase< P > *fromMap, size_t oldIndex, size_t newIndex) const
transfer a record from an other map
size_t id() const
Index category for jet shapes.
const shape_map_t * getMomentMap(bool addIfMissing) const
std::string jetAuthor() const
Author and calibration history are encoded in a simple way inside the jet object.
size_t m_jetAuthor
Jet author store.
const JetCollection * parentCollection() const
a pointer to the collection this jet belongs to (can be NULL)
static const size_t s_defaultJetId
static const size_t s_defaultJetAuthor
const JetCollection * m_collection
Shape store link.
@ OWN_ELEMENTS
this data object owns its elements
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
static const key_t InfoCat
Index category for general jet info.