LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "ActiveVolumeVertexSampler.h"
Classes | |
struct | Config |
Public Types | |
enum | vertex_type_t { vertex_type_t::kSampled, vertex_type_t::kFixed } |
using | Name = fhicl::Name |
using | Comment = fhicl::Comment |
Public Member Functions | |
ActiveVolumeVertexSampler (const fhicl::Table< Config > &conf, rndm::NuRandomService &rand_service, const geo::Geometry &geom, const std::string &generator_name) | |
ActiveVolumeVertexSampler (const fhicl::ParameterSet &pset, rndm::NuRandomService &rand_service, const geo::Geometry &geom, const std::string &generator_name) | |
void | reconfigure (const fhicl::Table< Config > &conf, const geo::Geometry &geom) |
TLorentzVector | sample_vertex_pos (const geo::Geometry &geom) |
Protected Attributes | |
TLorentzVector | fVertexPosition |
vertex_type_t | fVertexType |
std::string | fGeneratorName |
std::unique_ptr< std::discrete_distribution< size_t > > | fTPCDist |
std::mt19937_64 | fTPCEngine |
Definition at line 37 of file ActiveVolumeVertexSampler.h.
Definition at line 42 of file ActiveVolumeVertexSampler.h.
Definition at line 41 of file ActiveVolumeVertexSampler.h.
|
strong |
evgen::ActiveVolumeVertexSampler::ActiveVolumeVertexSampler | ( | const fhicl::Table< Config > & | conf, |
rndm::NuRandomService & | rand_service, | ||
const geo::Geometry & | geom, | ||
const std::string & | generator_name | ||
) |
Definition at line 13 of file ActiveVolumeVertexSampler.cxx.
References fGeneratorName, fTPCEngine, fhicl::Table< T, KeysToIgnore >::get_PSet(), reconfigure(), rndm::NuRandomService::registerEngine(), and seed.
|
inline |
Definition at line 74 of file ActiveVolumeVertexSampler.h.
References reconfigure(), and sample_vertex_pos().
void evgen::ActiveVolumeVertexSampler::reconfigure | ( | const fhicl::Table< Config > & | conf, |
const geo::Geometry & | geom | ||
) |
Definition at line 89 of file ActiveVolumeVertexSampler.cxx.
References geo::TPCGeo::ActiveMass(), fGeneratorName, fTPCDist, fVertexPosition, fVertexType, kFixed, kSampled, geo::GeometryCore::NTPC(), and geo::GeometryCore::TPC().
Referenced by ActiveVolumeVertexSampler().
TLorentzVector evgen::ActiveVolumeVertexSampler::sample_vertex_pos | ( | const geo::Geometry & | geom | ) |
Definition at line 49 of file ActiveVolumeVertexSampler.cxx.
References fGeneratorName, fTPCDist, fTPCEngine, fVertexPosition, fVertexType, kSampled, LOG_INFO, maxY, geo::BoxBoundedGeo::MinX(), minY, geo::GeometryCore::TPC(), x, y, and z.
Referenced by ActiveVolumeVertexSampler().
|
protected |
Definition at line 95 of file ActiveVolumeVertexSampler.h.
Referenced by ActiveVolumeVertexSampler(), reconfigure(), and sample_vertex_pos().
|
protected |
Definition at line 99 of file ActiveVolumeVertexSampler.h.
Referenced by reconfigure(), and sample_vertex_pos().
|
protected |
Definition at line 102 of file ActiveVolumeVertexSampler.h.
Referenced by ActiveVolumeVertexSampler(), and sample_vertex_pos().
|
protected |
Definition at line 91 of file ActiveVolumeVertexSampler.h.
Referenced by reconfigure(), and sample_vertex_pos().
|
protected |
Definition at line 93 of file ActiveVolumeVertexSampler.h.
Referenced by reconfigure(), and sample_vertex_pos().