LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
CFAlgo3DAngle.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CFALGO3DANGLE_H
15 #define RECOTOOL_CFALGO3DANGLE_H
16 
18 
19 namespace cmtool {
25  class CFAlgo3DAngle : public CFloatAlgoBase {
26 
27  public:
28 
30  CFAlgo3DAngle();
31 
33  virtual ~CFAlgo3DAngle(){};
34 
39  virtual float Float(const std::vector<const cluster::ClusterParamsAlg*> &clusters);
40 
45  virtual void FixPhiTheta(double &phi, double &theta) ;
46 
47  //Order the theta, phi, hits per plane to make cuts convenient
48  virtual void SetMaxMiddleMin(const double first, const double second, const double third, double &most, double &middle, double &least) ;
49 
50  void SetDebug(bool debug) { _debug = debug ; }
51 
52  void SetThetaCut(float theta_cut ) { _theta_cut = theta_cut ; }
53 
54  void SetPhiCut(float phi_cut ) { _phi_cut = phi_cut ; }
55 
56  void SetRatio(float ratio ) { _ratio_cut = ratio ; }
57 
58  virtual void Report();
59  virtual void Reset();
60 
61  protected:
62 
63  float _theta_cut ;
64  float _phi_cut ;
65  float _ratio_cut ;
66  float _debug ;
67 
68  //Histogram for charge profile
69 // TH1D *cProfile ;
70 
71  };
72 }
73 #endif
74  // end of doxygen group
75 
void SetRatio(float ratio)
Definition: CFAlgo3DAngle.h:56
virtual ~CFAlgo3DAngle()
Default destructor.
Definition: CFAlgo3DAngle.h:33
Class def header for a class CFloatAlgoBase.
virtual void SetMaxMiddleMin(const double first, const double second, const double third, double &most, double &middle, double &least)
CFAlgo3DAngle()
Default constructor.
DebugStuff debug
Definition: DebugStruct.cxx:4
void SetDebug(bool debug)
Definition: CFAlgo3DAngle.h:50
virtual float Float(const std::vector< const cluster::ClusterParamsAlg * > &clusters)
void SetThetaCut(float theta_cut)
Definition: CFAlgo3DAngle.h:52
void SetPhiCut(float phi_cut)
Definition: CFAlgo3DAngle.h:54
virtual void FixPhiTheta(double &phi, double &theta)
virtual void Reset()
Function to reset the algorithm instance called within CMergeManager/CMatchManager&#39;s Reset() ...