CMS 3D CMS Logo

L1GctSimpleJetFinder.h
Go to the documentation of this file.
1 #ifndef L1GCTSIMPLEJETFINDER_H_
2 #define L1GCTSIMPLEJETFINDER_H_
3 
5 
6 #include <vector>
7 
15 /*
16  * \author Greg Heath
17  * \date June 2006
18  */
19 
21 public:
23  L1GctSimpleJetFinder(int id);
24 
26 
28  friend std::ostream& operator<<(std::ostream& os, const L1GctSimpleJetFinder& algo);
29 
31  virtual void fetchInput();
32 
34  virtual void process();
35 
36 protected:
37  // Each jetFinder must define the constants as private and copy the
38  // function definitions below.
39  virtual unsigned maxRegionsIn() const { return MAX_REGIONS_IN; }
40  virtual unsigned centralCol0() const { return CENTRAL_COL0; }
41  virtual unsigned nCols() const { return N_COLS; }
42 
43 private:
45  static const unsigned int MAX_REGIONS_IN;
46  static const unsigned int N_COLS;
47  static const unsigned int CENTRAL_COL0;
48 
49  void findJets();
50 };
51 
52 std::ostream& operator<<(std::ostream& os, const L1GctSimpleJetFinder& algo);
53 
54 #endif /*L1GCTSIMPLEJETFINDER_H_*/
static const unsigned int CENTRAL_COL0
virtual unsigned nCols() const
simple jet finder for test purposes.
Base class to allow implementation of jetFinder algorithms.
static const unsigned int MAX_REGIONS_IN
The real jetFinders must define these constants.
friend std::ostream & operator<<(std::ostream &os, const L1GctSimpleJetFinder &algo)
Overload << operator.
L1GctSimpleJetFinder(int id)
id is 0-8 for -ve Eta jetfinders, 9-17 for +ve Eta, for increasing Phi.
virtual unsigned maxRegionsIn() const
virtual unsigned centralCol0() const
virtual void fetchInput()
get input data from sources
static const unsigned int N_COLS
virtual void process()
process the data, fill output buffers