~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/map/MapCppGlobalReconImport/MapCppGlobalReconImport.hh

  • Committer: Durga Rajaram
  • Date: 2014-07-16 15:13:05 UTC
  • mfrom: (659.1.92 cand)
  • Revision ID: durga@fnal.gov-20140716151305-q27rv1y9p03v9lks
Tags: MAUS-v0.9, MAUS-v0.9.0
MAUS-v0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 */
17
17
 
18
18
/** @class MapCppGlobalReconImport
 
19
 *  @author Celeste Pidcott, University of Warwick
19
20
 *  Import detector events from Recon Event into a Global Event and create
20
21
 *  global tracks.
21
22
 *
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"
 
52
 
 
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"
54
58
 
55
59
namespace MAUS {
 
60
  class Data;
56
61
 
57
 
  class MapCppGlobalReconImport {
 
62
  class MapCppGlobalReconImport : public MapBase<Data> {
58
63
  public:
59
64
    /** Constructor, setting the internal variable #_classname */
60
65
    MapCppGlobalReconImport();
61
66
 
 
67
  private:
62
68
    /** Sets up the worker
63
69
     *
64
70
     *  @param argJsonConfigDocument a JSON document with
65
71
     *         the configuration.
66
72
     */
67
 
    bool birth(std::string argJsonConfigDocument);
 
73
    void _birth(const std::string& argJsonConfigDocument);
68
74
 
69
75
    /** Shutdowns the worker
70
76
     *
71
77
     *  This takes no arguments and does nothing
72
78
     */
73
 
    bool death();
 
79
    void _death();
74
80
 
75
 
    /** process JSON document
 
81
    /** process MAUS Data
76
82
     *
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
80
86
     */
81
 
    std::string process(std::string) const;
 
87
    void _process(MAUS::Data* data) const;
82
88
 
83
89
    /** Import the existing MAUS::ReconEvent, creating a new
84
90
     * MAUS::GlobalEvent and populating a
96
102
    Json::Value _configJSON;
97
103
    ///  JsonCpp setup
98
104
    Json::Reader _reader;
99
 
 
100
105
    // Mapper name, useful for tracking results...
101
106
    std::string _classname;
102
107
  }; // Don't forget this trailing colon!!!!