Belle II Software  release-05-02-19
TouschekTURTLEInputModule.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/Module.h>
14 
15 #include <TGeoMatrix.h>
16 #include <string>
17 
18 
19 namespace Belle2 {
25  class TouschekReaderTURTLE;
26 
34  class TouschekTURTLEInputModule : public Module {
35 
36  public:
37 
43 
46 
51  virtual void initialize() override;
52 
54  virtual void event() override;
55 
58 
61 
62 
63  protected:
64 
67  TGeoHMatrix* m_herPipePartMatrix;
68  TGeoHMatrix* m_lerPipePartMatrix;
70  std::string m_filenameHER;
71  std::string m_filenameLER;
72  bool m_readHER;
73  bool m_readLER;
75  double m_zPos;
76  };
77 
79 } // end namespace Belle2
80 
Belle2::TouschekReaderTURTLE
Class to read Touschek files and store their content in a MCParticle graph.
Definition: TouschekReaderTURTLE.h:44
Belle2::TouschekTURTLEInputModule
The TouschekTURTLE Input module.
Definition: TouschekTURTLEInputModule.h:42
Belle2::TouschekTURTLEInputModule::m_readerLER
TouschekReaderTURTLE * m_readerLER
The Touschek reader object for the LER data.
Definition: TouschekTURTLEInputModule.h:74
Belle2::TouschekTURTLEInputModule::TouschekTURTLEInputModule
TouschekTURTLEInputModule()
Constructor.
Definition: TouschekTURTLEInputModule.cc:36
Belle2::TouschekTURTLEInputModule::m_filenameHER
std::string m_filenameHER
The filename of the HER TURTLE Touschek file.
Definition: TouschekTURTLEInputModule.h:78
Belle2::TouschekTURTLEInputModule::m_readLER
bool m_readLER
If set to true reads the LER data and adds it to the MCParticle collection.
Definition: TouschekTURTLEInputModule.h:81
Belle2::TouschekTURTLEInputModule::m_maxParticles
int m_maxParticles
The maximum number of particles per event that should be read.
Definition: TouschekTURTLEInputModule.h:82
Belle2::TouschekTURTLEInputModule::operator=
TouschekTURTLEInputModule & operator=(const TouschekTURTLEInputModule &)=delete
no assignment
Belle2::TouschekTURTLEInputModule::~TouschekTURTLEInputModule
virtual ~TouschekTURTLEInputModule()
Destructor.
Definition: TouschekTURTLEInputModule.cc:60
Belle2::TouschekTURTLEInputModule::initialize
virtual void initialize() override
Checks the validity of the module parameters.
Definition: TouschekTURTLEInputModule.cc:67
Belle2::TouschekTURTLEInputModule::m_herPipePartMatrix
TGeoHMatrix * m_herPipePartMatrix
HER transformation matrix from TURTLE space into geant4 space.
Definition: TouschekTURTLEInputModule.h:75
Belle2::TouschekTURTLEInputModule::m_readerHER
TouschekReaderTURTLE * m_readerHER
The Touschek reader object for the HER data.
Definition: TouschekTURTLEInputModule.h:73
Belle2::TouschekTURTLEInputModule::m_lerPipePartMatrix
TGeoHMatrix * m_lerPipePartMatrix
LER transformation matrix from TURTLE space into geant4 space.
Definition: TouschekTURTLEInputModule.h:76
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TouschekTURTLEInputModule::event
virtual void event() override
Reads the data and stores it into the MCParticle collection.
Definition: TouschekTURTLEInputModule.cc:97
Belle2::TouschekTURTLEInputModule::m_filenameLER
std::string m_filenameLER
The filename of the LER TURTLE Touschek file.
Definition: TouschekTURTLEInputModule.h:79
Belle2::TouschekTURTLEInputModule::m_readHER
bool m_readHER
If set to true reads the HER data and adds it to the MCParticle collection.
Definition: TouschekTURTLEInputModule.h:80
Belle2::TouschekTURTLEInputModule::m_zPos
double m_zPos
The z Coordinate for all particles in the list in the file.
Definition: TouschekTURTLEInputModule.h:83