![]() |
LArSoft
v10_06_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "ActiveVolumeVertexSampler.h"
Classes | |
| struct | Config |
Public Types | |
| enum | vertex_type_t { vertex_type_t::kSampled, vertex_type_t::kFixed, vertex_type_t::kBox } |
| 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 |
| double | fXmin |
| double | fYmin |
| double | fZmin |
| double | fXmax |
| double | fYmax |
| double | fZmax |
| bool | fCheckActive |
Definition at line 44 of file ActiveVolumeVertexSampler.h.
Definition at line 48 of file ActiveVolumeVertexSampler.h.
Definition at line 47 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 22 of file ActiveVolumeVertexSampler.cxx.
References fGeneratorName, fTPCEngine, fhicl::Table< T, KeysToIgnore >::get_PSet(), reconfigure(), rndm::NuRandomService::registerEngine(), and seed.
|
inline |
Definition at line 93 of file ActiveVolumeVertexSampler.h.
| void evgen::ActiveVolumeVertexSampler::reconfigure | ( | const fhicl::Table< Config > & | conf, |
| const geo::Geometry & | geom | ||
| ) |
Definition at line 150 of file ActiveVolumeVertexSampler.cxx.
References fCheckActive, fGeneratorName, fTPCDist, fVertexPosition, fVertexType, fXmax, fXmin, fYmax, fYmin, fZmax, fZmin, kBox, kFixed, kSampled, and geo::GeometryCore::NTPC().
Referenced by ActiveVolumeVertexSampler().
| TLorentzVector evgen::ActiveVolumeVertexSampler::sample_vertex_pos | ( | const geo::Geometry & | geom | ) |
Definition at line 58 of file ActiveVolumeVertexSampler.cxx.
References fCheckActive, fGeneratorName, fTPCEngine, fVertexPosition, fVertexType, fXmax, fXmin, fYmax, fYmin, fZmax, fZmin, kBox, kSampled, maxY, MF_LOG_INFO, geo::BoxBoundedGeo::MinX(), minY, geo::GeometryCore::NTPC(), geo::GeometryCore::TPC(), x, y, and z.
|
protected |
Definition at line 134 of file ActiveVolumeVertexSampler.h.
Referenced by reconfigure(), and sample_vertex_pos().
|
protected |
Definition at line 116 of file ActiveVolumeVertexSampler.h.
Referenced by ActiveVolumeVertexSampler(), reconfigure(), and sample_vertex_pos().
|
protected |
Definition at line 120 of file ActiveVolumeVertexSampler.h.
Referenced by reconfigure().
|
protected |
Definition at line 123 of file ActiveVolumeVertexSampler.h.
Referenced by ActiveVolumeVertexSampler(), and sample_vertex_pos().
|
protected |
Definition at line 112 of file ActiveVolumeVertexSampler.h.
Referenced by reconfigure(), and sample_vertex_pos().
|
protected |
Definition at line 114 of file ActiveVolumeVertexSampler.h.
Referenced by reconfigure(), and sample_vertex_pos().
|
protected |
Definition at line 130 of file ActiveVolumeVertexSampler.h.
Referenced by reconfigure(), and sample_vertex_pos().
|
protected |
Definition at line 126 of file ActiveVolumeVertexSampler.h.
Referenced by reconfigure(), and sample_vertex_pos().
|
protected |
Definition at line 131 of file ActiveVolumeVertexSampler.h.
Referenced by reconfigure(), and sample_vertex_pos().
|
protected |
Definition at line 127 of file ActiveVolumeVertexSampler.h.
Referenced by reconfigure(), and sample_vertex_pos().
|
protected |
Definition at line 132 of file ActiveVolumeVertexSampler.h.
Referenced by reconfigure(), and sample_vertex_pos().
|
protected |
Definition at line 128 of file ActiveVolumeVertexSampler.h.
Referenced by reconfigure(), and sample_vertex_pos().