ATLAS Offline Software
Loading...
Searching...
No Matches
ISFParticleOrderedQueue.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6// ISFParticleOrderedQueue.h, (c) ATLAS Detector software
8//
9#ifndef ISF_EVENT_ISFPARTICLEORDEREDQUEUE_H
10#define ISF_EVENT_ISFPARTICLEORDEREDQUEUE_H
11
12// STL includes
13#include <queue>
14
15// ISF includes
18
20
21namespace ISF {
24 bool operator()(ISF::ISFParticle *lhs, ISF::ISFParticle *rhs) { return lhs->getOrder() < rhs->getOrder(); }
25 };
26
28 typedef std::priority_queue<ISF::ISFParticle *, ISF::ISFParticleVector, ISF::ISFParticleOrdering > ISFParticleOrderedQueue;
29}
30
31#endif // ISF_EVENT_ISFPARTICLEORDEREDQUEUE_H
32
The generic ISF particle definition,.
Definition ISFParticle.h:42
ParticleOrder getOrder() const
return the particle order (eg used to assure ID->Calo->MS simulation order)
ISFParticleOrderedQueue.
std::priority_queue< ISF::ISFParticle *, ISF::ISFParticleVector, ISF::ISFParticleOrdering > ISFParticleOrderedQueue
the actual particle priority_queue
sort function according to particle order
bool operator()(ISF::ISFParticle *lhs, ISF::ISFParticle *rhs)