LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
LArPandoraShowerCheatingAlg.h
Go to the documentation of this file.
1 #ifndef LArPandoraShowerCheatingAlg_hxx
2 #define LArPandoraShowerCheatingAlg_hxx
3 
4 //LArSoft Includes
8 
10 #include "art_root_io/TFileService.h"
12 
13 namespace recob {
14  class Hit;
15  class PFParticle;
16 }
17 namespace simb {
18  class MCParticle;
19 }
20 
21 namespace detinfo {
22  class DetectorClocksData;
23 }
24 
25 namespace shower {
26  class LArPandoraShowerCheatingAlg;
27 }
28 
29 namespace reco::shower {
30  class ShowerElementHolder;
31 }
32 
33 #include <map>
34 #include <utility> // std::pair<>
35 #include <vector>
36 
38 public:
40 
41  std::map<int, const simb::MCParticle*> GetTrueParticleMap() const;
42  std::map<int, std::vector<int>> GetTrueChain(
43  std::map<int, const simb::MCParticle*>& trueParticles) const;
44  void CheatDebugEVD(detinfo::DetectorClocksData const& clockData,
45  const simb::MCParticle* trueParticle,
46  art::Event const& Event,
47  reco::shower::ShowerElementHolder& ShowerEleHolder,
48  const art::Ptr<recob::PFParticle>& pfparticle) const;
49 
50  int TrueParticleID(detinfo::DetectorClocksData const& clockData,
51  const art::Ptr<recob::Hit>& hit) const;
52 
53  std::pair<int, double> TrueParticleIDFromTrueChain(
54  detinfo::DetectorClocksData const& clockData,
55  std::map<int, std::vector<int>> const& ShowersMothers,
57  int planeid) const;
58 
59 private:
61 
66 
70 };
71 #endif
Reconstruction base classes.
shower::LArPandoraShowerAlg fLArPandoraShowerAlg
G4ID TrueParticleID(detinfo::DetectorClocksData const &clockData, const art::Ptr< recob::Hit > &pHit, const bool rollupUnsavedIDs)
The G4 ID of the true particle which deposits the most energy in the recob::Hit.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:289
void hits()
Definition: readHits.C:15
art::ServiceHandle< cheat::ParticleInventoryService > particleInventory
General LArSoft Utilities.
ART objects.
Detector simulation of raw signals on wires.
art::ServiceHandle< art::TFileService > tfs
Contains all timing reference information for the detector.