10 bool beamFlash =
false;
11 std::sort(flashes.begin(), flashes.end());
13 for(
size_t i = 0; i < flashes.size(); i++){
14 double time = flashes[i];
15 if(time > beamTimeMin && time < beamTimeMax) beamFlash =
true;
22 std::set<geo::TPCID> ret;
23 for (
const art::Ptr<recob::Hit>
hit: hits) {
24 ret.insert(
hit->WireID().asTPCID());
32 for (
const art::Ptr<recob::Hit>
hit: hits) {
33 if (!ret) ret =
hit->WireID().asTPCID();
34 else if (ret !=
hit->WireID().asTPCID()) {
geo::TPCID DetectedInTPC(const std::vector< art::Ptr< recob::Hit >> &hits)
process_name opflashCryoW ana
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
std::set< geo::TPCID > DetectedInTPCS(const std::vector< art::Ptr< recob::Hit >> &hits)
bool BeamFlash(std::vector< double > flashes, double beamTimeMin, double beamTimeMax)
The data type to uniquely identify a TPC.