Belle II Software
release-05-01-25
TouschekReaderTURTLE.h
1
/**************************************************************************
2
* BASF2 (Belle Analysis Framework 2) *
3
* Copyright(C) 2010-2011 Belle II Collaboration *
4
* *
5
* Author: The Belle II Collaboration *
6
* Contributors: Andreas Moll *
7
* *
8
* This software is provided "as is" without any warranty. *
9
**************************************************************************/
10
11
#pragma once
12
13
#include <framework/core/FrameworkExceptions.h>
14
#include <mdst/dataobjects/MCParticleGraph.h>
15
16
#include <TGeoMatrix.h>
17
18
#include <string>
19
#include <fstream>
20
21
namespace
Belle2
{
36
class
TouschekReaderTURTLE {
37
38
public
:
39
40
//Define exceptions
42
BELLE2_DEFINE_EXCEPTION
(TouschekCouldNotOpenFileError,
"Could not open file %1% !"
);
44
BELLE2_DEFINE_EXCEPTION
(TouschekConvertFieldError,
"Line %1%: Could not convert field %2%: %3%"
);
45
51
TouschekReaderTURTLE
(TGeoHMatrix* transMatrix,
int
pdg);
52
56
~TouschekReaderTURTLE
();
57
62
void
open
(
const
std::string& filename);
63
73
int
getParticles
(
int
number,
MCParticleGraph
& graph);
74
75
76
protected
:
77
78
TGeoHMatrix*
m_transMatrix
;
79
int
m_pdg
;
80
std::ifstream
m_input
;
81
int
m_lineNum
;
82
};
83
85
}
86
Belle2::MCParticleGraph
Class to build, validate and sort a particle decay chain.
Definition:
MCParticleGraph.h:48
Belle2::TouschekReaderTURTLE::open
void open(const std::string &filename)
Opens an ascii file and prepares it for reading.
Definition:
TouschekReaderTURTLE.cc:38
Belle2::TouschekReaderTURTLE::BELLE2_DEFINE_EXCEPTION
BELLE2_DEFINE_EXCEPTION(TouschekCouldNotOpenFileError, "Could not open file %1% !")
Exception is thrown if the Touschek file could not be opened.
Belle2::TouschekReaderTURTLE::m_lineNum
int m_lineNum
The line number in the ascii file of the last particle which was read.
Definition:
TouschekReaderTURTLE.h:89
Belle2::TouschekReaderTURTLE::m_pdg
int m_pdg
The pdg value of the type of particle that is read (e.g.
Definition:
TouschekReaderTURTLE.h:87
Belle2::TouschekReaderTURTLE::m_transMatrix
TGeoHMatrix * m_transMatrix
Transformation matrix from local Touschek to global geant4 space.
Definition:
TouschekReaderTURTLE.h:86
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::TouschekReaderTURTLE::getParticles
int getParticles(int number, MCParticleGraph &graph)
Reads the specified number of particles from the file and stores the result in the given MCParticle g...
Definition:
TouschekReaderTURTLE.cc:46
Belle2::TouschekReaderTURTLE::TouschekReaderTURTLE
TouschekReaderTURTLE(TGeoHMatrix *transMatrix, int pdg)
Constructor of the TouschekReader class.
Definition:
TouschekReaderTURTLE.cc:26
Belle2::TouschekReaderTURTLE::~TouschekReaderTURTLE
~TouschekReaderTURTLE()
Destructor.
Definition:
TouschekReaderTURTLE.cc:32
Belle2::TouschekReaderTURTLE::m_input
std::ifstream m_input
The input stream of the ascii file.
Definition:
TouschekReaderTURTLE.h:88
generators
touschek
include
TouschekReaderTURTLE.h
Generated on Fri Nov 5 2021 03:53:52 for Belle II Software by
1.8.17