#include <DirOfGamma.h>
Definition at line 102 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++) {
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++) {
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)
129 for (
unsigned int id = 0;
id <
fNbins;
id++)
std::vector< Hit2D * > fPoints2D
art::Ptr< recob::Hit > const & GetHitPtr() const
key_type key() const noexcept
QTextStream & bin(QTextStream &s)
TVector2 const & GetPointCm() const
std::vector< Bin2D > fBins
double ems::EndPoint::GetAsymmetry |
( |
| ) |
const |
size_t const& ems::EndPoint::GetCryo |
( |
| ) |
const |
|
inline |
Definition at line 133 of file DirOfGamma.h.
art::Ptr< recob::Hit > const & GetHitPtr() const
Definition at line 139 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 107 of file DirOfGamma.h.
TVector2 const & GetPointCm() const
size_t const& ems::EndPoint::GetTPC |
( |
| ) |
const |
|
inline |
Bin2D const& ems::EndPoint::MaxChargeBin |
( |
| ) |
const |
|
inline |
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 |
size_t ems::EndPoint::fTpc |
|
private |
The documentation for this class was generated from the following files: