ATLAS Offline Software
Classes | Functions
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
 

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 }
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
lumiFormat.i
int i
Definition: lumiFormat.py:85
python.DecayParser.buf
buf
print ("=> [%s]"cmd)
Definition: DecayParser.py:27
TruthEtIsolations::size
std::size_t size() const
Return the number of HepMC::GenParticle for which Et isolations have been stored into this TruthEtIso...
Definition: TruthEtIsolations.h:223
TruthEtIsolations::const_iterator
EtIsolMap_t::const_iterator const_iterator
The iterator over the map of barcode-to-Et-isolations.
Definition: TruthEtIsolations.h:58
TruthEtIsolations::begin
const_iterator begin() const
Const iterator over the barcodes of the HepMC::GenParticle for which we have Et isolations computed.
Definition: TruthEtIsolations.h:249
TruthEtIsolations::end
const_iterator end() const
Const iterator over the barcodes of the HepMC::GenParticle for which we have Et isolations computed.
Definition: TruthEtIsolations.h:252
calibdata.copy
bool copy
Definition: calibdata.py:27