| # Gaudi Framework, version v21r10p1 |

Home |  | Generated: 29 Jul 2010

# ParticlePropertySvc.cpp File Reference

Instantiation of a static factory class used by clients to create instances of this serviceq. More...

`#include <cstdlib>`
`#include <cstring>`
`#include <fstream>`
`#include "GaudiKernel/SvcFactory.h"`
`#include "GaudiKernel/ISvcLocator.h"`
`#include "GaudiKernel/MsgStream.h"`
`#include "GaudiKernel/ParticleProperty.h"`
`#include "GaudiKernel/PhysicalConstants.h"`
`#include "GaudiKernel/IFileAccess.h"`
`#include "ParticlePropertySvc.h"`

Include dependency graph for ParticlePropertySvc.cpp:

Go to the source code of this file.

## Functions
template<class MAP>
void | _remove_ (MAP &m, const ParticleProperty *pp)
template<class MAP>
void | _load_ (MAP &m, ParticlePropertySvc::Set &result)
| load mapped values from maps into set

## Detailed Description

Instantiation of a static factory class used by clients to create instances of this serviceq.

class ParticlePropertySvc Class Implement a ParticlePropertySvc

Author:
  : I. Last Modify by : G.Corti 09/11/1999 to read file from LHCBDBASE and introduce find/eraseByStdHepID methods Modified by Vanya BELYAEV to allow readig of additional files to add/replace/modify the existing particle properties

Definition in file ParticlePropertySvc.cpp.

## Function Documentation

template<class MAP>

void @643::_load_ | ( | MAP & | m,
|  | ParticlePropertySvc::Set & | result |
| ) |  |  | `[inline, static]`

load mapped values from maps into set

Definition at line 451 of file ParticlePropertySvc.cpp.

    00452   {
    00453     for ( typename MAP::iterator i = m.begin() ; m.end() != i ; ++i )
    00454     { result.insert ( i->second ); }
    00455   }

template<class MAP>

void @643::_remove_ | ( | MAP & | m,
|  | const ParticleProperty * | pp |
| ) |  |  | `[inline, static]`

Definition at line 280 of file ParticlePropertySvc.cpp.

    00281   {
    00282     typename MAP::iterator i = m.begin() ;
    00283     for ( ; m.end() != i ; ++i ) { if ( i->second == pp ) { break ; } }
    00284     if  ( m.end() != i ) { m.erase ( i ) ; }
    00285   }