ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtChargeWeighted.cxx
Go to the documentation of this file.
1 #include "AtChargeWeighted.h"
2 
3 #include "AtHit.h"
4 #include "AtSample.h" // for RandomSample
5 
6 using namespace RandomSample;
7 std::vector<double> AtChargeWeighted::PDF(const AtHit &hit)
8 {
9  return {hit.GetCharge()};
10 }
RandomSample
Definition: AtSampleConsensus.h:26
AtChargeWeighted.h
AtHit.h
RandomSample::AtChargeWeighted::PDF
virtual std::vector< double > PDF(const AtHit &hit) override
Definition: AtChargeWeighted.cxx:7
AtSample.h
AtHit::GetCharge
Double_t GetCharge() const
Definition: AtHit.h:82
AtHit
Point in space with charge.
Definition: AtHit.h:27