13 #include "hep_concurrency/tsan.h" 43 std::atomic<unsigned> numerator_{};
44 std::atomic<unsigned> denominator_{};
53 produces<arttest::CalibConstants, InSubRun>(
"CalibConstants");
54 produces<arttest::TrackEfficiency, InSubRun>(
"TrackEfficiency");
61 sr.
put(make_unique<arttest::CalibConstants>(sr.
subRun()),
69 sr.
put(make_unique<arttest::TrackEfficiency>(
numerator_.load(),
82 for (
auto const&
val : particleEnergies) {
void beginSubRun(SubRun &, ProcessingFrame const &) override
std::atomic< unsigned > numerator_
#define DEFINE_ART_MODULE(klass)
bool filter(Event &, ProcessingFrame const &) override
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
SubRunNumber_t subRun() const
std::atomic< unsigned > denominator_
constexpr auto subRunFragment()
void endSubRun(SubRun &, ProcessingFrame const &) override
constexpr auto fullSubRun()
ProductToken< vector< double > > const particleEnergiesTkn_
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)