Belle II Software  release-08-01-10
TouschekTURTLEInputModule.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <framework/core/Module.h>
12 
13 #include <TGeoMatrix.h>
14 #include <string>
15 
16 
17 namespace Belle2 {
23  class TouschekReaderTURTLE;
24 
33 
34  public:
35 
41 
44 
49  virtual void initialize() override;
50 
52  virtual void event() override;
53 
56 
59 
60 
61  protected:
62 
65  TGeoHMatrix* m_herPipePartMatrix;
66  TGeoHMatrix* m_lerPipePartMatrix;
68  std::string m_filenameHER;
69  std::string m_filenameLER;
70  bool m_readHER;
71  bool m_readLER;
73  double m_zPos;
74  };
75 
77 } // end namespace Belle2
78 
Base class for Modules.
Definition: Module.h:72
Class to read Touschek files and store their content in a MCParticle graph.
The TouschekTURTLE Input module.
std::string m_filenameHER
The filename of the HER TURTLE Touschek file.
TouschekTURTLEInputModule(const TouschekTURTLEInputModule &)=delete
no copy
virtual void initialize() override
Checks the validity of the module parameters.
virtual void event() override
Reads the data and stores it into the MCParticle collection.
int m_maxParticles
The maximum number of particles per event that should be read.
TGeoHMatrix * m_herPipePartMatrix
HER transformation matrix from TURTLE space into geant4 space.
TGeoHMatrix * m_lerPipePartMatrix
LER transformation matrix from TURTLE space into geant4 space.
TouschekReaderTURTLE * m_readerLER
The Touschek reader object for the LER data.
bool m_readLER
If set to true reads the LER data and adds it to the MCParticle collection.
std::string m_filenameLER
The filename of the LER TURTLE Touschek file.
double m_zPos
The z Coordinate for all particles in the list in the file.
TouschekReaderTURTLE * m_readerHER
The Touschek reader object for the HER data.
bool m_readHER
If set to true reads the HER data and adds it to the MCParticle collection.
TouschekTURTLEInputModule & operator=(const TouschekTURTLEInputModule &)=delete
no assignment
Abstract base class for different kinds of events.