62 pset.
get<
std::string>(
"InitialTrackSpacePointsOutputLabel"))
76 <<
"Start position not set, returning " << std::endl;
82 <<
"Direction not set, returning " << std::endl;
100 auto const spHandle = Event.getValidHandle<std::vector<recob::SpacePoint>>(
fPFParticleLabel);
107 std::vector<art::Ptr<recob::SpacePoint>> spacePoints = fmspp.at(pfparticle.
key());
110 if (spacePoints.empty()) {
113 <<
"No space points, returning " << std::endl;
119 spacePoints, ShowerStartPosition, ShowerDirection);
122 auto trackSpacePoints =
FindTrackSpacePoints(spacePoints, ShowerStartPosition, ShowerDirection);
125 std::vector<art::Ptr<recob::Hit>> trackHits;
126 for (
auto const& spacePoint : trackSpacePoints) {
129 trackHits.push_back(hit);
145 std::vector<art::Ptr<recob::SpacePoint>> trackSpacePoints;
147 for (
const auto& spacePoint : spacePoints) {
151 spacePoint, showerStartPosition, showerDirection);
153 spacePoint, showerStartPosition, showerDirection, proj);
158 trackSpacePoints.push_back(spacePoint);
160 return trackSpacePoints;
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Vector_t
Type for representation of momenta in 3D space.
Declaration of signal hit object.
void SetElement(T &dataproduct, const std::string &Name, bool checktag=false)
constexpr auto abs(T v)
Returns the absolute value of the argument.
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
double SpacePointPerpendicular(art::Ptr< recob::SpacePoint > const &sp, geo::Point_t const &vertex, geo::Vector_t const &direction) const
key_type key() const noexcept
bool CheckElement(const std::string &Name) const
int GetElement(const std::string &Name, T &Element) const
double SpacePointProjection(art::Ptr< recob::SpacePoint > const &sp, geo::Point_t const &vertex, geo::Vector_t const &direction) const
Detector simulation of raw signals on wires.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
decltype(auto) get(T &&obj)
ADL-aware version of std::to_string.
void OrderShowerSpacePoints(std::vector< art::Ptr< recob::SpacePoint >> &showersps, geo::Point_t const &vertex, geo::Vector_t const &direction) const
2D representation of charge deposited in the TDC/wire plane
const art::FindManyP< T1 > & GetFindManyP(const art::ValidHandle< std::vector< T2 >> &handle, const art::Event &evt, const art::InputTag &moduleTag)