Definition at line 53 of file MergeEMShower3D_module.cc.
ems::ShowerInfo::ShowerInfo |
( |
int |
key, |
|
|
int |
gid, |
|
|
bool |
hasvtx, |
|
|
std::vector< double > |
vensum, |
|
|
recob::Track const & |
trk |
|
) |
| |
Definition at line 96 of file MergeEMShower3D_module.cc.
References recob::Track::DQdxAtPoint(), recob::Track::End(), fDir, fEnd, fFront, fHasVtx, fPlaneId, fVdqdx, geo::GeometryCore::Nplanes(), recob::Track::Vertex(), recob::Track::VertexDirection(), and geo::GeometryCore::View().
113 bool isplane =
false;
114 unsigned int nplanes = geom->
Nplanes();
115 for (
unsigned int p = 0; p < nplanes; ++p)
118 fVdqdx.push_back(
trk.DQdxAtPoint(0, view));
119 if (
trk.DQdxAtPoint(1, view) > 0)
120 {
fPlaneId = int(p); isplane =
true;}
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
std::vector< double > fVentot
unsigned int Nplanes(unsigned int tpc=0, unsigned int cstat=0) const
Returns the total number of wire planes in the specified TPC.
View_t View(geo::PlaneID const &pid) const
Returns the view (wire orientation) on the channels of specified TPC plane.
std::vector< double > fVdqdx
double ems::ShowerInfo::Angleto |
( |
TVector3 const & |
pmapoint | ) |
const |
double ems::ShowerInfo::GetAdcSum |
( |
void |
| ) |
const |
|
inline |
std::vector<double> ems::ShowerInfo::GetDedx |
( |
void |
| ) |
const |
|
inline |
TVector3 ems::ShowerInfo::GetDir |
( |
void |
| ) |
const |
|
inline |
TVector3 ems::ShowerInfo::GetEnd |
( |
void |
| ) |
const |
|
inline |
std::vector<double> ems::ShowerInfo::GetEnTot |
( |
void |
| ) |
const |
|
inline |
TVector3 ems::ShowerInfo::GetFront |
( |
void |
| ) |
const |
|
inline |
int ems::ShowerInfo::GetGid |
( |
void |
| ) |
const |
|
inline |
int ems::ShowerInfo::GetKey |
( |
void |
| ) |
const |
|
inline |
double ems::ShowerInfo::GetP0Dist |
( |
void |
| ) |
const |
|
inline |
int ems::ShowerInfo::GetPlaneId |
( |
void |
| ) |
const |
|
inline |
bool ems::ShowerInfo::HasConPoint |
( |
void |
| ) |
const |
|
inline |
Definition at line 130 of file MergeEMShower3D_module.cc.
References fDir, fFront, pma::GetProjectionToSegment(), and pma::SolveLeastSquares3D().
Referenced by ems::ShowersCollection::MinAngle().
132 double cosine0 = (this->
fFront - s1.fFront) * (1.0 / (this->
fFront - s1.fFront).Mag()) * s1.fDir;
133 double th0 = 180.0F * (std::acos(cosine0)) / TMath::Pi();
135 std::vector< std::pair<TVector3, TVector3> > lines;
136 lines.push_back(std::pair<TVector3, TVector3>(this->
fFront, this->
fFront + this->
fDir));
137 lines.push_back(std::pair<TVector3, TVector3>(s1.fFront, s1.fFront + s1.fDir));
142 double cosine1 = (pm - s1.fFront) * (1.0/(pm - s1.fFront).Mag()) * s1.fDir;
143 double th1 = 180.0F * (std::acos(cosine1)) / TMath::Pi();
146 if (th1 < th0) thmin = th1;
TVector2 GetProjectionToSegment(const TVector2 &p, const TVector2 &p0, const TVector2 &p1)
double SolveLeastSquares3D(const std::vector< std::pair< TVector3, TVector3 > > &lines, TVector3 &result)
void ems::ShowerInfo::SetP0Dist |
( |
const TVector3 |
p | ) |
|
|
inline |
double ems::ShowerInfo::fAdcSum |
|
private |
TVector3 ems::ShowerInfo::fDir |
|
private |
TVector3 ems::ShowerInfo::fEnd |
|
private |
TVector3 ems::ShowerInfo::fFront |
|
private |
int ems::ShowerInfo::fGId |
|
private |
bool ems::ShowerInfo::fHasVtx |
|
private |
int ems::ShowerInfo::fKey |
|
private |
double ems::ShowerInfo::fP0Dist |
|
private |
int ems::ShowerInfo::fPlaneId |
|
private |
std::vector<double> ems::ShowerInfo::fVdqdx |
|
private |
std::vector<double> ems::ShowerInfo::fVentot |
|
private |
The documentation for this class was generated from the following file: