ATLAS Offline Software
JetMomentMapManager.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
9 
11 
12  if (m != &OrphanJetMomentMap::instance ) m_maps.insert(m);
13 }
14 
16  if(m_noRemoveMode) return;
17  JetMomentMap* map = const_cast<JetMomentMap*>(m);
19  if( it != m_maps.end() ) m_maps.erase(it);
20 
21 }
22 
24  clear();
25 }
29 
30  m_noRemoveMode = true; // we don't remove anything now (be sure itE doesn't get wrong)
31  for(;it !=itE;++it) {
32  delete *it;
33  }
34  m_noRemoveMode = false;
35  m_maps.clear();
36 }
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
JetMomentMap
Definition: JetMomentMap.h:21
JetMomentMap.h
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
JetMomentMapManager.h
skel.it
it
Definition: skel.GENtoEVGEN.py:396
JetMomentMapManager::~JetMomentMapManager
~JetMomentMapManager()
Definition: JetMomentMapManager.cxx:23
JetMomentMapManager::m_noRemoveMode
bool m_noRemoveMode
Definition: JetMomentMapManager.h:40
TruthTest.itE
itE
Definition: TruthTest.py:25
OrphanJetMomentMap::instance
static OrphanJetMomentMap instance
Definition: JetMomentMap.h:59
JetMomentMapManager::remove
void remove(const JetMomentMap *m)
Definition: JetMomentMapManager.cxx:15
JetMomentMapManager::add
void add(JetMomentMap *m)
Definition: JetMomentMapManager.cxx:10
JetMomentMapManager::s_instance
static JetMomentMapManager s_instance
Definition: JetMomentMapManager.h:36
JetMomentMapManager
////////////////////////////////////////
Definition: JetMomentMapManager.h:28
JetMomentMapManager::m_maps
std::set< JetMomentMap * > m_maps
Definition: JetMomentMapManager.h:38
JetMomentMapManager::clear
void clear()
Definition: JetMomentMapManager.cxx:26