ShowerRecoAlg.h
Go to the documentation of this file.
1 #ifndef RECOTOOL_SHOWERRECOALG_H
2 #define RECOTOOL_SHOWERRECOALG_H
3 
4 #include <vector>
5 
6 #include "ShowerRecoAlgBase.h"
8 
9 namespace geo {
10  class GeometryCore;
11 }
12 
13 namespace detinfo {
14  class DetectorClocksData;
15  class DetectorPropertiesData;
16 }
17 
18 namespace showerreco {
19 
21  public:
22  /// Function to decide if to use Area or Pulse Amplitude for calculations
23  void
24  SetUseArea(bool on)
25  {
26  fUseArea = on;
27  }
28 
29  void
31  {
32  fVerbosity = verbose;
33  }
34 
35  void
37  {
38  fCaloAlg = alg;
39  }
40 
41  /// Function to set whether to use E correction
42  void
43  setEcorrection(bool on)
44  {
45  _Ecorrection = on;
46  }
47 
48  /// Function to reconstruct a shower
49  recob::Shower RecoOneShower(geo::GeometryCore const& geom,
50  detinfo::DetectorClocksData const& clockData,
51  detinfo::DetectorPropertiesData const& detProp,
52  std::vector<showerreco::ShowerCluster_t> const&);
53 
54  private:
56  bool _Ecorrection{true};
57  bool fVerbosity{true};
58  double fcalodEdxlength{1000};
59  double fdEdxlength{2.4};
60  bool fUseArea{true};
61  };
62 }
63 
64 #endif
65 /** @} */ // end of doxygen group
void CaloAlgo(calo::CalorimetryAlg *alg)
Definition: ShowerRecoAlg.h:36
void setEcorrection(bool on)
Function to set whether to use E correction.
Definition: ShowerRecoAlg.h:43
General LArSoft Utilities.
Description of geometry of one entire detector.
void SetUseArea(bool on)
Function to decide if to use Area or Pulse Amplitude for calculations.
Definition: ShowerRecoAlg.h:24
verbose
Definition: train.py:477
void Verbose(bool verbose)
Definition: ShowerRecoAlg.h:30
Contains all timing reference information for the detector.
Class def header for a class ShowerRecoAlgBase.
calo::CalorimetryAlg * fCaloAlg
Definition: ShowerRecoAlg.h:55
LArSoft geometry interface.
Definition: ChannelGeo.h:16