#include <DirOfGamma.h>
Definition at line 104 of file DirOfGamma.h.
ems::EndPoint::EndPoint |
( |
const Hit2D & |
center, |
|
|
const std::vector< Hit2D * > & |
hits, |
|
|
unsigned int |
nbins |
|
) |
| |
Definition at line 77 of file DirOfGamma.cxx.
81 for (
unsigned int i = 0; i <
fNbins; i++) {
82 fBins.push_back(Bin2D(center.GetPointCm()));
89 fPlane = center.GetHitPtr()->WireID().Plane;
90 fTpc = center.GetHitPtr()->WireID().TPC;
91 fCryo = center.GetHitPtr()->WireID().Cryostat;
std::vector< Hit2D * > fPoints2D
std::vector< Bin2D > fBins
void ems::EndPoint::ComputeMaxCharge |
( |
| ) |
|
|
private |
Definition at line 134 of file DirOfGamma.cxx.
137 unsigned int saveid = 0;
138 for (
unsigned int i = 0; i <
fNbins; i++)
std::vector< Bin2D > fBins
void ems::EndPoint::ComputeMeanCharge |
( |
| ) |
|
|
private |
Definition at line 148 of file DirOfGamma.cxx.
153 unsigned int iprev, inext;
162 double sumcharge = 0.0;
163 for (
unsigned int i = 0; i <
fNbins; i++)
165 sumcharge +=
fBins[i].GetTotCharge();
std::vector< Bin2D > fBins
void ems::EndPoint::FillBins |
( |
| ) |
|
|
private |
Definition at line 95 of file DirOfGamma.cxx.
97 TVector2 vstart(0, 1);
99 unsigned int saveid = 0;
101 for (
unsigned int i = 0; i <
fPoints2D.size(); i++) {
103 TVector2 pos(
fPoints2D[i]->GetPointCm());
105 TVector2 vecp = pos - centre;
106 float sinsign = (vstart.X() * vecp.Y()) - (vstart.Y() * vecp.X());
107 float cosine = (vstart * vecp) / vecp.Mod();
108 float theta = 180.0F * (std::acos(cosine)) / TMath::Pi();
111 double bin = double(360.0) / double(
fNbins);
114 id = int(theta / bin);
115 else if (sinsign < 0)
116 id = int(theta / bin) + (
fNbins / 2);
129 for (
unsigned int id = 0;
id <
fNbins;
id++)
std::vector< Hit2D * > fPoints2D
constexpr details::BinObj< T > bin(T value)
Returns a wrapper to print the specified data in binary format.
art::Ptr< recob::Hit > const & GetHitPtr() const
TVector2 const & GetPointCm() const
std::vector< Bin2D > fBins
double ems::EndPoint::GetAsymmetry |
( |
| ) |
const |
std::vector<Bin2D> const& ems::EndPoint::GetBins2D |
( |
| ) |
const |
|
inline |
size_t const& ems::EndPoint::GetCryo |
( |
| ) |
const |
|
inline |
art::Ptr<recob::Hit> const& ems::EndPoint::GetHit |
( |
| ) |
const |
|
inline |
Definition at line 135 of file DirOfGamma.h.
art::Ptr< recob::Hit > const & GetHitPtr() const
const std::vector<art::Ptr<recob::Hit> > ems::EndPoint::GetIniHits |
( |
| ) |
const |
|
inline |
Definition at line 141 of file DirOfGamma.h.
std::vector< art::Ptr< recob::Hit > > GetIniHits(const double radius=10.0, const unsigned int nhits=10) const
Bin2D const & MaxChargeBin() const
double ems::EndPoint::GetMaxCharge |
( |
| ) |
const |
|
inline |
size_t const& ems::EndPoint::GetPlane |
( |
| ) |
const |
|
inline |
TVector2 const& ems::EndPoint::GetPosition |
( |
| ) |
const |
|
inline |
Definition at line 109 of file DirOfGamma.h.
TVector2 const & GetPointCm() const
size_t const& ems::EndPoint::GetTPC |
( |
| ) |
const |
|
inline |
Bin2D const& ems::EndPoint::MaxChargeBin |
( |
| ) |
const |
|
inline |
std::vector<Bin2D> ems::EndPoint::fBins |
|
private |
Hit2D ems::EndPoint::fCenter2D |
|
private |
size_t ems::EndPoint::fCryo |
|
private |
double ems::EndPoint::fMaxCharge |
|
private |
size_t ems::EndPoint::fMaxChargeIdBin |
|
private |
double ems::EndPoint::fMeanCharge |
|
private |
size_t ems::EndPoint::fNbins |
|
private |
size_t ems::EndPoint::fPlane |
|
private |
std::vector<Hit2D*> ems::EndPoint::fPoints2D |
|
private |
size_t ems::EndPoint::fTpc |
|
private |
The documentation for this class was generated from the following files: