All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sbnana/sbnanalysis/ana/SBNOscReco/CosmicIDAlgs/GeometryCosmicIdAlg.h
Go to the documentation of this file.
1 #ifndef GEOMETRYCOSMICIDALG_H_SEEN
2 #define GEOMETRYCOSMICIDALG_H_SEEN
3 
4 
5 ///////////////////////////////////////////////
6 // GeometryCosmicIdAlg.h
7 //
8 // Functions for fiducial volume cosmic tagger
9 // T Brooks (tbrooks@fnal.gov), November 2018
10 ///////////////////////////////////////////////
11 
12 // framework
13 #include "fhiclcpp/ParameterSet.h"
14 #include "fhiclcpp/types/Table.h"
15 #include "fhiclcpp/types/Atom.h"
16 #include "canvas/Persistency/Common/Ptr.h"
17 
18 // LArSoft
22 
23 // sbncode
24 #include "core/ProviderManager.hh"
25 #include "Util.h"
26 
27 // c++
28 #include <vector>
29 #include <map>
30 
31 
32 namespace ana{
33 
35  public:
36 
37  struct Config {
38  using Name = fhicl::Name;
39  using Comment = fhicl::Comment;
40 
41  };
42 
43  GeometryCosmicIdAlg(const core::ProviderManager &manager, const Config& config);
44 
45  GeometryCosmicIdAlg(const core::ProviderManager &manager, const fhicl::ParameterSet& pset) :
46  GeometryCosmicIdAlg(manager, fhicl::Table<Config>(pset, {})()) {}
47 
49 
51 
52  void reconfigure(const Config& config);
53 
54  // Remove any tracks in different TPC to beam activity
55  bool GeometryCosmicId(recob::Track &track, std::vector<art::Ptr<recob::Hit>> &hits, std::map<geo::TPCID, bool> &tpc_flashes);
56 
57  private:
58 
60  };
61 
62 }
63 
64 #endif
bool GeometryCosmicId(recob::Track &track, std::vector< art::Ptr< recob::Hit >> &hits, std::map< geo::TPCID, bool > &tpc_flashes)
Declaration of signal hit object.
GeometryCosmicIdAlg(const core::ProviderManager &manager, const fhicl::ParameterSet &pset)
process_name use argoneut_mc_hitfinder track
process_name opflashCryoW ana
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
Access the description of detector geometry.
Interface to LArSoft services.
BEGIN_PROLOG vertical distance to the surface Name
Description of geometry of one entire detector.
Provides recob::Track data product.
GeometryCosmicIdAlg(const core::ProviderManager &manager, const Config &config)
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a &quot;fitted&quot; track: