49 Bin2D(
const TVector2 & center);
59 unsigned int Size()
const {
return fSize; }
61 std::vector< Hit2D* >
const &
GetHits2D(
void)
const {
return fHits2D; }
63 const TVector2 &
GetCenter(
void)
const {
return fCenter2D; }
65 std::vector< art::Ptr< recob::Hit > > GetIniHits(
const double radius = 10.0,
const unsigned int nhits = 10)
const;
77 EndPoint(
const Hit2D & center,
const std::vector< Hit2D* > &
hits,
unsigned int nbins);
79 TVector2
const &
GetPosition(
void)
const {
return fCenter2D.GetPointCm(); }
81 double GetAsymmetry(
void)
const;
87 std::vector< Bin2D >
const &
GetBins2D(
void)
const {
return fBins; }
91 const std::vector< art::Ptr< recob::Hit > >
GetIniHits(
void)
const {
return MaxChargeBin().GetIniHits(); }
93 size_t const &
GetPlane(
void)
const {
return fPlane; }
94 size_t const &
GetTPC(
void)
const {
return fTpc; }
95 size_t const &
GetCryo(
void)
const {
return fCryo; }
110 void ComputeMaxCharge();
111 void ComputeMeanCharge();
122 ~DirOfGamma() {
for (
unsigned int i = 0; i < fPoints2D.size(); ++i)
delete fPoints2D[i];}
126 std::vector< Hit2D* >
const &
GetHits2D(
void)
const {
return fPoints2D; }
128 std::vector< EndPoint >
const &
GetCandidates(
void)
const {
return fCandidates; }
132 fIsCandidateIDset =
true; fCandidateID = id;
133 fStartHit = fCandidates[id].GetHit();
134 fStartPoint = fCandidates[id].GetPosition();
135 fIniHits = fCandidates[id].MaxChargeBin().GetIniHits();
142 std::vector< art::Ptr< recob::Hit > >
const &
GetHits(
void) {
return fHits; }
146 std::vector< art::Ptr< recob::Hit > >
const &
GetIniHits(
void)
const {
return fIniHits;}
148 size_t const GetIdCl(
void)
const {
return fIdCl;}
162 std::vector< art::Ptr< recob::Hit > >
fHits;
164 void FindInitialPart(
void);
168 bool FindCandidates(
void);
169 void ComputeBaryCenter(
void);
170 void ComputeMaxDist(
void);
171 void ComputeMaxCharge(
void);
172 void ComputeFinalValues(
void);
183 public std::binary_function< Hit2D*, Hit2D*, bool>
190 double dx = p1->
GetPointCm().X() - center.X();
191 double dy = p1->
GetPointCm().Y() - center.Y();
192 double b1 = dx * dx + dy * dy;
195 double b2 = dx * dx + dy * dy;
205 public std::binary_function< Hit2D*, Hit2D*, bool>
212 double dx = p1->
GetPointCm().X() - center.X();
213 double dy = p1->
GetPointCm().Y() - center.Y();
214 double b1 = dx * dx + dy * dy;
217 double b2 = dx * dx + dy * dy;
std::vector< Hit2D * > fPoints2D
art::Ptr< recob::Hit > const & GetHitPtr(void) const
Declaration of signal hit object.
std::vector< EndPoint > const & GetCandidates(void) const
std::vector< Bin2D > const & GetBins2D(void) const
size_t const & GetCryo(void) const
bDistCentMore2D(const TVector2 &c)
std::vector< art::Ptr< recob::Hit > > const & GetHits(void)
unsigned int Size() const
std::vector< Bin2D > fBins
void SetIdCandidate(size_t id)
bDistCentLess2D(const TVector2 &c)
size_t const GetIdCl(void) const
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
std::vector< art::Ptr< recob::Hit > > fIniHits
art::Ptr< recob::Hit > const & GetFirstHit(void) const
const size_t GetIdCandidate(void)
art::Ptr< recob::Hit > const & GetHit(void) const
std::vector< Hit2D * > fPoints2D
size_t const & GetTPC(void) const
const TVector2 & fCenter2D
art::Ptr< recob::Hit > fHit
std::vector< Bin2D > fBins
const std::vector< art::Ptr< recob::Hit > > GetIniHits(void) const
size_t const & GetPlane(void) const
double GetTotCharge(void) const
Detector simulation of raw signals on wires.
const TVector2 & GetCenter(void) const
TVector2 const & GetPointCm(void) const
double GetCharge(void) const
double GetMaxCharge(void) const
std::vector< Hit2D * > const & GetHits2D(void) const
std::vector< Hit2D * > fHits2D
TVector2 const & GetFirstPoint(void) const
TVector2 const & GetPosition(void) const
Bin2D const & MaxChargeBin(void) const
std::vector< art::Ptr< recob::Hit > > const & GetIniHits(void) const
std::vector< Hit2D * > const & GetHits2D(void) const
std::vector< art::Ptr< recob::Hit > > fHits
TVector2 const & GetBaryCenterCm(void) const
art::Ptr< recob::Hit > fStartHit
std::vector< EndPoint > fCandidates
Hit2D(art::Ptr< recob::Hit > src)