ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtWeightedY.h
Go to the documentation of this file.
1 #ifndef ATWEIGHTEDY_H
2 #define ATWEIGHTEDY_H
3 
4 #include "AtChargeWeighted.h"
5 
6 #include <vector> // for vector
7 class AtHit;
8 
9 namespace RandomSample {
10 
17 class AtWeightedY : public AtChargeWeighted {
18 protected:
19  std::vector<int> fVetoIn; //< List of indicies for outer region of the TPC
20  std::vector<int> fVetoOut; //< List of indicies for inner region of the TPC
21 
22 public:
23  virtual std::vector<AtHit> SampleHits(int N) override;
24  virtual void SetHitsToSample(const std::vector<const AtHit *> &hits) override;
25 };
26 } // namespace RandomSample
27 #endif // AWEIGHTEDY
RandomSample
Definition: AtSampleConsensus.h:26
AtChargeWeighted.h
RandomSample::AtChargeWeighted
Sample AtHits according to charge.
Definition: AtChargeWeighted.h:17
RandomSample::AtWeightedY::fVetoIn
std::vector< int > fVetoIn
Definition: AtWeightedY.h:19
RandomSample::AtWeightedY::fVetoOut
std::vector< int > fVetoOut
Definition: AtWeightedY.h:20
RandomSample::AtWeightedY::SetHitsToSample
virtual void SetHitsToSample(const std::vector< const AtHit * > &hits) override
Definition: AtWeightedY.cxx:33
RandomSample::AtWeightedY::SampleHits
virtual std::vector< AtHit > SampleHits(int N) override
Sample hits (AtHit) from fHits.
Definition: AtWeightedY.cxx:13
RandomSample::AtWeightedY
Sample AtHits according to charge for Y shaped tracks.
Definition: AtWeightedY.h:17
AtHit
Point in space with charge.
Definition: AtHit.h:27