ATLAS Offline Software
Simulation
ISF
ISF_Core
ISF_Event
ISF_Event
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
16
#include "
ISF_Event/ISFParticle.h
"
17
#include "
ISF_Event/ISFParticleContainer.h
"
18
21
namespace
ISF
{
23
struct
ISFParticleOrdering
{
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
ISF::ISFParticle::getOrder
ParticleOrder getOrder() const
return the particle order (eg used to assure ID->Calo->MS simulation order)
ISF::ISFParticleOrderedQueue
std::priority_queue< ISF::ISFParticle *, ISF::ISFParticleVector, ISF::ISFParticleOrdering > ISFParticleOrderedQueue
the actual particle priority_queue
Definition:
ISFParticleOrderedQueue.h:28
ISF::ISFParticle
Definition:
ISFParticle.h:42
ISFParticleContainer.h
ISF::ISFParticleOrdering
sort function according to particle order
Definition:
ISFParticleOrderedQueue.h:23
ISFParticle.h
ISF::ISFParticleOrdering::operator()
bool operator()(ISF::ISFParticle *lhs, ISF::ISFParticle *rhs)
Definition:
ISFParticleOrderedQueue.h:24
ISF
ISFParticleOrderedQueue.
Definition:
PrimaryParticleInformation.h:13
Generated on Thu Nov 7 2024 21:17:28 for ATLAS Offline Software by
1.8.18