![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef GENERATORFILTERS_CHARGEDTRACKSWEIGHTFILTER_H
6 #define GENERATORFILTERS_CHARGEDTRACKSWEIGHTFILTER_H
9 #include "GaudiKernel/ServiceHandle.h"
13 class HepRandomEngine;
30 Point(
double _x,
double _y,
double _slope) :
47 double value(
int nch)
const;
53 const EventContext& ctx)
const;
double get_minimum(double min, double max) const
get minimum over certain range (requires initialization to extrapolate)
StatusCode filterFinalize()
StatusCode filterInitialize()
Filter events based on presence of charged tracks.
ServiceHandle< IAthRNGSvc > m_rndmSvc
Rndm generator service.
double get_nch_weight(int nch) const
get weight to filter and weight events
std::vector< double > m_weight_fun_y
CLHEP::HepRandomEngine * getRandomEngine(const std::string &streamName, const EventContext &ctx) const
Point(double _x, double _y, double _slope)
Single point and slope to next point.
ChargedTracksWeightFilter(const std::string &name, ISvcLocator *pSvcLocator)
Base class for event generator filtering modules.
::StatusCode StatusCode
StatusCode definition for legacy code.
double m_nevents_accepted
Number of events passing weight-filtering (weighted, origin weight)
std::vector< Point > points
n-1 spline points filled at initialization
Linear spline representation of a function used to calculate weights.
void weight_event(double weight)
modify the event weight by weight
std::vector< double > m_weight_fun_x
Spline points.
double m_nevents_selected
Number of events passing selection (weighted, orig weight)
StatusCode event_weight(double &event_weight) const
read the event weight
StatusCode initialize(std::vector< double > &x, std::vector< double > &y)
double value(int nch) const
get value for certain x