MARLEY (Model of Argon Reaction Low Energy Yields) v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
Loading...
Searching...
No Matches
OMPWeightCalculator.hh
1
4//
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#pragma once
17
18#include "marley/WeightCalculator.hh"
19
20namespace marley {
21
24 class OMPWeightCalculator : public WeightCalculator {
25
26 public:
27
28 OMPWeightCalculator( const marley::JSON& config );
29 virtual ~OMPWeightCalculator() = default;
30
31 virtual double weight( HepMC3::GenEvent& event,
32 marley::Generator& gen ) const override;
33
34 protected:
35
38 std::shared_ptr< marley::StructureDatabase > sdb_;
39 };
40
41}
Stores event-related information.
Definition GenEvent.h:47
The MARLEY Event generator.
Definition Generator.hh:54
std::shared_ptr< marley::StructureDatabase > sdb_
Owned StructureDatabase with a custom set of optical model parameters.
virtual double weight(HepMC3::GenEvent &event, marley::Generator &gen) const override
Compute the weight for the given event.