LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ILArPandora.h
Go to the documentation of this file.
1 
7 #ifndef I_LAR_PANDORA_H
8 #define I_LAR_PANDORA_H 1
9 
12 
13 namespace recob {
14  class Hit;
15 }
16 namespace pandora {
17  class Pandora;
18 }
19 
20 //------------------------------------------------------------------------------------------------------------------------------------------
21 
22 namespace lar_pandora {
23 
24  typedef std::map<int, art::Ptr<recob::Hit>> IdToHitMap;
25 
29  class ILArPandora : public art::EDProducer {
30  public:
36  ILArPandora(fhicl::ParameterSet const& pset);
37 
41  virtual ~ILArPandora();
42 
43  protected:
47  virtual void CreatePandoraInstances() = 0;
48 
52  virtual void ConfigurePandoraInstances() = 0;
53 
57  virtual void DeletePandoraInstances() = 0;
58 
65  virtual void CreatePandoraInput(art::Event& evt, IdToHitMap& idToHitMap) = 0;
66 
73  virtual void ProcessPandoraOutput(art::Event& evt, const IdToHitMap& idToHitMap) = 0;
74 
78  virtual void RunPandoraInstances() = 0;
79 
83  virtual void ResetPandoraInstances() = 0;
84 
85  const pandora::Pandora* m_pPrimaryPandora;
86  };
87 
88  //------------------------------------------------------------------------------------------------------------------------------------------
89 
90  inline ILArPandora::ILArPandora(fhicl::ParameterSet const& pset)
91  : EDProducer(pset), m_pPrimaryPandora(nullptr)
92  {}
93 
94  //------------------------------------------------------------------------------------------------------------------------------------------
95 
97 
98 } // namespace lar_pandora
99 
100 #endif // #ifndef I_LAR_PANDORA_H
std::map< int, art::Ptr< recob::Hit > > IdToHitMap
Definition: ILArPandora.h:24
Reconstruction base classes.
ILArPandora class.
Definition: ILArPandora.h:29
const pandora::Pandora * m_pPrimaryPandora
The address of the primary pandora instance.
Definition: ILArPandora.h:85
virtual ~ILArPandora()
Destructor.
Definition: ILArPandora.h:96
TCEvent evt
Definition: DataStructs.cxx:8