LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
CFAlgoShowerCompat.h
Go to the documentation of this file.
1 
18 #ifndef CFALGOSHOWERCOMPAT_HH
19 #define CFALGOSHOWERCOMPAT_HH
20 
22 #include "TTree.h"
23 #include "TFile.h"
24 
25 namespace cmtool {
32 
33  public:
34 
37 
39  virtual ~CFAlgoShowerCompat(){};
40 
41  //
42  // Author should be aware of 3 functions at least: Float, Report,
43  // and Reset. More possibly-useful functions can be found in the later
44  // part but commented out. All of these functions are virtual and defined
45  // in the base class.
46 
51  virtual float Float(const std::vector<const cluster::ClusterParamsAlg*> &clusters);
52 
57  virtual void Report();
58 
60  virtual void Reset();
61 
63 
64  void WriteHaxFile()
65  {
66  _fout_hax->cd();
67  _ana_tree->Write();
68  _fout_hax->Close();
69  };
70 
71 
75  //virtual void EventBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
76 
80  //virtual void EventEnd();
81 
87  //virtual void IterationBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
88 
92  //virtual void IterationEnd();
93 
94  private:
95 
96  TTree* _ana_tree;
97  double _o_ang_avg;
98  double _o_ang_rms;
99  double _o_ang_wt_avg;
106 
107  TFile* _fout_hax;
108 
109  };
110 }
111 #endif
112  // end of doxygen group
113 
Class def header for a class CFloatAlgoBase.
virtual ~CFAlgoShowerCompat()
Default destructor.
virtual float Float(const std::vector< const cluster::ClusterParamsAlg * > &clusters)
void PrintClusterInfo(const cluster::ClusterParamsAlg &c)
virtual void Reset()
Function to reset the algorithm instance, called together with manager&#39;s Reset()
CFAlgoShowerCompat()
Default constructor.