LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
CFAlgoShowerCompat.h
Go to the documentation of this file.
1 
18 #ifndef CFALGOSHOWERCOMPAT_HH
19 #define CFALGOSHOWERCOMPAT_HH
20 
21 class TFile;
22 class TTree;
23 
25 
26 namespace cmtool {
33  public:
36 
37  //
38  // Author should be aware of 3 functions at least: Float, Report,
39  // and Reset. More possibly-useful functions can be found in the later
40  // part but commented out. All of these functions are virtual and defined
41  // in the base class.
42 
47  float Float(util::GeometryUtilities const&,
48  const std::vector<const cluster::ClusterParamsAlg*>& clusters) override;
49 
54  void Report() override;
55 
57  void Reset() override;
58 
60 
61  void WriteHaxFile()
62  {
63  _fout_hax->cd();
64  _ana_tree->Write();
65  _fout_hax->Close();
66  };
67 
71  //virtual void EventBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
72 
76  //virtual void EventEnd();
77 
83  //virtual void IterationBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
84 
88  //virtual void IterationEnd();
89 
90  private:
91  TTree* _ana_tree;
92  double _o_ang_avg;
93  double _o_ang_rms;
94  double _o_ang_wt_avg;
95  double _o_ang_wt_rms;
101 
102  TFile* _fout_hax;
103  };
104 }
105 #endif
106  // end of doxygen group
float Float(util::GeometryUtilities const &, const std::vector< const cluster::ClusterParamsAlg * > &clusters) override
Class def header for a class CFloatAlgoBase.
void Reset() override
Function to reset the algorithm instance, called together with manager&#39;s Reset()
void PrintClusterInfo(const cluster::ClusterParamsAlg &c)
CFAlgoShowerCompat()
Default constructor.