CFAlgoTimeProf.h
Go to the documentation of this file.
1 /**
2  * \file CFAlgoTimeProf.h
3  *
4  * \ingroup CMTool
5  *
6  * \brief Class def header for a class CFAlgoTimeProf
7  *
8  * @author ryan
9  */
10 
11 /** \addtogroup CMTool
12 
13  @{*/
14 #ifndef RECOTOOL_CFALGOTIMEPROF_H
15 #define RECOTOOL_CFALGOTIMEPROF_H
16 
18 
19 namespace cmtool {
20  /**
21  \class CFAlgoTimeProf
22  User implementation for CFloatAlgoBase class
23  doxygen documentation!
24  */
25  class CFAlgoTimeProf : public CFloatAlgoBase {
26 
27  public:
28 
29  /// Default constructor
31 
32  /// Default destructor
33  virtual ~CFAlgoTimeProf();
34 
35  //
36  // Author should be aware of 3 functions at least: Float, Report,
37  // and Reset. More possibly-useful functions can be found in the later
38  // part but commented out. All of these functions are virtual and defined
39  // in the base class.
40 
41  virtual float Float(const std::vector<const cluster::ClusterParamsAlg*> &clusters);
42 
43  virtual void Report();
44 
45  /// Function to reset the algorithm instance, called together with manager's Reset()
46  virtual void Reset();
47 
48  /**
49  Optional function: called at the beginning of 1st iteration. This is called per event.
50  */
51  //virtual void EventBegin(const std::vector<cluster::ClusterParamsAlgNew> &clusters);
52 
53  /**
54  Optional function: called at the end of event ... after the last merging iteration is over.
55  */
56  //virtual void EventEnd();
57 
58  /**
59  Optional function: called at the beggining of each iterative loop.
60  This provides all clusters' information in case the algorithm need them. Note this
61  is called per iteration which may be more than once per event.
62  */
63  //virtual void IterationBegin(const std::vector<cluster::ClusterParamsAlgNew> &clusters);
64 
65  /**
66  Optional function: called at the end of each iterative loop.
67  */
68  //virtual void IterationEnd();
69 
70  private:
71 
72  float TProfCompare(std::vector<util::PxHit> hita ,std::vector<util::PxHit> hitb);
73 
74 
75  /*
76 (Form("sig_a"),Form("sig_a"),nts,0,nts);
77  TH1D* siginta(Form("sigint_a"),Form("sigint_a"),nts,0,nts);
78  TH1D* sigb(Form("sig_b"),Form("sig_b"),nts,0,nts);
79  TH1D* sigintb(Form("sigint_b"),Form("sigint_b"),nts,0,nts);
80  */
81 
82  };
83 }
84 #endif
85 /** @} */ // end of doxygen group
86 
Class def header for a class CFloatAlgoBase.
virtual ~CFAlgoTimeProf()
Default destructor.
virtual float Float(const std::vector< const cluster::ClusterParamsAlg * > &clusters)
CFAlgoTimeProf()
Default constructor.
virtual void Reset()
Function to reset the algorithm instance, called together with manager&#39;s Reset()
Definition: cfalgo.cc:3
float TProfCompare(std::vector< util::PxHit > hita, std::vector< util::PxHit > hitb)