Skip to content
Snippets Groups Projects

Migrate GeneratorFilters to IAthRNGSvc (part 2)

16 files
+ 209
80
Compare changes
  • Side-by-side
  • Inline
Files
16
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
#ifndef GENERATORFILTERSM4MUINTERVALFILTER_H
#define GENERATORFILTERSM4MUINTERVALFILTER_H
#include "GeneratorModules/GenFilter.h"
#include "GaudiKernel/ServiceHandle.h"
#include "AthenaKernel/IAthRNGSvc.h"
class IAtRndmGenSvc;
namespace CLHEP {
class HepRandomEngine;
}
class M4MuIntervalFilter : public GenFilter {
public:
@@ -20,10 +23,13 @@ public:
private:
CLHEP::HepRandomEngine* getRandomEngine(const std::string& streamName,
const EventContext& ctx) const;
double m_maxEta;
double m_minPt; // Rapidity acceptance
ServiceHandle<IAtRndmGenSvc> m_rand; // Random number generator
ServiceHandle<IAthRNGSvc> m_rndmSvc{this, "RndmSvc", "AthRNGSvc"};// Random number generator
double m_prob2medium;
double m_prob2low;
Loading