All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Util.h
Go to the documentation of this file.
1 #ifndef COSMICIDUTILS_H_SEEN
2 #define COSMICIDUTILS_H_SEEN
3 
4 
5 ///////////////////////////////////////////////
6 // CosmicIdUtils.h
7 //
8 // Reco utilities for doing cosmic removal in ana modules
9 // T Brooks (tbrooks@fnal.gov), November 2018
10 ///////////////////////////////////////////////
11 
12 // LArSoft
16 #include "nusimdata/SimulationBase/MCParticle.h"
17 #include "canvas/Persistency/Common/Ptr.h"
18 
19 // c++
20 #include <vector>
21 #include <utility>
22 #include <set>
23 
24 namespace ana{
25 namespace CosmicIdUtils{
26 
27  // Determine if there is a PDS flash in time with the neutrino beam
28  bool BeamFlash(std::vector<double> flashes, double beamTimeMin, double beamTimeMax);
29 
30  geo::TPCID DetectedInTPC(const std::vector<art::Ptr<recob::Hit>> &hits);
31  std::set<geo::TPCID> DetectedInTPCS(const std::vector<art::Ptr<recob::Hit>> &hits);
32 
33 }
34 }
35 
36 #endif
geo::TPCID DetectedInTPC(const std::vector< art::Ptr< recob::Hit >> &hits)
Definition: Util.cc:30
Declaration of signal hit object.
process_name opflashCryoW ana
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
std::set< geo::TPCID > DetectedInTPCS(const std::vector< art::Ptr< recob::Hit >> &hits)
Definition: Util.cc:21
bool BeamFlash(std::vector< double > flashes, double beamTimeMin, double beamTimeMax)
Definition: Util.cc:8
The data type to uniquely identify a TPC.
Definition: geo_types.h:386