62 TVector3 ShowerStartPosition = {-999, -999, -999};
69 const art::FindManyP<recob::SpacePoint>& fmspp =
73 std::vector<art::Ptr<recob::SpacePoint>> spacePoints = fmspp.at(pfparticle.
key());
74 if (spacePoints.empty()) {
86 TVector3 ShowerDirection = {-999, -999, -999};
91 spacePoints, ShowerStartPosition, ShowerDirection);
98 spacePoints[lengthIter], ShowerStartPosition, ShowerDirection);
100 spacePoints[spacePoints.size() - 1], ShowerStartPosition, ShowerDirection);
102 double ShowerLengthError = ShowerMaxProjection - ShowerLength;
106 spacePoints, ShowerStartPosition, ShowerDirection);
113 spacePoints[perpIter], ShowerStartPosition, ShowerDirection);
117 double ShowerAngle = std::atan(ShowerWidth / ShowerLength);
118 double ShowerAngleError = -999;
void OrderShowerSpacePointsPerpendicular(std::vector< art::Ptr< recob::SpacePoint >> &showersps, TVector3 const &vertex, TVector3 const &direction) const
void OrderShowerSpacePoints(std::vector< art::Ptr< recob::SpacePoint >> &showersps, TVector3 const &vertex, TVector3 const &direction) const
void SetElement(T &dataproduct, const std::string &Name, bool checktag=false)
const art::FindManyP< T1 > & GetFindManyP(const art::ValidHandle< std::vector< T2 > > &handle, const art::Event &evt, const art::InputTag &moduleTag)
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError
key_type key() const noexcept
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
bool CheckElement(const std::string &Name) const
double SpacePointProjection(art::Ptr< recob::SpacePoint > const &sp, TVector3 const &vertex, TVector3 const &direction) const
int GetElement(const std::string &Name, T &Element) const
double SpacePointPerpendicular(art::Ptr< recob::SpacePoint > const &sp, TVector3 const &vertex, TVector3 const &direction) const
auto const & get(AssnsNode< L, R, D > const &r)
QTextStream & endl(QTextStream &s)