ATLAS Offline Software
Classes | Functions
particleType.h File Reference

a class of my own because ttying to access the
ParticleDataTable in athena is frankly more trouble than it is worth
More...

#include <iostream>
#include <string>
#include <map>
Include dependency graph for particleType.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  particleType
 

Functions

std::ostream & operator<< (std::ostream &s, const particleType &p)
 

Detailed Description

a class of my own because ttying to access the
ParticleDataTable in athena is frankly more trouble than it is worth

As it happens, this class has no data members, but derives from an std::map, although a private std::map so neatly sidestepping all the sound reasons why one should not inherit from std classes

Author
mark sutton
Date
Thu 14 Jul 2011 09:50:36 BST

Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration

Definition in file particleType.h.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
const particleType p 
)
inline

Definition at line 135 of file particleType.h.

135  {
136  std::map<int, std::string>::const_iterator pitr = p.begin();
137  std::map<int, std::string>::const_iterator pend = p.end();
138 
139  while ( pitr!=pend ) {
140  s << "p[" << pitr->first << "]=" << pitr->second << std::endl;
141  pitr++;
142  }
143 
144  return s;
145 }
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743