432 std::vector<art::Ptr<recob::Hit>> hitlist;
438 auto assns = std::make_unique<art::Assns<recob::SpacePoint, recob::Hit>>();
441 if (hits->size() < 20) {
453 std::vector<art::Ptr<recob::Hit>> xhits, uhits, vhits;
454 bool is2view =
fHitReader->readHits(hitlist, xhits, uhits, vhits);
456 std::vector<raw::ChannelID_t> xbadchans, ubadchans, vbadchans;
465 if (geom->
View(cid) ==
geo::kU) ubadchans.push_back(cid);
466 if (geom->
View(cid) ==
geo::kV) vbadchans.push_back(cid);
471 std::cout << xbadchans.size() <<
" X, " << ubadchans.size() <<
" U, " << vbadchans.size()
474 std::vector<CollectionWireHit*> cwires;
476 std::vector<InductionWireHit*> iwires;
478 std::vector<SpaceCharge*> orphanSCs;
485 std::cout <<
"Finding 2-view coincidences..." <<
std::endl;
486 TripletFinder
tf(detProp,
499 std::cout <<
"Finding XUV coincidences..." <<
std::endl;
500 TripletFinder
tf(detProp,
517 std::cout <<
"Iterating with no regularization..." <<
std::endl;
523 std::cout <<
"Now with regularization..." <<
std::endl;
const geo::GeometryCore * geom
bool fAllowBadInductionHit
void Minimize(const std::vector< CollectionWireHit * > &cwires, const std::vector< SpaceCharge * > &orphanSCs, double alpha, int maxiterations)
std::unique_ptr< reco3d::IHitReader > fHitReader
Expt specific tool for reading hits.
Planes which measure Z direction.
SigType_t SignalType(geo::PlaneID const &pid) const
Returns the type of signal on the channels of specified TPC plane.
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
std::map< const WireHit *, const recob::Hit * > HitMap_t
bool fAllowBadCollectionHit
void FillSystemToSpacePointsAndAssns(const std::vector< art::Ptr< recob::Hit >> &hitlist, const std::vector< CollectionWireHit * > &cwires, const std::vector< SpaceCharge * > &orphanSCs, const HitMap_t &hitmap, recob::ChargedSpacePointCollectionCreator &points, art::Assns< recob::SpacePoint, recob::Hit > &assn) const
ProductID put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
View_t View(geo::PlaneID const &pid) const
Returns the view (wire orientation) on the channels of specified TPC plane.
static ChargedSpacePointCollectionCreator forPtrs(art::Event &event, std::string const &instanceName={})
Static function binding a new object to a specific art event.
void BuildSystem(const std::vector< HitTriplet > &triplets, std::vector< CollectionWireHit * > &cwires, std::vector< InductionWireHit * > &iwires, std::vector< SpaceCharge * > &orphanSCs, bool incNei, HitMap_t &hitmap) const
void FillSystemToSpacePoints(const std::vector< CollectionWireHit * > &cwires, const std::vector< SpaceCharge * > &orphanSCs, recob::ChargedSpacePointCollectionCreator &pts) const
unsigned int ChannelID_t
Type representing the ID of a readout channel.
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
QTextStream & endl(QTextStream &s)
Signal from collection planes.