CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GctSimpleJetFinder.h
Go to the documentation of this file.
1 #ifndef L1GCTSIMPLEJETFINDER_H_
2 #define L1GCTSIMPLEJETFINDER_H_
3 
5 
6 #include <boost/cstdint.hpp> //for uint16_t
7 #include <vector>
8 
16 /*
17  * \author Greg Heath
18  * \date June 2006
19  */
20 
21 
22 
24 {
25  public:
26 
28  L1GctSimpleJetFinder(int id);
29 
31 
33  friend std::ostream& operator << (std::ostream& os, const L1GctSimpleJetFinder& algo);
34 
36  virtual void fetchInput();
37 
39  virtual void process();
40 
41  protected:
42 
43  // Each jetFinder must define the constants as private and copy the
44  // function definitions below.
45  virtual unsigned maxRegionsIn() const { return MAX_REGIONS_IN; }
46  virtual unsigned centralCol0() const { return CENTRAL_COL0; }
47  virtual unsigned nCols() const { return N_COLS; }
48 
49 private:
50 
52  static const unsigned int MAX_REGIONS_IN;
53  static const unsigned int N_COLS;
54  static const unsigned int CENTRAL_COL0;
55 
56  void findJets();
57 
58 };
59 
60 std::ostream& operator << (std::ostream& os, const L1GctSimpleJetFinder& algo);
61 
62 #endif /*L1GCTSIMPLEJETFINDER_H_*/
static const unsigned int CENTRAL_COL0
virtual unsigned nCols() const
simple jet finder for test purposes.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
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 &lt;&lt; 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