|
ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
Sample AtHits in gaussian from reference. More...
#include <AtGaussian.h>


Public Member Functions | |
| AtGaussian (double sigma=30) | |
Public Member Functions inherited from RandomSample::AtSampleFromReference | |
| virtual | ~AtSampleFromReference ()=default |
| virtual std::vector< AtHit > | SampleHits (int N) override |
| Sample hits (AtHit) from fHits. More... | |
| virtual void | SetHitsToSample (const std::vector< const AtHit * > &hits) override |
| void | SetReferenceHit (AtHit hit) |
| const AtHit & | GetReferenceHit () const |
Public Member Functions inherited from RandomSample::AtSample | |
| virtual | ~AtSample ()=default |
| std::vector< ROOT::Math::XYZPoint > | SamplePoints (int N) |
| Sample spacial locations (XYZPoints) from fHits. More... | |
| void | SetHitsToSample (const std::vector< HitPtr > &hits) |
| void | SetHitsToSample (const std::vector< AtHit > &hits) |
| void | SetSampleWithReplacement (bool val) |
Protected Member Functions | |
| virtual std::vector< double > | PDF (const AtHit &hit) override |
Protected Member Functions inherited from RandomSample::AtSampleFromReference | |
| virtual void | SampleReferenceHit () |
| Get reference hit from fHits. More... | |
Protected Member Functions inherited from RandomSample::AtSample | |
| void | FillCDF () |
| std::vector< int > | sampleIndicesFromCDF (int N, std::vector< int > vetoed={}) |
| int | getIndexFromCDF (double r, double rmCFD, std::vector< int > vetoed) |
| Get the index i where CDF[i] >= r and CDF[i-1] < r. More... | |
| double | getPDFfromCDF (int index) |
Protected Attributes | |
| double | fSigma |
Protected Attributes inherited from RandomSample::AtSampleFromReference | |
| AtHit | fReferenceHit |
Protected Attributes inherited from RandomSample::AtSample | |
| const std::vector< const AtHit * > * | fHits |
| std::vector< double > | fCDF |
| bool | fWithReplacement {false} |
Additional Inherited Members | |
Protected Types inherited from RandomSample::AtSample | |
| using | HitPtr = std::unique_ptr< AtHit > |
Static Protected Member Functions inherited from RandomSample::AtSample | |
| template<typename T > | |
| static bool | isInVector (T val, std::vector< T > vec) |
Sample AtHits in gaussian from reference.
Class for sampling a collection of AtHits in a spacial gaussian distribution around the reference hit.
Definition at line 18 of file AtGaussian.h.
|
inline |
Definition at line 23 of file AtGaussian.h.
|
overrideprotectedvirtual |
Computes the unnormalized marginal PDFs at the hit.
For example, a charge-weighted and spacial gaussian would looke like return {charge, gaussian_pdf(distance, sigma)};
Implements RandomSample::AtSample.
Definition at line 13 of file AtGaussian.cxx.
|
protected |
Definition at line 20 of file AtGaussian.h.
1.8.18