ATLAS Offline Software
Loading...
Searching...
No Matches
TruthEtIsolations.cxx File Reference
#include <sstream>
#include <ostream>
#include <iomanip>
#include <stdexcept>
#include "CLHEP/Units/SystemOfUnits.h"
#include "AtlasHepMC/GenParticle.h"
#include "AtlasHepMC/GenEvent.h"
#include "AtlasHepMC/GenVertex.h"
#include "GeneratorObjects/McEventCollection.h"
#include "McParticleEvent/TruthEtIsolations.h"

Go to the source code of this file.

Typedefs

typedef TruthEtIsolations::GenEventLink_t GenEventLink_t
typedef TruthEtIsolations::EtIsol_t EtIsol_t

Functions

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

Typedef Documentation

◆ EtIsol_t

Definition at line 29 of file TruthEtIsolations.cxx.

◆ GenEventLink_t

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.