45 auto& startPos = pfp.
TP3Ds[0].Pos;
46 auto& endPos = pfp.
TP3Ds[pfp.
TP3Ds.size() - 1].Pos;
52 float mindis0 = FLT_MAX;
53 float mindis1 = FLT_MAX;
81 std::map<int, float> omap;
83 for (
auto& tjID : pfp.
TjIDs) {
86 for (
auto& tp : tj.
Pts) {
87 for (
unsigned short ii = 0; ii < tp.Hits.size(); ++ii) {
88 if (!tp.UseHit[ii])
continue;
89 unsigned int iht = tp.Hits[ii];
95 (
int)
hit.WireID().Cryostat);
96 double startTick =
hit.PeakTime() -
hit.RMS();
97 double endTick =
hit.PeakTime() +
hit.RMS();
99 std::vector<sim::TrackIDE> tides;
101 for (
auto itide = tides.begin(); itide != tides.end(); ++itide) {
110 for (
auto& i : omap) {
111 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
simb::Origin_t Origin() const
Geometry information for a single TPC.
int GetOrigin(detinfo::DetectorClocksData const &clockData, TCSlice &slc, PFPStruct &pfp)
const art::Ptr< simb::MCTruth > & TrackIdToMCTruth_P(int id) const
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
const geo::GeometryCore * geom
static int max(int a, int b)
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
raw::ChannelID_t PlaneWireToChannel(WireID const &wireid) const
Returns the ID of the TPC channel connected to the specified wire.
Declaration of signal hit object.
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
Contains all timing reference information for the detector.
double MaxZ() const
Returns the world z coordinate of the end of the box.
void SaveCRInfo(detinfo::DetectorClocksData const &clockData, TCSlice &slc, PFPStruct &pfp, bool prt, bool fIsRealData)
std::vector< recob::Hit > const * allHits
std::vector< TP3D > TP3Ds
std::vector< float > cr_pfpxmin
Access the description of detector geometry.
TPCGeo const & TPC(unsigned int const tpc=0, unsigned int const cstat=0) const
Returns the specified TPC.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
unsigned int allHitsIndex
double MinY() const
Returns the world y coordinate of the start of the box.
void ClearCRInfo(TCSlice &slc)
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.