CMS 3D CMS Logo

L1GctTdrJetFinder.h
Go to the documentation of this file.
1 #ifndef L1GCTTDRJETFINDER_H_
2 #define L1GCTTDRJETFINDER_H_
3 
5 
6 #include <vector>
7 
46 /*
47  * \author Jim Brooke & Robert Frazier
48  * \date March 2006
49  */
50 
52 public:
54  L1GctTdrJetFinder(int id);
55 
56  ~L1GctTdrJetFinder() override;
57 
59  friend std::ostream& operator<<(std::ostream& os, const L1GctTdrJetFinder& algo);
60 
62  void fetchInput() override;
63 
65  void process() override;
66 
67 protected:
68  // Each jetFinder must define the constants as private and copy the
69  // function definitions below.
70  unsigned maxRegionsIn() const override { return MAX_REGIONS_IN; }
71  unsigned centralCol0() const override { return CENTRAL_COL0; }
72  unsigned int nCols() const override { return N_COLS; }
73 
74 private:
76  static const unsigned int MAX_REGIONS_IN;
77  static const unsigned int N_COLS;
78  static const unsigned int CENTRAL_COL0;
79 
81  void findJets();
82 
84  bool detectJet(const UShort centreIndex, const bool boundary = false) const;
85 
87  ULong calcJetEnergy(const UShort centreIndex, const bool boundary = false) const;
88 
90  L1CaloRegionDetId calcJetPosition(const UShort centreIndex) const;
91 
93  bool calcJetTauVeto(const UShort centreIndex, const bool boundary = false) const;
94 };
95 
96 std::ostream& operator<<(std::ostream& os, const L1GctTdrJetFinder& algo);
97 
98 #endif /*L1GCTTDRJETFINDER_H_*/
L1GctJetFinderBase::UShort
unsigned short int UShort
Definition: L1GctJetFinderBase.h:52
L1GctTdrJetFinder::MAX_REGIONS_IN
static const unsigned int MAX_REGIONS_IN
The real jetFinders must define these constants.
Definition: L1GctTdrJetFinder.h:76
L1GctTdrJetFinder::calcJetTauVeto
bool calcJetTauVeto(const UShort centreIndex, const bool boundary=false) const
Returns combined tauVeto of the 9 regions centred (physically) about centreIndex. Set boundary = true...
Definition: L1GctTdrJetFinder.cc:174
L1GctTdrJetFinder::calcJetEnergy
ULong calcJetEnergy(const UShort centreIndex, const bool boundary=false) const
Returns energy sum of the 9 regions centred (physically) about centreIndex. Set boundary = true if at...
Definition: L1GctTdrJetFinder.cc:149
L1GctTdrJetFinder::~L1GctTdrJetFinder
~L1GctTdrJetFinder() override
Definition: L1GctTdrJetFinder.cc:24
L1GctTdrJetFinder::L1GctTdrJetFinder
L1GctTdrJetFinder(int id)
id is 0-8 for -ve Eta jetfinders, 9-17 for +ve Eta, for increasing Phi.
Definition: L1GctTdrJetFinder.cc:16
L1GctTdrJetFinder::maxRegionsIn
unsigned maxRegionsIn() const override
Definition: L1GctTdrJetFinder.h:70
L1GctJetFinderBase
Base class to allow implementation of jetFinder algorithms.
Definition: L1GctJetFinderBase.h:48
L1GctTdrJetFinder::detectJet
bool detectJet(const UShort centreIndex, const bool boundary=false) const
Returns true if region index is the centre of a jet. Set boundary = true if at edge of HCAL.
Definition: L1GctTdrJetFinder.cc:87
L1GctTdrJetFinder::nCols
unsigned int nCols() const override
Definition: L1GctTdrJetFinder.h:72
operator<<
std::ostream & operator<<(std::ostream &os, const L1GctTdrJetFinder &algo)
L1GctTdrJetFinder::findJets
void findJets()
Here is the TDR 3x3 sliding window jet finder algorithm.
Definition: L1GctTdrJetFinder.cc:45
L1GctTdrJetFinder::process
void process() override
process the data, fill output buffers
Definition: L1GctTdrJetFinder.cc:35
cmsdt::algo
algo
Definition: constants.h:171
L1GctTdrJetFinder
3*3 sliding window algorithm jet finder.
Definition: L1GctTdrJetFinder.h:51
L1GctJetFinderBase.h
L1CaloRegionDetId
Definition: L1CaloRegionDetId.h:18
L1GctTdrJetFinder::calcJetPosition
L1CaloRegionDetId calcJetPosition(const UShort centreIndex) const
returns the encoded (eta, phi) position of the centre region
Definition: L1GctTdrJetFinder.cc:169
L1GctTdrJetFinder::CENTRAL_COL0
static const unsigned int CENTRAL_COL0
Definition: L1GctTdrJetFinder.h:78
L1GctTdrJetFinder::fetchInput
void fetchInput() override
get input data from sources
Definition: L1GctTdrJetFinder.cc:33
L1GctJetFinderBase::ULong
unsigned long int ULong
Definition: L1GctJetFinderBase.h:51
L1GctTdrJetFinder::centralCol0
unsigned centralCol0() const override
Definition: L1GctTdrJetFinder.h:71
L1GctTdrJetFinder::N_COLS
static const unsigned int N_COLS
Definition: L1GctTdrJetFinder.h:77
L1GctTdrJetFinder::operator<<
friend std::ostream & operator<<(std::ostream &os, const L1GctTdrJetFinder &algo)
Overload << operator.