CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1GctHardwareJetFinder.h
Go to the documentation of this file.
1 #ifndef L1GCTHARDWAREJETFINDER_H_
2 #define L1GCTHARDWAREJETFINDER_H_
3 
5 
6 #include <vector>
7 
13 /*
14  * \author Greg Heath
15  * \date June 2006
16  */
17 
19 public:
21  L1GctHardwareJetFinder(int id);
22 
23  ~L1GctHardwareJetFinder() override;
24 
26  friend std::ostream& operator<<(std::ostream& os, const L1GctHardwareJetFinder& algo);
27 
29  virtual void reset();
30 
32  void fetchInput() override;
33 
35  void process() override;
36 
37 protected:
38  // Each jetFinder must define the constants as private and copy the
39  // function definitions below.
40  unsigned maxRegionsIn() const override { return MAX_REGIONS_IN; }
41  unsigned centralCol0() const override { return CENTRAL_COL0; }
42  unsigned nCols() const override { return N_COLS; }
43 
44 private:
46  static const unsigned int MAX_REGIONS_IN;
47  static const unsigned int N_COLS;
48  static const unsigned int CENTRAL_COL0;
49 
54 
57 
58  // Additional clusters to avoid double counting of jets across eta=0
61 
63  void findProtoJets();
66  void findJets();
67 
69  void findLocalMaxima();
71  void findProtoClusters();
73  void findFinalClusters();
74 
79 };
80 
81 std::ostream& operator<<(std::ostream& os, const L1GctHardwareJetFinder& algo);
82 
83 #endif /*L1GCTHARDWAREJETFINDER_H_*/
unsigned m_numberOfClusters
The number of local Maxima/clusters found at each stage of clustering.
void findFinalClusters()
Convert protojets to final jets.
void process() override
process the data, fill output buffers
void findProtoJets()
The first stage of clustering, called by fetchInput()
void convertClustersToProtoJets()
Organise the pre-clustered jets into the ones we keep and those we send to the neighbour.
void findJets()
The second stage of clustering, called by process()
static const unsigned int MAX_REGIONS_IN
The real jetFinders must define these constants.
Gct version of a calorimeter region, used within GCT emulation.
Definition: L1GctRegion.h:17
RegionsVector m_clusters
Each local maximum becomes a cluster.
L1GctHardwareJetFinder(int id)
id is 0-8 for -ve Eta jetfinders, 9-17 for +ve Eta, for increasing Phi.
friend std::ostream & operator<<(std::ostream &os, const L1GctHardwareJetFinder &algo)
Overload &lt;&lt; operator.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
void fetchInput() override
get input data from sources
void findLocalMaxima()
Find local maxima in the search array.
Base class to allow implementation of jetFinder algorithms.
void findProtoClusters()
Convert local maxima to clusters.
unsigned nCols() const override
static const unsigned int N_COLS
virtual void reset()
include additional reset functionality
void convertClustersToOutputJets()
Organise the final clustered jets into L1GctJets.
Emulation of the hardware jet finder.
static const unsigned int CENTRAL_COL0
std::vector< L1GctRegion > RegionsVector
unsigned maxRegionsIn() const override
unsigned centralCol0() const override
L1GctRegion makeProtoJet(L1GctRegion localMax)
Method to make a single proto-jet.
RegionsVector m_localMaxima
Local vectors used during both stages of clustering.