ATLAS Offline Software
Loading...
Searching...
No Matches
TruthEtIsolations.h File Reference
#include <vector>
#include <iosfwd>
#include <string>
#include <stdexcept>
#include <unordered_map>
#include "AthLinks/ElementLink.h"
#include "GeneratorObjects/McEventCollection.h"
#include "McParticleEvent/TruthParticleParamDefs.h"
Include dependency graph for TruthEtIsolations.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TruthEtIsolations
 container which holds isolation informations for a given HepMC::GenParticle (labelled by barcode) for a given HepMC::GenEvent of a given McEventCollection More...

Functions

std::ostream & operator<< (std::ostream &out, const TruthEtIsolations &etIsols)

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & out,
const TruthEtIsolations & etIsols )

Definition at line 156 of file TruthEtIsolations.cxx.

158{
159 const std::size_t nEtIsols = etIsols.size();
160 out << "nbr of EtIsols: " << nEtIsols;
161 std::ostringstream buf;
162 buf << std::right << std::scientific << std::setprecision(8);
163 for ( TruthEtIsolations::const_iterator i = etIsols.begin(), iEnd = etIsols.end(); i != iEnd; ++i ) {
164 buf.str("");
165 buf << "\nbc: " << i->first << " [ ";
166 std::copy( i->second.begin(), i->second.end(), std::ostream_iterator<double>( buf, " " ) );
167 out << buf.str() << "]";
168 }
169 return out;
170}
std::size_t size() const
Return the number of HepMC::GenParticle for which Et isolations have been stored into this TruthEtIso...
EtIsolMap_t::const_iterator const_iterator
The iterator over the map of barcode-to-Et-isolations.
const_iterator end() const
Const iterator over the barcodes of the HepMC::GenParticle for which we have Et isolations computed.
const_iterator begin() const
Const iterator over the barcodes of the HepMC::GenParticle for which we have Et isolations computed.