40 auto& startPos = pfp.
TP3Ds[0].Pos;
41 auto& endPos = pfp.
TP3Ds[pfp.
TP3Ds.size() - 1].Pos;
42 slc.
crt.
cr_pfpxmin.push_back(std::min(startPos[0], endPos[0]));
43 slc.
crt.
cr_pfpxmax.push_back(std::max(startPos[0], endPos[0]));
47 float mindis0 = FLT_MAX;
48 float mindis1 = FLT_MAX;
73 std::map<int, float> omap;
75 for (
auto& tjID : pfp.
TjIDs) {
77 for (
auto& tp : tj.
Pts) {
78 for (
unsigned short ii = 0; ii < tp.Hits.size(); ++ii) {
79 if (!tp.UseHit[ii])
continue;
80 unsigned int iht = tp.Hits[ii];
84 double startTick =
hit.PeakTime() -
hit.RMS();
85 double endTick =
hit.PeakTime() +
hit.RMS();
87 std::vector<sim::TrackIDE> tides;
89 for (
auto itide = tides.begin(); itide != tides.end(); ++itide) {
98 for (
auto& i : omap) {
99 if (i.second > maxe) {
std::vector< Trajectory > tjs
vector of all trajectories in each plane
std::vector< float > cr_pfpyzmindis
std::vector< float > cr_pfpxmax
const geo::WireReadoutGeom * wireReadoutGeom
simb::Origin_t Origin() const
Geometry information for a single TPC.
constexpr auto abs(T v)
Returns the absolute value of the argument.
int GetOrigin(detinfo::DetectorClocksData const &clockData, TCSlice &slc, PFPStruct &pfp)
Access the description of the physical detector geometry.
const art::Ptr< simb::MCTruth > & TrackIdToMCTruth_P(int id) const
void SaveCRInfo(detinfo::DetectorClocksData const &clockData, TCSlice &slc, PFPStruct &pfp, bool fIsRealData)
std::vector< TrajPoint > Pts
Trajectory points.
double MinZ() const
Returns the world z coordinate of the start of the box.
std::vector< int > cr_origin
virtual raw::ChannelID_t PlaneWireToChannel(WireID const &wireID) const =0
Returns the channel ID a wire is connected to.
const geo::GeometryCore * geom
Definition of data types for geometry description.
Detector simulation of raw signals on wires.
double MaxY() const
Returns the world y coordinate of the end of the box.
std::bitset< 16 > modes
number of points to find AveChg
std::vector< TCHit > slHits
Contains all timing reference information for the detector.
double MaxZ() const
Returns the world z coordinate of the end of the box.
std::vector< recob::Hit > const * allHits
std::vector< TP3D > TP3Ds
std::vector< float > cr_pfpxmin
unsigned int ChannelID_t
Type representing the ID of a readout channel.
unsigned int allHitsIndex
TPCGeo const & TPC(TPCID const &tpcid=details::tpc_zero) const
Returns the specified TPC.
double MinY() const
Returns the world y coordinate of the start of the box.
void ClearCRInfo(TCSlice &slc)
Interface to geometry for wire readouts .
constexpr Point origin()
Returns a origin position with a point of the specified type.
std::vector< sim::TrackIDE > ChannelToTrackIDEs(detinfo::DetectorClocksData const &clockData, raw::ChannelID_t channel, const double hit_start_time, const double hit_end_time) const
Encapsulate the construction of a single detector plane .