ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtIndependentSample.h
Go to the documentation of this file.
1 #ifndef ATINDEPENDENTSAMPLE_H
2 #define ATINDEPENDENTSAMPLE_H
3 
4 #include "AtHit.h"
5 #include "AtSample.h"
6 
7 #include <vector>
8 namespace RandomSample {
9 
17 class AtIndependentSample : public AtSample {
18 public:
19  virtual ~AtIndependentSample() = default;
20  virtual void SetHitsToSample(const std::vector<const AtHit *> &hits) override;
21 
22 protected:
23  virtual std::vector<double> PDF(const AtHit &hit) override = 0;
24 };
25 } // namespace RandomSample
26 
27 #endif //#ifndef ATINDEPENDENTSAMPLE_H
RandomSample::AtIndependentSample::~AtIndependentSample
virtual ~AtIndependentSample()=default
RandomSample
Definition: AtSampleConsensus.h:26
AtHit.h
RandomSample::AtIndependentSample
Interface for independent samples.
Definition: AtIndependentSample.h:17
RandomSample::AtIndependentSample::SetHitsToSample
virtual void SetHitsToSample(const std::vector< const AtHit * > &hits) override
Definition: AtIndependentSample.cxx:5
RandomSample::AtSample
Interface for randomly sampling AtHits.
Definition: AtSample.h:35
AtSample.h
RandomSample::AtIndependentSample::PDF
virtual std::vector< double > PDF(const AtHit &hit) override=0
AtHit
Point in space with charge.
Definition: AtHit.h:27