48
49
#include "src/common_cpp/DataStructure/GlobalEvent.hh"
49
50
#include "src/common_cpp/DataStructure/ReconEvent.hh"
50
51
#include "src/common_cpp/DataStructure/Spill.hh"
51
#include "Recon/Global/ImportTOFRecon.hh"
52
#include "Recon/Global/ImportSciFiRecon.hh"
53
#include "Recon/Global/TrackMatching.hh"
53
#include "Recon/Global/ImportCkovRecon.hh"
54
#include "Recon/Global/ImportKLRecon.hh"
55
#include "src/common_cpp/Recon/Global/ImportSciFiRecon.hh"
56
#include "src/common_cpp/Recon/Global/ImportTOFRecon.hh"
57
#include "src/common_cpp/API/MapBase.hh"
57
class MapCppGlobalReconImport {
62
class MapCppGlobalReconImport : public MapBase<Data> {
59
64
/** Constructor, setting the internal variable #_classname */
60
65
MapCppGlobalReconImport();
62
68
/** Sets up the worker
64
70
* @param argJsonConfigDocument a JSON document with
65
71
* the configuration.
67
bool birth(std::string argJsonConfigDocument);
73
void _birth(const std::string& argJsonConfigDocument);
69
75
/** Shutdowns the worker
71
77
* This takes no arguments and does nothing
75
/** process JSON document
77
* Receive a document with recon events and return a
78
* document with populated global events and tracks.
79
* @param document a line/spill from the JSON input
83
* Receive a structure with recon events and return a
84
* structure with populated global events and tracks.
85
* @param MAUS data corresponding to a single MICE spill
81
std::string process(std::string) const;
87
void _process(MAUS::Data* data) const;
83
89
/** Import the existing MAUS::ReconEvent, creating a new
84
90
* MAUS::GlobalEvent and populating a