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;
75 std::map<int, float> omap;
77 for (
auto& tjID : pfp.
TjIDs) {
80 for (
auto& tp : tj.
Pts) {
81 for (
unsigned short ii = 0; ii < tp.Hits.size(); ++ii) {
82 if (!tp.UseHit[ii])
continue;
83 unsigned int iht = tp.Hits[ii];
87 double startTick =
hit.PeakTime() -
hit.RMS();
88 double endTick =
hit.PeakTime() +
hit.RMS();
90 std::vector<sim::TrackIDE> tides;
92 for (
auto itide = tides.begin(); itide != tides.end(); ++itide) {
101 for (
auto& i : omap) {
102 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.
constexpr auto abs(T v)
Returns the absolute value of the argument.
int GetOrigin(detinfo::DetectorClocksData const &clockData, TCSlice &slc, PFPStruct &pfp)
TPCGeo const & TPC(TPCID const &tpcid=tpc_zero) const
Returns the specified TPC.
Access the description of 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
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
raw::ChannelID_t PlaneWireToChannel(WireID const &wireid) const
Returns the ID of the TPC channel connected to the specified wire.
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
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.