13 class DetectorPropertiesData;
50 Bin2D(
const TVector2& center);
60 unsigned int Size()
const {
return fSize; }
62 std::vector<Hit2D*>
const&
GetHits2D()
const {
return fHits2D; }
64 const TVector2&
GetCenter()
const {
return fCenter2D; }
66 std::vector<art::Ptr<recob::Hit>> GetIniHits(
const double radius = 10.0,
67 const unsigned int nhits = 10)
const;
78 EndPoint(
const Hit2D& center,
const std::vector<Hit2D*>&
hits,
unsigned int nbins);
80 TVector2
const&
GetPosition()
const {
return fCenter2D.GetPointCm(); }
82 double GetAsymmetry()
const;
88 std::vector<Bin2D>
const&
GetBins2D()
const {
return fBins; }
92 const std::vector<art::Ptr<recob::Hit>>
GetIniHits()
const {
return MaxChargeBin().GetIniHits(); }
94 size_t const&
GetPlane()
const {
return fPlane; }
95 size_t const&
GetTPC()
const {
return fTpc; }
96 size_t const&
GetCryo()
const {
return fCryo; }
111 void ComputeMaxCharge();
112 void ComputeMeanCharge();
127 for (
unsigned int i = 0; i < fPoints2D.size(); ++i)
133 std::vector<Hit2D*>
const&
GetHits2D()
const {
return fPoints2D; }
140 fIsCandidateIDset =
true;
142 fStartHit = fCandidates[id].GetHit();
143 fStartPoint = fCandidates[id].GetPosition();
144 fIniHits = fCandidates[id].MaxChargeBin().GetIniHits();
151 std::vector<art::Ptr<recob::Hit>>
const&
GetHits() {
return fHits; }
155 std::vector<art::Ptr<recob::Hit>>
const&
GetIniHits()
const {
return fIniHits; }
171 std::vector<art::Ptr<recob::Hit>>
fHits;
173 void FindInitialPart();
177 bool FindCandidates();
178 void ComputeBaryCenter();
179 void ComputeMaxDist();
180 void ComputeMaxCharge();
181 void ComputeFinalValues();
197 double dx = p1->
GetPointCm().X() - center.X();
198 double dy = p1->
GetPointCm().Y() - center.Y();
199 double b1 = dx * dx + dy * dy;
202 double b2 = dx * dx + dy * dy;
217 double dx = p1->
GetPointCm().X() - center.X();
218 double dy = p1->
GetPointCm().Y() - center.Y();
219 double b1 = dx * dx + dy * dy;
222 double b2 = dx * dx + dy * dy;
TVector2 const & GetPosition() const
Declaration of signal hit object.
art::Ptr< recob::Hit > const & GetFirstHit() const
std::vector< art::Ptr< recob::Hit > > fHits
std::vector< art::Ptr< recob::Hit > > const & GetHits()
std::vector< EndPoint > const & GetCandidates() const
std::vector< Bin2D > const & GetBins2D() const
std::vector< Hit2D * > fPoints2D
bool operator()(Hit2D *p1, Hit2D *p2) const
bDistCentMore2D(const TVector2 &c)
std::vector< Hit2D * > fHits2D
size_t const & GetPlane() const
art::Ptr< recob::Hit > const & GetHit() const
unsigned int Size() const
art::Ptr< recob::Hit > const & GetHitPtr() const
std::vector< Bin2D > fBins
void SetIdCandidate(size_t id)
bDistCentLess2D(const TVector2 &c)
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
std::vector< Hit2D * > const & GetHits2D() const
const TVector2 & fCenter2D
std::vector< art::Ptr< recob::Hit > > const & GetIniHits() const
TVector2 const & GetBaryCenterCm() const
bool operator()(Hit2D *p1, Hit2D *p2) const
General LArSoft Utilities.
double GetTotCharge() const
Detector simulation of raw signals on wires.
size_t const & GetTPC() const
double GetMaxCharge() const
art::Ptr< recob::Hit > fHit
const std::vector< art::Ptr< recob::Hit > > GetIniHits() const
size_t const & GetCryo() const
const TVector2 & GetCenter() const
std::vector< EndPoint > fCandidates
TVector2 const & GetPointCm() const
Bin2D const & MaxChargeBin() const
TVector2 const & GetFirstPoint() const
std::vector< Hit2D * > const & GetHits2D() const
std::vector< Bin2D > fBins
art::Ptr< recob::Hit > fStartHit
std::vector< art::Ptr< recob::Hit > > fIniHits
std::vector< Hit2D * > fPoints2D