PFParticleVarExtractor.h
Go to the documentation of this file.
1 #pragma once
2 
5 #include "VarExtractorBase.h"
6 
7 namespace VLN {
8 
10 {
11 public:
13  const std::string &prefix,
18  unsigned int plane = 2
19  );
20 
21  ~PFParticleVarExtractor() = default;
22 
23 protected:
24  void extractVars(const art::Event &evt, VarDict &vars) override;
25 
26 private:
27  void extractShowerVars(
28  const art::Event &evt,
29  const art::Ptr<recob::PFParticle> &particle,
30  VarDict &vars
31  );
32 
33  void extractTrackVars(
34  const art::Event &evt,
35  const art::Ptr<recob::PFParticle> &particle,
36  VarDict &vars
37  );
38 
39  void extractBasicVars(
40  const art::Event &evt,
41  const std::vector<art::Ptr<recob::Hit>> &hits,
42  VarDict &vars
43  );
44 
45 private:
50  unsigned int plane;
51 };
52 
53 }
54 
calo::CalorimetryAlg & algCalorimetry
void extractVars(const art::Event &evt, VarDict &vars) override
std::string string
Definition: nybbler.cc:12
struct vector vector
void extractShowerVars(const art::Event &evt, const art::Ptr< recob::PFParticle > &particle, VarDict &vars)
Definition: VarDict.h:8
Definition: utils.cxx:6
void extractTrackVars(const art::Event &evt, const art::Ptr< recob::PFParticle > &particle, VarDict &vars)
void extractBasicVars(const art::Event &evt, const std::vector< art::Ptr< recob::Hit >> &hits, VarDict &vars)
PFParticleVarExtractor(const std::string &prefix, calo::CalorimetryAlg &algCalorimetry, const std::string &labelPFPModule, const std::string &labelPFPTrack, const std::string &labelPFPShower, unsigned int plane=2)
TCEvent evt
Definition: DataStructs.cxx:7