00001 #ifndef HoughLine_h
00002 #define HoughLine_h
00003
00004 #include "NueAna/ParticlePID/ParticleFinder/Managed/ManagedCluster.h"
00005
00006 #include <vector>
00007 #include <math.h>
00008 #include "TObject.h"
00009 class HoughLine : public TObject
00010 {
00011 public:
00012 HoughLine();
00013 ~HoughLine();
00014
00015 HoughLine(double theta, double r, double offset_t, double offset_z);
00016 void SetHoughParams(double theta, double r, double offset_t, double offset_z);
00017
00018 double GetExpectedT(double z);
00019
00020 void Reset();
00021
00022 void ResetHits(int keep_bounds=0);
00023
00024 void AddCluster(Managed::ManagedCluster *cl);
00025
00026 std::vector<int> cluster_id;
00027
00028 double sum_e;
00029 double start_z;
00030 double start_t;
00031 double end_z;
00032 double end_t;
00033 int ncluster;
00034
00035 double theta;
00036 double r;
00037 double offset_t;
00038 double offset_z;
00039 double phi;
00040 double chi2;
00041
00042 int primary;
00043
00044 private:
00045
00046 ClassDef(HoughLine,1);
00047 };
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117 extern "C" {
00118 bool CompareLength(const HoughLine & l,const HoughLine &r);
00119 bool CompareForwardAndClusters(const HoughLine & l,const HoughLine &r);
00120 bool CompareTotalEnergy(const HoughLine & l,const HoughLine &r);
00121 bool CompareChi2(const HoughLine & l,const HoughLine &r);
00122 bool CompareT(const HoughLine & l,const HoughLine &r);
00123 }
00124
00125
00126 #endif
00127