BackTracker.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file BackTracker.h
3 /// \brief back track the reconstruction to the simulation
4 ///
5 /// \version $Id: Geometry.h,v 1.16 2009/11/03 22:53:20 brebel Exp $
6 /// \author brebel@fnal.gov
7 ////////////////////////////////////////////////////////////////////////
8 #ifndef GAR_CHEAT_BACKTRACKER_H
9 #define GAR_CHEAT_BACKTRACKER_H
10 
11 #include <vector>
12 #include <map>
13 
14 #include "fhiclcpp/ParameterSet.h"
20 
22 
23 
24 namespace gar{
25  namespace cheat{
26 
28 
29  public:
30 
31  using provider_type = BackTrackerCore; ///< type of service provider
32 
33  BackTracker(fhicl::ParameterSet const& pset,
35  ~BackTracker();
36 
37  void beginJob();
38 
39  /// Returns a pointer to the geometry service provider
40  provider_type const* provider() const { return static_cast<provider_type const*>(this); }
41 
42  // The Rebuild function rebuilds the stl containers needed for backtracking queries.
43  // It is called automatically at the time registered by the constructor. In this case,
44  // the constructor registers PreProcessEvent. See the art::ActivityRegistry class.
45  // art wants to see a ScheduleContext in the argument, but we don't need that.
47  void RebuildNoSC(art::Event const& evt);
48 
49 
50 
51  protected:
52 
53  private:
54 
55  };
56  }
57 }
58 
60 
61 #endif // CHEAT_BACKTRACK_H
BackTracker(fhicl::ParameterSet const &pset, art::ActivityRegistry &reg)
void RebuildNoSC(art::Event const &evt)
void Rebuild(art::Event const &evt, art::ScheduleContext)
#define DECLARE_ART_SERVICE(svc, scope)
General GArSoft Utilities.
code to link reconstructed objects back to the MC truth information
Definition: BackTracker.cc:22
BackTrackerCore(fhicl::ParameterSet const &pset)
TCEvent evt
Definition: DataStructs.cxx:7
provider_type const * provider() const
Returns a pointer to the geometry service provider.
Definition: BackTracker.h:40