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

Definition at line 28 of file TruthEtIsolations.cxx.

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:92
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