11#include <framework/core/FrameworkExceptions.h>
12#include <mdst/dataobjects/MCParticleGraph.h>
14#include <TGeoMatrix.h>
60 void open(
const std::string& filename);
Class to build, validate and sort a particle decay chain.
Class to read Touschek files and store their content in a MCParticle graph.
~TouschekReaderTURTLE()
Destructor.
int m_lineNum
The line number in the ascii file of the last particle which was read.
TGeoHMatrix * m_transMatrix
Transformation matrix from local Touschek to global geant4 space.
int m_pdg
The pdg value of the type of particle that is read (e.g.
void open(const std::string &filename)
Opens an ascii file and prepares it for reading.
std::ifstream m_input
The input stream of the ascii file.
BELLE2_DEFINE_EXCEPTION(TouschekConvertFieldError, "Line %1%: Could not convert field %2%: %3%")
Exception is thrown if a field in the Touschek file could not be converted to a number.
int getParticles(int number, MCParticleGraph &graph)
Reads the specified number of particles from the file and stores the result in the given MCParticle g...
BELLE2_DEFINE_EXCEPTION(TouschekCouldNotOpenFileError, "Could not open file %1% !")
Exception is thrown if the Touschek file could not be opened.
Abstract base class for different kinds of events.