CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
ParticleAllocator Class Reference

#include <Particle.h>

Public Member Functions

void AddParticle (const Particle &particle, List_t &list)
 
void FreeList (List_t &list)
 
void FreeListNode (List_t &list, LPIT_t it)
 

Private Attributes

List_t fFreeNodes
 

Detailed Description

Definition at line 177 of file Particle.h.

Member Function Documentation

◆ AddParticle()

void ParticleAllocator::AddParticle ( const Particle particle,
List_t list 
)

Definition at line 107 of file Particle.cc.

107  {
108  if (fFreeNodes.empty())
109  list.push_back(p);
110  else {
111  list.splice(list.end(), fFreeNodes, fFreeNodes.begin());
112  list.back() = p;
113  }
114 }

References fFreeNodes, and AlCaHLTBitMon_ParallelJobs::p.

Referenced by Decay(), and gen::Hydjet2Hadronizer::generatePartonsAndHadronize().

◆ FreeList()

void ParticleAllocator::FreeList ( List_t list)

Definition at line 118 of file Particle.cc.

118 { fFreeNodes.splice(fFreeNodes.end(), list); }

References fFreeNodes.

Referenced by gen::Hydjet2Hadronizer::generatePartonsAndHadronize().

◆ FreeListNode()

void ParticleAllocator::FreeListNode ( List_t list,
LPIT_t  it 
)

Definition at line 116 of file Particle.cc.

116 { fFreeNodes.splice(fFreeNodes.end(), list, it); }

References fFreeNodes.

Member Data Documentation

◆ fFreeNodes

List_t ParticleAllocator::fFreeNodes
private

Definition at line 184 of file Particle.h.

Referenced by AddParticle(), FreeList(), and FreeListNode().

AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
ParticleAllocator::fFreeNodes
List_t fFreeNodes
Definition: Particle.h:184