|
ATLAS Offline Software
|
Go to the documentation of this file.
63 if(fAssoc != this->
end() && !(*fAssoc)->isMisc())
64 return std::distance<const_iterator>(this->
begin(),fAssoc);
76 while ( fAssoc != lAssoc && !(*fAssoc)->isMisc() && (*fAssoc)->refJet() != pJet ) { ++fAssoc; }
84 while ( fAssoc != lAssoc && !(*fAssoc)->isMisc() && (*fAssoc)->refJet() != pJet ) { ++fAssoc; }
105 std::vector<ElementLink<IParticleContainer> > jetconst = pJet->
constituentLinks();
120 iEL!=constLinks.end(); ++iEL) {
175 if (*(jConstMap->first)==*constLink) iConstMap = jConstMap;
179 index = iConstMap->second;
181 std::advance<const_iterator>(fAssoc,
index);
190 while ( rIter != fAssoc && !(*rIter)->isMisc() ) { ++rIter; }
198 while ( rIter != fAssoc && !(*rIter)->isMisc() ) { ++rIter; }
204 bool foundOverlaps(
false);
206 foundOverlaps |= (*iAssoc)->identifyOverlaps();
208 return foundOverlaps;
214 (*iAssoc)->clearOverlaps();
222 iSig!=
signals->end(); ++iSig) {
288 if(!(*
this)[assocIndex]->checkUsage(
helper,
sig,
p)) {
bool setJetConstituents(const Jet *pJet)
Set constituent map for a jet.
size_t findIndexByJetConst(const IParticle *pConst) const
std::map< ElementLink< IParticleContainer >, size_t > m_jetConstLinks
Map jet constituents to the jet index.
Const iterator class for DataVector/DataList.
@ TruthParticle
Truth particle based.
MET association descriptor contains object links and corresponding parameters.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
const IParticleContainer * getOverlapRemovedSignals(const MissingETAssociationHelper &helper, const IParticleContainer *signals, MissingETBase::UsageHandler::Policy p=MissingETBase::UsageHandler::TrackCluster) const
Extract a container of constituents that do not overlap physics objects.
const_reverse_iterator rend() const noexcept
Return a const_reverse_iterator pointing at the beginning of the collection.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
bool containsSignal(const IParticle *pSig) const
Check if this signal object matches the constituents of any contributing objects.
static size_t invalidIndex()
Access invalid index indicator.
@ OnlyCluster
CaloCluster based only.
Class providing the definition of the 4-vector interface.
const_iterator f_findConst(const Jet *pJet) const
Find contribution by reference jet pointer.
static bool testPolicy(const xAOD::IParticle &part, MissingETBase::UsageHandler::Policy p)
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
const DV * asDataVector() const
Return a pointer to this object, as a const DataVector.
OwnershipPolicy
describes the possible element ownership policies (see e.g. DataVector)
TrackParticle_v1 TrackParticle
Reference the current persistent version:
MissingETAssociationMap_v1(SG::OwnershipPolicy own=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
Default constructor.
std::reverse_iterator< iterator > reverse_iterator
Standard reverse_iterator.
void f_clearJetConstMap()
void f_setJetConstMap(std::map< ElementLink< IParticleContainer >, size_t > map)
size_t findIndex(const Jet *pJet) const
virtual ~MissingETAssociationMap_v1()
Base class destructor.
(Non-const) Iterator class for DataVector/DataList.
ConstDataVector< xAOD::IParticleContainer > const_signal_vector_t
const_iterator find(const Jet *pJet) const
Find association from jet pointer.
FlowElement_v1 FlowElement
Definition of the current "pfo version".
const IParticleContainer * getUniqueSignals(const IParticleContainer *signals, MissingETBase::UsageHandler::Policy p=MissingETBase::UsageHandler::TrackCluster) const
Extract a container of constituents that are not in jets.
TruthParticle_v1 TruthParticle
Typedef to implementation.
@ ParticleFlow
The object is a particle-flow object.
const_iterator findByJetConst(const IParticle *pConst) const
Find association from jet constituent.
const MissingETAssociation_v1 * getMiscAssociation() const
Get an association for miscellaneous objects not associated to jets.
size_t index() const
Return the index of this element within its container.
xAOD::Type::ObjectType signalToXAODType(const xAOD::FlowElement &fe)
const_reverse_iterator rbegin() const noexcept
Return a const_reverse_iterator pointing past the end of the collection.
@ TrackCluster
Both cluster and track based.
const std::vector< ElementLink< IParticleContainer > > & constituentLinks() const
Direct access to constituents. WARNING expert use only.
Policy
Policies on usage checks.
@ AllCalo
Inclusive except tracks.
iterator f_find(const Jet *pJet)
std::reverse_iterator< const_iterator > const_reverse_iterator
Standard const_reverse_iterator.
@ OnlyTrack
Track based only.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
bool identifyOverlaps()
Do overlap-finding in all associations.
@ ParticleFlow
Particle Flow Object based.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
DataVector adapter that acts like it holds const pointers.
bool checkUsage(const MissingETAssociationHelper &helper, const IParticle *pSig, MissingETBase::UsageHandler::Policy p) const
Check if this signal object matches the constituents of any flagged contributing objects.
const SG::AuxVectorData * container() const
Return the container holding this element.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
A detector object made of other lower level object(s)