ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtY.h
Go to the documentation of this file.
1 #ifndef ATY_H
2 #define ATY_H
3 
4 #include "AtIndependentSample.h" // for AtIndependentSample
5 
6 #include <vector> // for vector
7 class AtHit;
8 
9 namespace RandomSample {
10 
19 class AtY : public AtIndependentSample {
20 protected:
21  std::vector<int> fNotBeam; //< List of indicies for outer region of the TPC
22  std::vector<int> fBeam; //< List of indicies for inner region of the TPC
23 
24  double fBeamRadius{40}; // Radius of the beam in mm
25 
26 public:
27  virtual std::vector<AtHit> SampleHits(int N) override;
28  virtual void SetHitsToSample(const std::vector<const AtHit *> &hits) override;
29  virtual std::vector<double> PDF(const AtHit &hit) override { return {1}; }
30 };
31 } // namespace RandomSample
32 #endif // AWEIGHTEDY
RandomSample::AtY::SampleHits
virtual std::vector< AtHit > SampleHits(int N) override
Sample hits (AtHit) from fHits.
Definition: AtY.cxx:13
RandomSample::AtY::PDF
virtual std::vector< double > PDF(const AtHit &hit) override
Definition: AtY.h:29
RandomSample
Definition: AtSampleConsensus.h:26
RandomSample::AtY
Sample AtHits according to charge for Y shaped tracks.
Definition: AtY.h:19
RandomSample::AtY::fBeam
std::vector< int > fBeam
Definition: AtY.h:22
RandomSample::AtY::fBeamRadius
double fBeamRadius
Definition: AtY.h:24
RandomSample::AtY::fNotBeam
std::vector< int > fNotBeam
Definition: AtY.h:21
RandomSample::AtIndependentSample
Interface for independent samples.
Definition: AtIndependentSample.h:17
RandomSample::AtY::SetHitsToSample
virtual void SetHitsToSample(const std::vector< const AtHit * > &hits) override
Definition: AtY.cxx:60
AtIndependentSample.h
AtHit
Point in space with charge.
Definition: AtHit.h:27