MARLEY (Model of Argon Reaction Low Energy Yields)  v1.2.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
RootJSONConfig.hh
1 //
5 // This file is part of MARLEY (Model of Argon Reaction Low Energy Yields)
6 //
7 // MARLEY is free software: you can redistribute it and/or modify it under the
8 // terms of version 3 of the GNU General Public License as published by the
9 // Free Software Foundation.
10 //
11 // For the full text of the license please see COPYING or
12 // visit http://opensource.org/licenses/GPL-3.0
13 //
14 // Please respect the MCnet academic usage guidelines. See GUIDELINES
15 // or visit https://www.montecarlonet.org/GUIDELINES for details.
16 
17 #pragma once
18 
19 // MARLEY includes
20 #include "marley/JSONConfig.hh"
21 
22 namespace marley {
23 
24  class RootJSONConfig : public JSONConfig {
25 
26  public:
27 
28  explicit RootJSONConfig(const marley::JSON& object)
29  : JSONConfig(object) {}
30 
31  explicit RootJSONConfig(const std::string& json_filename)
32  : JSONConfig(json_filename) {}
33 
34  virtual bool process_extra_source_types(const std::string& type,
35  const marley::JSON& source_spec, int pdg_code,
36  std::unique_ptr<marley::NeutrinoSource>& source) const override;
37  };
38 
39 }
Definition: JSONConfig.hh:29
Definition: JSON.hh:62
Definition: RootJSONConfig.hh:24