#include "DirOfGamma.h"
Definition at line 74 of file DirOfGamma.h.
ems::EndPoint::EndPoint |
( |
const Hit2D & |
center, |
|
|
const std::vector< Hit2D * > & |
hits, |
|
|
unsigned int |
nbins |
|
) |
| |
Definition at line 89 of file DirOfGamma.cxx.
References ComputeMaxCharge(), ComputeMeanCharge(), geo::CryostatID::Cryostat, fBins, fCryo, FillBins(), fNbins, fPlane, fTpc, ems::Hit2D::GetHitPtr(), ems::Hit2D::GetPointCm(), geo::PlaneID::Plane, geo::TPCID::TPC, and recob::Hit::WireID().
95 for (
unsigned int i = 0; i <
fNbins; i++)
97 fBins.push_back(Bin2D(center.GetPointCm()));
104 fPlane = center.GetHitPtr()->WireID().Plane;
105 fTpc = center.GetHitPtr()->WireID().TPC;
106 fCryo = center.GetHitPtr()->WireID().Cryostat;
std::vector< Hit2D * > fPoints2D
std::vector< Bin2D > fBins
void ems::EndPoint::ComputeMaxCharge |
( |
| ) |
|
|
private |
void ems::EndPoint::ComputeMeanCharge |
( |
| ) |
|
|
private |
void ems::EndPoint::FillBins |
( |
| ) |
|
|
private |
Definition at line 109 of file DirOfGamma.cxx.
References bin, fBins, fCenter2D, fNbins, fPoints2D, ems::Hit2D::GetHitPtr(), ems::Hit2D::GetPointCm(), and art::Ptr< T >::key().
Referenced by EndPoint().
111 TVector2 vstart(0, 1);
113 unsigned int saveid = 0;
bool exist =
false;
114 for (
unsigned int i = 0; i <
fPoints2D.size(); i++)
118 TVector2 pos(
fPoints2D[i]->GetPointCm());
120 TVector2 vecp = pos - centre;
121 float sinsign = (vstart.X() * vecp.Y()) - (vstart.Y() * vecp.X());
122 float cosine = (vstart * vecp) / vecp.Mod();
123 float theta = 180.0F * (std::acos(cosine)) / TMath::Pi();
125 unsigned int id = 0;
double bin = double(360.0) / double(
fNbins);
127 if (sinsign >= 0)
id = int (theta / bin);
128 else if (sinsign < 0)
id = int (theta / bin) + (
fNbins / 2);
134 else {saveid = i; exist =
true;}
art::Ptr< recob::Hit > const & GetHitPtr(void) const
std::vector< Hit2D * > fPoints2D
std::vector< Bin2D > fBins
TVector2 const & GetPointCm(void) const
double ems::EndPoint::GetAsymmetry |
( |
void |
| ) |
const |
std::vector< Bin2D > const& ems::EndPoint::GetBins2D |
( |
void |
| ) |
const |
|
inline |
Definition at line 87 of file DirOfGamma.h.
std::vector< Bin2D > fBins
size_t const& ems::EndPoint::GetCryo |
( |
void |
| ) |
const |
|
inline |
Definition at line 89 of file DirOfGamma.h.
art::Ptr< recob::Hit > const & GetHitPtr(void) const
Definition at line 91 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(void) const
double ems::EndPoint::GetMaxCharge |
( |
void |
| ) |
const |
|
inline |
size_t const& ems::EndPoint::GetPlane |
( |
void |
| ) |
const |
|
inline |
TVector2 const& ems::EndPoint::GetPosition |
( |
void |
| ) |
const |
|
inline |
Definition at line 79 of file DirOfGamma.h.
TVector2 const & GetPointCm(void) const
size_t const& ems::EndPoint::GetTPC |
( |
void |
| ) |
const |
|
inline |
Bin2D const& ems::EndPoint::MaxChargeBin |
( |
void |
| ) |
const |
|
inline |
Definition at line 85 of file DirOfGamma.h.
std::vector< Bin2D > fBins
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:
- /cvmfs/larsoft.opensciencegrid.org/products/larreco/v07_10_02/source/larreco/DirOfGamma/DirOfGamma.h
- /cvmfs/larsoft.opensciencegrid.org/products/larreco/v07_10_02/source/larreco/DirOfGamma/DirOfGamma.cxx