~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

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

merging in changes in merge branch

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
 *  @author Jan Greis, University of Warwick
20
20
 *  Import detector events from Recon Event into a Global Event and create
21
21
 *  global tracks.
22
 
 *
 
22
 *  @date 2015/11/26
23
23
 */
24
24
 
25
25
#ifndef _SRC_MAP_MAPCPPGLOBALTRACKMATCHING_H_
26
26
#define _SRC_MAP_MAPCPPGLOBALTRACKMATCHING_H_
27
27
 
28
 
// Python / C API
29
 
#include <Python.h>
30
 
 
31
28
// C headers
32
 
#include <assert.h>
33
 
#include <json/json.h>
 
29
#include <stdlib.h>
34
30
 
35
31
// C++ headers
36
 
#include <cmath>
37
 
#include <iostream>
 
32
#include <map>
38
33
#include <string>
39
 
#include <sstream>
40
 
#include <vector>
41
 
 
42
 
// Other headers
43
 
#include "Interface/Squeak.hh"
44
 
#include "Config/MiceModule.hh"
45
 
#include "src/common_cpp/Utils/CppErrorHandler.hh"
 
34
#include <utility>
 
35
 
 
36
// external libraries
 
37
#include "json/json.h"
 
38
 
 
39
//  MAUS code
 
40
#include "src/common_cpp/API/MapBase.hh"
 
41
#include "src/common_cpp/DataStructure/Data.hh"
46
42
#include "src/common_cpp/Utils/JsonWrapper.hh"
47
 
#include "src/common_cpp/JsonCppProcessors/SpillProcessor.hh"
48
 
 
49
 
#include "src/common_cpp/DataStructure/GlobalEvent.hh"
50
 
#include "src/common_cpp/DataStructure/ReconEvent.hh"
51
 
#include "src/common_cpp/DataStructure/Spill.hh"
52
 
#include "Recon/Global/TrackMatching.hh"
53
 
#include "src/common_cpp/API/MapBase.hh"
54
 
 
55
43
 
56
44
namespace MAUS {
57
45
  class Data;
58
46
 
59
47
  class MapCppGlobalTrackMatching : public MapBase<Data> {
60
48
  public:
61
 
    /** Constructor, setting the internal variable #_classname */
 
49
    /// Constructor
62
50
    MapCppGlobalTrackMatching();
63
51
 
64
52
  private:
81
69
     *  structure with populated global events and tracks.
82
70
     * @param MAUS data corresponding to a single MICE spill
83
71
     */
84
 
    void _process(MAUS::Data* data) const;
 
72
    void _process(Data* data) const;
85
73
 
86
74
  private:
87
75
    /// Check that a valid configuration is passed to the process
88
76
    bool _configCheck;
89
77
    /// This will contain the configuration
90
78
    Json::Value _configJSON;
91
 
    ///  JsonCpp setup
 
79
    /// JsonCpp setup
92
80
    Json::Reader _reader;
93
 
 
94
 
    // Mapper name, useful for tracking results...
95
 
    std::string _classname;
 
81
    /// String denoting what PID hypotheses track matching should run with
 
82
    std::string _pid_hypothesis_string;
 
83
    /// Matching tolerances for the various detectors that are matched
 
84
    std::map<std::string, std::pair<double, double> > _matching_tolerances;
 
85
    /// Should the RK4 include energy loss
 
86
    bool _energy_loss;
 
87
    /// Mapper name
 
88
    std::string _mapper_name;
96
89
  }; // Don't forget this trailing colon!!!!
97
90
} // ~MAUS
98
91