Base class to allow implementation of jetFinder algorithms. More...
#include <L1GctJetFinderBase.h>
Classes | |
struct | hfTowerSumsType |
Public Types | |
typedef L1GctTwosComplement < L1GctInternEtSum::kJetMissEtNBits > | etCompInternJfType |
typedef L1GctUnsignedInt < L1GctInternEtSum::kTotEtOrHtNBits > | etHadType |
typedef L1GctUnsignedInt < L1GctInternEtSum::kTotEtOrHtNBits > | etTotalType |
typedef L1GctTwosComplement < L1GctInternHtMiss::kJetMissHtNBits > | htCompInternJfType |
typedef std::vector< L1GctJetCand > | JetVector |
typedef L1GctJet::lutPtr | lutPtr |
typedef std::vector< lutPtr > | lutPtrVector |
enum | maxValues { etTotalMaxValue = L1GctInternEtSum::kTotEtOrHtMaxValue, htTotalMaxValue = L1GctInternEtSum::kTotEtOrHtMaxValue } |
typedef Pipeline< L1GctJet > | RawJetPipeline |
typedef std::vector< L1GctJet > | RawJetVector |
typedef std::vector< L1GctRegion > | RegionsVector |
typedef unsigned long int | ULong |
typedef unsigned short int | UShort |
Public Member Functions | |
virtual void | fetchInput ()=0 |
get input data from sources; to be filled in by derived jetFinders More... | |
unsigned | getCenJetSeed () const |
unsigned | getEtaBoundry () const |
etTotalType | getEtSum () const |
Get the scalar sum of Et summed over the input regions. More... | |
etCompInternJfType | getExSum () const |
Get the x component of vector Et summed over the input regions. More... | |
etCompInternJfType | getEySum () const |
Get the y component of vector Et summed over the input regions. More... | |
unsigned | getFwdJetSeed () const |
hfTowerSumsType | getHfSums () const |
Get the Hf tower Et sums and tower-over-threshold counts. More... | |
unsigned | getHtmSumJetThreshold () const |
etHadType | getHtSum () const |
Get the scalar sum of Ht summed over jets above threshold. More... | |
unsigned | getHttSumJetThreshold () const |
htCompInternJfType | getHxSum () const |
Get the x component of vector Ht summed over jets above threshold. More... | |
htCompInternJfType | getHySum () const |
Get the y component of vector Ht summed over jets above threshold. More... | |
RegionsVector | getInputRegions () const |
Return input data. More... | |
std::vector< L1GctInternEtSum > | getInternalEtSums () const |
get et sums in raw format - to be stored in the event More... | |
std::vector< L1GctInternHtMiss > | getInternalHtMiss () const |
std::vector< L1GctInternJetData > | getInternalJets () const |
get output jets in raw format - to be stored in the event More... | |
const lutPtrVector | getJetEtCalLuts () const |
Return pointers to calibration LUTs. More... | |
JetVector | getJets () const |
Get the located jets. More... | |
RegionsVector | getKeptProtoJets () const |
get protoJets kept More... | |
RawJetVector | getRawJets () const |
get output jets in raw format More... | |
RegionsVector | getRcvdProtoJets () const |
get protoJets received from neighbour More... | |
RegionsVector | getSentProtoJets () const |
get protoJets sent to neighbour More... | |
unsigned | getTauIsolationThreshold () const |
unsigned | getTauJetSeed () const |
L1GctJetFinderBase (int id) | |
id is 0-8 for -ve Eta jetfinders, 9-17 for +ve Eta, for increasing Phi. More... | |
virtual void | process ()=0 |
process the data, fill output buffers; to be filled in by derived jetFinders More... | |
void | setEnergySumMasks (const L1GctChannelMask *chmask) |
Set masks for energy summing. More... | |
void | setInputRegion (const L1CaloRegion ®ion) |
Set input data. More... | |
void | setJetEtCalibrationLuts (const lutPtrVector &jfluts) |
Set pointer to calibration Lut - needed to complete the setup. More... | |
void | setJetFinderParams (const L1GctJetFinderParams *jfpars) |
Set pointer to parameters - needed to complete the setup. More... | |
void | setNeighbourJetFinders (const std::vector< L1GctJetFinderBase * > &neighbours) |
Set pointers to neighbours - needed to complete the setup. More... | |
bool | setupOk () const |
Check setup is Ok. More... | |
void | setupTauAlgo (const bool useImprovedAlgo, const bool ignoreVetoBitsForIsolation) |
Setup the tau algorithm parameters. More... | |
~L1GctJetFinderBase () | |
Public Member Functions inherited from L1GctProcessor | |
L1GctProcessor () | |
void | reset () |
complete reset of processor More... | |
void | setBxRange (const int firstBx, const int numberOfBx) |
define the bunch crossing range to process More... | |
void | setNextBx (const int bxnum) |
clear input data buffers and process a new bunch crossing More... | |
void | setTerse () |
bool | setupOk () const |
Method to check the setup for this processor. Returns true by default. More... | |
void | setVerbose () |
control output messages More... | |
virtual | ~L1GctProcessor () |
Static Public Attributes | |
static const unsigned int | COL_OFFSET = L1GctJetFinderParams::NUMBER_ETA_VALUES+N_EXTRA_REGIONS_ETA00 |
The index offset between columns. More... | |
static const unsigned int | MAX_JETS_OUT = 6 |
Max of 6 jets found per jetfinder in a 2*11 search area. More... | |
static const unsigned int | N_EXTRA_REGIONS_ETA00 = 2 |
Number of additional regions to process on the "wrong" side of eta=0 (determines COL_OFFSET) More... | |
static const unsigned int | N_JF_PER_WHEEL = ((L1CaloRegionDetId::N_PHI)/2) |
No of jetFinders per Wheel. More... | |
Protected Types | |
enum | fetchType { TOP, BOT, TOPBOT } |
different ways of getting the neighbour data More... | |
Protected Member Functions | |
etTotalType | calcEtStrip (const UShort strip) const |
Calculates total (raw) energy in a phi strip. More... | |
hfTowerSumsType | calcHfSums () const |
Calculates Et sum and number of towers over threshold in Hf. More... | |
etTotalType | calcHtStrip (const UShort strip) const |
Calculates total calibrated energy in jets (Ht) sum. More... | |
virtual unsigned | centralCol0 () const |
void | doEnergySums () |
Fill the Et strip sums and Ht sum. All jetFinders should call this in process(). More... | |
void | doEtSums () |
Calculates scalar and vector sum of Et over input regions. More... | |
void | doHtSums () |
Calculates scalar and vector sum of Ht over calibrated jets. More... | |
void | fetchProtoJetsFromNeighbour (const fetchType ft) |
fetch the protoJets from neighbour jetFinder More... | |
virtual unsigned | maxRegionsIn () const |
virtual unsigned | nCols () const |
virtual void | resetPipelines () |
virtual void | resetProcessor () |
Separate reset methods for the processor itself and any data stored in pipelines. More... | |
virtual void | setupObjects () |
Initialise inputs with null objects for the correct bunch crossing if required. More... | |
void | sortJets () |
Sort the found jets. All jetFinders should call this in process(). More... | |
Protected Member Functions inherited from L1GctProcessor | |
int | bxAbs () const |
int | bxMax () const |
int | bxMin () const |
Support for multiple beam crossing operation. More... | |
int | bxRel () const |
int | numOfBx () const |
Protected Attributes | |
unsigned | m_CenJetSeed |
unsigned | m_EtaBoundry |
bool | m_EtmMask [11] |
bool | m_EttMask [11] |
unsigned | m_FwdJetSeed |
bool | m_gotChannelMask |
Remember whether channel mask have been stored. More... | |
bool | m_gotJetEtCalLuts |
Remember whether jet Et calibration Lut pointers have been stored. More... | |
bool | m_gotJetFinderParams |
Remember whether jetfinder parameters have been stored. More... | |
bool | m_gotNeighbourPointers |
Remember whether the neighbour pointers have been stored. More... | |
bool | m_HtmMask [11] |
unsigned | m_HtmSumJetThreshold |
bool | m_HttMask [11] |
unsigned | m_HttSumJetThreshold |
int | m_id |
algo ID More... | |
bool | m_idInRange |
Remember whether range check on the input ID was ok. More... | |
bool | m_ignoreTauVetoBitsForIsolation |
RegionsVector | m_inputRegions |
lutPtrVector | m_jetEtCalLuts |
Jet Et Conversion LUT pointer. More... | |
RegionsVector | m_keptProtoJets |
List of pre-clustered jets retained locally as input to the final clustering. More... | |
unsigned | m_minColThisJf |
parameter to determine which Regions belong in our acceptance More... | |
std::vector< L1GctJetFinderBase * > | m_neighbourJetFinders |
Store neighbour pointers. More... | |
etTotalType | m_outputEtSum |
output Et strip sums and Ht - refactored More... | |
etCompInternJfType | m_outputExSum |
etCompInternJfType | m_outputEySum |
hfTowerSumsType | m_outputHfSums |
etHadType | m_outputHtSum |
htCompInternJfType | m_outputHxSum |
htCompInternJfType | m_outputHySum |
RawJetVector | m_outputJets |
output jets More... | |
bool | m_positiveEtaWheel |
RegionsVector | m_rcvdProtoJets |
List of pre-clustered jets received from neighbour before the final stage of clustering. More... | |
RegionsVector | m_sentProtoJets |
List of pre-clustered jets to be sent to neighbour after the first stage of clustering. More... | |
JetVector | m_sortedJets |
unsigned | m_tauIsolationThreshold |
unsigned | m_TauJetSeed |
bool | m_useImprovedTauAlgo |
Setup parameters for the tau jet algorithm. More... | |
Protected Attributes inherited from L1GctProcessor | |
bool | m_verbose |
Flag to control output messages. More... | |
Private Member Functions | |
template<int kBitsInput, int kBitsOutput> | |
L1GctTwosComplement< kBitsOutput > | etComponentForJetFinder (const L1GctUnsignedInt< kBitsInput > &etStrip0, const unsigned &fact0, const L1GctUnsignedInt< kBitsInput > &etStrip1, const unsigned &fact1) |
Private method for calculating MEt and MHt components. More... | |
Private Attributes | |
Pipeline< etTotalType > | m_outputEtSumPipe |
"Pipeline memories" for energy sums More... | |
Pipeline< etCompInternJfType > | m_outputExSumPipe |
Pipeline< etCompInternJfType > | m_outputEySumPipe |
Pipeline< etHadType > | m_outputHtSumPipe |
Pipeline< htCompInternJfType > | m_outputHxSumPipe |
Pipeline< htCompInternJfType > | m_outputHySumPipe |
RawJetPipeline | m_outputJetsPipe |
Output jets "pipeline memory" for checking. More... | |
Static Private Attributes | |
static const unsigned int | CENTRAL_COL0 = 0 |
static const unsigned int | MAX_REGIONS_IN = L1GctJetFinderBase::COL_OFFSET*L1GctJetFinderBase::N_COLS |
The real jetFinders must define these constants. More... | |
static const unsigned int | N_COLS = 2 |
Friends | |
std::ostream & | operator<< (std::ostream &os, const L1GctJetFinderBase &algo) |
Overload << operator. More... | |
Base class to allow implementation of jetFinder algorithms.
The base class defines the reset() method, setXxx() and getXxx() methods. Individual jetFinders must define the fetchInput() and process() methods, using protected methods of the base class where necessary.
The jetFinder looks for jets over a 2x11 search area. Its input region are pushed in from the appropriate (phi, eta) range, including across the eta=0 boundary between Wheels. The input regions are copied into a vector of dimension N_COLS*COL_OFFSET.
The array of input regions is filled in a certain order with respect to the index i:
The jetFinder can also pull in "proto-jets" from adjacent jetFinders. If required by the algorithm, these must be calculated in the fetchInput() method;
Definition at line 50 of file L1GctJetFinderBase.h.
typedef L1GctTwosComplement< L1GctInternEtSum::kJetMissEtNBits > L1GctJetFinderBase::etCompInternJfType |
Definition at line 62 of file L1GctJetFinderBase.h.
Definition at line 61 of file L1GctJetFinderBase.h.
Definition at line 60 of file L1GctJetFinderBase.h.
typedef L1GctTwosComplement< L1GctInternHtMiss::kJetMissHtNBits > L1GctJetFinderBase::htCompInternJfType |
Definition at line 63 of file L1GctJetFinderBase.h.
typedef std::vector<L1GctJetCand> L1GctJetFinderBase::JetVector |
Definition at line 58 of file L1GctJetFinderBase.h.
Definition at line 110 of file L1GctJetFinderBase.h.
typedef std::vector<lutPtr> L1GctJetFinderBase::lutPtrVector |
Definition at line 111 of file L1GctJetFinderBase.h.
Definition at line 59 of file L1GctJetFinderBase.h.
typedef std::vector<L1GctJet> L1GctJetFinderBase::RawJetVector |
Definition at line 57 of file L1GctJetFinderBase.h.
typedef std::vector<L1GctRegion> L1GctJetFinderBase::RegionsVector |
Definition at line 56 of file L1GctJetFinderBase.h.
typedef unsigned long int L1GctJetFinderBase::ULong |
Definition at line 54 of file L1GctJetFinderBase.h.
typedef unsigned short int L1GctJetFinderBase::UShort |
Definition at line 55 of file L1GctJetFinderBase.h.
|
protected |
different ways of getting the neighbour data
Enumerator | |
---|---|
TOP | |
BOT | |
TOPBOT |
Definition at line 219 of file L1GctJetFinderBase.h.
L1GctJetFinderBase::L1GctJetFinderBase | ( | int | id | ) |
id is 0-8 for -ve Eta jetfinders, 9-17 for +ve Eta, for increasing Phi.
Definition at line 24 of file L1GctJetFinderBase.cc.
References m_id, m_idInRange, L1GctProcessor::m_verbose, L1CaloRegionDetId::N_PHI, and L1GctProcessor::reset().
L1GctJetFinderBase::~L1GctJetFinderBase | ( | ) |
Definition at line 61 of file L1GctJetFinderBase.cc.
|
protected |
Calculates total (raw) energy in a phi strip.
|
protected |
Calculates Et sum and number of towers over threshold in Hf.
Definition at line 470 of file L1GctJetFinderBase.cc.
References centralCol0(), COL_OFFSET, i, m_inputRegions, nt, evf::evtn::offset(), and groupFilesInBlocks::temp.
Referenced by doEnergySums().
|
protected |
Calculates total calibrated energy in jets (Ht) sum.
|
inlineprotectedvirtual |
Reimplemented in L1GctTdrJetFinder, L1GctHardwareJetFinder, L1GctSimpleJetFinder, and L1GctNullJetFinder.
Definition at line 330 of file L1GctJetFinderBase.h.
References CENTRAL_COL0.
Referenced by calcHfSums(), and doEtSums().
|
protected |
Fill the Et strip sums and Ht sum. All jetFinders should call this in process().
Definition at line 358 of file L1GctJetFinderBase.cc.
References calcHfSums(), doEtSums(), doHtSums(), and m_outputHfSums.
Referenced by L1GctNullJetFinder::process(), L1GctHardwareJetFinder::process(), and L1GctTdrJetFinder::process().
|
protected |
Calculates scalar and vector sum of Et over input regions.
Definition at line 373 of file L1GctJetFinderBase.cc.
References L1GctProcessor::bxRel(), centralCol0(), COL_OFFSET, etTotalMaxValue, i, m_EttMask, m_id, m_inputRegions, m_outputEtSum, m_outputEtSumPipe, m_outputExSum, m_outputExSumPipe, m_outputEySum, m_outputEySumPipe, N_EXTRA_REGIONS_ETA00, evf::evtn::offset(), L1GctUnsignedInt< nBits >::overFlow(), L1GctUnsignedInt< nBits >::setOverFlow(), and L1GctUnsignedInt< nBits >::setValue().
Referenced by doEnergySums().
|
protected |
Calculates scalar and vector sum of Ht over calibrated jets.
Definition at line 412 of file L1GctJetFinderBase.cc.
References L1GctProcessor::bxRel(), htTotalMaxValue, i, m_HtmMask, m_HtmSumJetThreshold, m_HttMask, m_HttSumJetThreshold, m_id, m_jetEtCalLuts, m_outputHtSum, m_outputHtSumPipe, m_outputHxSum, m_outputHxSumPipe, m_outputHySum, m_outputHySumPipe, m_outputJets, MAX_JETS_OUT, L1GctUnsignedInt< nBits >::overFlow(), L1GctTwosComplement< nBits >::overFlow(), L1GctUnsignedInt< nBits >::setOverFlow(), L1GctTwosComplement< nBits >::setOverFlow(), and L1GctUnsignedInt< nBits >::setValue().
Referenced by doEnergySums().
|
private |
Private method for calculating MEt and MHt components.
Definition at line 507 of file L1GctJetFinderBase.cc.
References L1GctProcessor::m_verbose, L1GctUnsignedInt< nBits >::overFlow(), groupFilesInBlocks::temp, and L1GctUnsignedInt< nBits >::value().
|
pure virtual |
get input data from sources; to be filled in by derived jetFinders
Implements L1GctProcessor.
Implemented in L1GctTdrJetFinder, L1GctHardwareJetFinder, L1GctSimpleJetFinder, and L1GctNullJetFinder.
Referenced by L1GctJetLeafCard::fetchInput().
|
protected |
fetch the protoJets from neighbour jetFinder
Helper functions for the fetchInput() and process() methods fetch the protoJets from neighbour jetFinder
Definition at line 317 of file L1GctJetFinderBase.cc.
References BOT, j, m_neighbourJetFinders, m_rcvdProtoJets, MAX_JETS_OUT, groupFilesInBlocks::temp, TOP, and TOPBOT.
Referenced by L1GctHardwareJetFinder::process().
|
inline |
|
inline |
|
inline |
Get the scalar sum of Et summed over the input regions.
Definition at line 189 of file L1GctJetFinderBase.h.
References m_outputEtSum.
Referenced by L1GctJetLeafCard::process().
|
inline |
Get the x component of vector Et summed over the input regions.
Definition at line 190 of file L1GctJetFinderBase.h.
References m_outputExSum.
Referenced by L1GctJetLeafCard::process().
|
inline |
Get the y component of vector Et summed over the input regions.
Definition at line 191 of file L1GctJetFinderBase.h.
References m_outputEySum.
Referenced by L1GctJetLeafCard::process().
|
inline |
|
inline |
Get the Hf tower Et sums and tower-over-threshold counts.
Definition at line 196 of file L1GctJetFinderBase.h.
References m_outputHfSums.
Referenced by L1GctJetLeafCard::process().
|
inline |
Definition at line 205 of file L1GctJetFinderBase.h.
References m_HtmSumJetThreshold.
|
inline |
Get the scalar sum of Ht summed over jets above threshold.
Definition at line 192 of file L1GctJetFinderBase.h.
References m_outputHtSum.
Referenced by L1GctJetLeafCard::process().
|
inline |
Definition at line 204 of file L1GctJetFinderBase.h.
References m_HttSumJetThreshold.
|
inline |
Get the x component of vector Ht summed over jets above threshold.
Definition at line 193 of file L1GctJetFinderBase.h.
References m_outputHxSum.
Referenced by L1GctJetLeafCard::process().
|
inline |
Get the y component of vector Ht summed over jets above threshold.
Definition at line 194 of file L1GctJetFinderBase.h.
References m_outputHySum.
Referenced by L1GctJetLeafCard::process().
|
inline |
std::vector< L1GctInternEtSum > L1GctJetFinderBase::getInternalEtSums | ( | ) | const |
get et sums in raw format - to be stored in the event
Definition at line 281 of file L1GctJetFinderBase.cc.
References L1GctProcessor::bxMin(), L1GctInternEtSum::fromEmulatorJetMissEt(), L1GctInternEtSum::fromEmulatorJetTotEt(), L1GctInternEtSum::fromEmulatorJetTotHt(), m_outputEtSumPipe, m_outputExSumPipe, m_outputEySumPipe, m_outputHtSumPipe, L1GctProcessor::numOfBx(), and query::result.
std::vector< L1GctInternHtMiss > L1GctJetFinderBase::getInternalHtMiss | ( | ) | const |
Definition at line 301 of file L1GctJetFinderBase.cc.
References L1GctProcessor::bxMin(), L1GctInternHtMiss::emulatorJetMissHt(), m_outputHxSumPipe, m_outputHySumPipe, L1GctProcessor::numOfBx(), and query::result.
std::vector< L1GctInternJetData > L1GctJetFinderBase::getInternalJets | ( | ) | const |
get output jets in raw format - to be stored in the event
Definition at line 262 of file L1GctJetFinderBase.cc.
References L1GctProcessor::Pipeline< T >::contents, L1GctInternJetData::fromEmulator(), metsig::jet, m_jetEtCalLuts, m_outputJetsPipe, and query::result.
|
inline |
Return pointers to calibration LUTs.
Definition at line 184 of file L1GctJetFinderBase.h.
References m_jetEtCalLuts.
|
inline |
Get the located jets.
Definition at line 187 of file L1GctJetFinderBase.h.
References m_sortedJets.
Referenced by L1GctJetLeafCard::getOutputJetsA(), L1GctJetLeafCard::getOutputJetsB(), and L1GctJetLeafCard::getOutputJetsC().
|
inline |
get protoJets kept
Definition at line 171 of file L1GctJetFinderBase.h.
References m_keptProtoJets.
|
inline |
get output jets in raw format
Definition at line 174 of file L1GctJetFinderBase.h.
References L1GctProcessor::Pipeline< T >::contents, and m_outputJetsPipe.
|
inline |
get protoJets received from neighbour
Definition at line 168 of file L1GctJetFinderBase.h.
References m_rcvdProtoJets.
|
inline |
get protoJets sent to neighbour
Definition at line 165 of file L1GctJetFinderBase.h.
References m_sentProtoJets.
|
inline |
Definition at line 203 of file L1GctJetFinderBase.h.
References m_tauIsolationThreshold.
|
inline |
|
inlineprotectedvirtual |
*** End of event data ***
Reimplemented in L1GctTdrJetFinder, L1GctHardwareJetFinder, L1GctSimpleJetFinder, and L1GctNullJetFinder.
Definition at line 329 of file L1GctJetFinderBase.h.
References MAX_REGIONS_IN.
Referenced by resetProcessor(), and setupObjects().
|
inlineprotectedvirtual |
Reimplemented in L1GctTdrJetFinder, L1GctHardwareJetFinder, L1GctSimpleJetFinder, and L1GctNullJetFinder.
Definition at line 331 of file L1GctJetFinderBase.h.
References N_COLS.
Referenced by setInputRegion().
|
pure virtual |
process the data, fill output buffers; to be filled in by derived jetFinders
Implements L1GctProcessor.
Implemented in L1GctTdrJetFinder, L1GctHardwareJetFinder, L1GctSimpleJetFinder, and L1GctNullJetFinder.
Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), L1GctJetLeafCard::process(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().
|
protectedvirtual |
Implements L1GctProcessor.
Definition at line 200 of file L1GctJetFinderBase.cc.
References m_outputEtSumPipe, m_outputExSumPipe, m_outputEySumPipe, m_outputHtSumPipe, m_outputHxSumPipe, m_outputHySumPipe, m_outputJetsPipe, L1GctProcessor::numOfBx(), and L1GctProcessor::Pipeline< T >::reset().
|
protectedvirtual |
Separate reset methods for the processor itself and any data stored in pipelines.
Implements L1GctProcessor.
Definition at line 174 of file L1GctJetFinderBase.cc.
References m_inputRegions, m_keptProtoJets, m_outputEtSum, m_outputExSum, m_outputEySum, m_outputHfSums, m_outputHtSum, m_outputHxSum, m_outputHySum, m_outputJets, m_rcvdProtoJets, m_sentProtoJets, m_sortedJets, MAX_JETS_OUT, maxRegionsIn(), and L1GctJetFinderBase::hfTowerSumsType::reset().
Referenced by L1GctNullJetFinder::fetchInput().
void L1GctJetFinderBase::setEnergySumMasks | ( | const L1GctChannelMask * | chmask | ) |
Set masks for energy summing.
Set et sum masks from ChannelMask object - needed to complete the setup.
Definition at line 121 of file L1GctJetFinderBase.cc.
References m_EtmMask, m_EttMask, m_gotChannelMask, m_HtmMask, m_HttMask, m_id, m_positiveEtaWheel, L1GctChannelMask::missingEtMask(), L1GctChannelMask::missingHtMask(), L1GctJetFinderParams::NUMBER_ETA_VALUES, L1GctChannelMask::totalEtMask(), and L1GctChannelMask::totalHtMask().
void L1GctJetFinderBase::setInputRegion | ( | const L1CaloRegion & | region | ) |
Set input data.
Definition at line 235 of file L1GctJetFinderBase.cc.
References COL_OFFSET, i, m_id, m_inputRegions, m_minColThisJf, L1GctRegion::makeJfInputRegion(), N_EXTRA_REGIONS_ETA00, N_JF_PER_WHEEL, L1CaloRegionDetId::N_PHI, nCols(), L1CaloRegion::rctCrate(), L1CaloRegion::rctEta(), and L1CaloRegion::rctPhi().
void L1GctJetFinderBase::setJetEtCalibrationLuts | ( | const lutPtrVector & | jfluts | ) |
Set pointer to calibration Lut - needed to complete the setup.
Definition at line 114 of file L1GctJetFinderBase.cc.
References m_gotJetEtCalLuts, m_jetEtCalLuts, and L1GctJetFinderParams::NUMBER_ETA_VALUES.
void L1GctJetFinderBase::setJetFinderParams | ( | const L1GctJetFinderParams * | jfpars | ) |
Set pointer to parameters - needed to complete the setup.
Definition at line 101 of file L1GctJetFinderBase.cc.
References L1GctJetFinderParams::getCenForJetEtaBoundary(), L1GctJetFinderParams::getCenJetEtSeedGct(), L1GctJetFinderParams::getForJetEtSeedGct(), L1GctJetFinderParams::getHtJetEtThresholdGct(), L1GctJetFinderParams::getMHtJetEtThresholdGct(), L1GctJetFinderParams::getTauIsoEtThresholdGct(), L1GctJetFinderParams::getTauJetEtSeedGct(), m_CenJetSeed, m_EtaBoundry, m_FwdJetSeed, m_gotJetFinderParams, m_HtmSumJetThreshold, m_HttSumJetThreshold, m_tauIsolationThreshold, and m_TauJetSeed.
void L1GctJetFinderBase::setNeighbourJetFinders | ( | const std::vector< L1GctJetFinderBase * > & | neighbours | ) |
Set pointers to neighbours - needed to complete the setup.
Set pointers to neighbours.
Definition at line 66 of file L1GctJetFinderBase.cc.
References m_gotNeighbourPointers, m_id, m_neighbourJetFinders, and L1GctProcessor::m_verbose.
Referenced by L1GctJetLeafCard::setNeighbourLeafCards().
|
protectedvirtual |
Initialise inputs with null objects for the correct bunch crossing if required.
Initialise inputs with null objects for the correct bunch crossing If no other input candidates "arrive", we have the correct bunch crossing to propagate through the processing.
Create a null input region with the right bunch crossing, and fill the input candidates with copies of this.
The same for the lists of pre-clustered jets passed between neighbour jetFinders
The same for the lists of output jets
Implements L1GctProcessor.
Definition at line 214 of file L1GctJetFinderBase.cc.
References L1GctProcessor::bxAbs(), m_inputRegions, m_keptProtoJets, m_outputJets, m_rcvdProtoJets, m_sentProtoJets, MAX_JETS_OUT, maxRegionsIn(), L1GctJet::setBx(), and L1CaloRegion::setBx().
Referenced by L1GctNullJetFinder::fetchInput().
|
inline |
Check setup is Ok.
Definition at line 143 of file L1GctJetFinderBase.h.
References m_gotChannelMask, m_gotJetEtCalLuts, m_gotJetFinderParams, m_gotNeighbourPointers, and m_idInRange.
Referenced by L1GctHardwareJetFinder::fetchInput(), L1GctNullJetFinder::process(), L1GctHardwareJetFinder::process(), L1GctTdrJetFinder::process(), and L1GctJetLeafCard::setupOk().
|
inline |
Setup the tau algorithm parameters.
Definition at line 137 of file L1GctJetFinderBase.h.
References m_ignoreTauVetoBitsForIsolation, and m_useImprovedTauAlgo.
|
protected |
Sort the found jets. All jetFinders should call this in process().
Definition at line 342 of file L1GctJetFinderBase.cc.
References L1GctProcessor::bxRel(), L1GctJetSorter::getSortedJets(), j, m_jetEtCalLuts, m_outputJets, m_outputJetsPipe, m_sortedJets, MAX_JETS_OUT, and L1GctProcessor::Pipeline< T >::store().
Referenced by L1GctHardwareJetFinder::process(), and L1GctTdrJetFinder::process().
|
friend |
Overload << operator.
Definition at line 144 of file L1GctJetFinderBase.cc.
|
staticprivate |
Definition at line 361 of file L1GctJetFinderBase.h.
Referenced by centralCol0().
|
static |
The index offset between columns.
Definition at line 115 of file L1GctJetFinderBase.h.
Referenced by calcHfSums(), L1GctTdrJetFinder::calcJetEnergy(), L1GctTdrJetFinder::calcJetTauVeto(), L1GctTdrJetFinder::detectJet(), doEtSums(), L1GctHardwareJetFinder::findFinalClusters(), L1GctTdrJetFinder::findJets(), L1GctHardwareJetFinder::findLocalMaxima(), L1GctPrintLuts::L1GctPrintLuts(), L1GctHardwareJetFinder::makeProtoJet(), and setInputRegion().
|
protected |
*** Setup parameters for this jetfinder instance ***
jetFinder parameters (from EventSetup)
Definition at line 256 of file L1GctJetFinderBase.h.
Referenced by L1GctHardwareJetFinder::convertClustersToOutputJets(), L1GctHardwareJetFinder::convertClustersToProtoJets(), L1GctHardwareJetFinder::findFinalClusters(), L1GctHardwareJetFinder::findLocalMaxima(), getCenJetSeed(), and setJetFinderParams().
|
protected |
Definition at line 259 of file L1GctJetFinderBase.h.
Referenced by L1GctHardwareJetFinder::convertClustersToOutputJets(), L1GctHardwareJetFinder::convertClustersToProtoJets(), L1GctHardwareJetFinder::findFinalClusters(), L1GctHardwareJetFinder::findLocalMaxima(), getEtaBoundry(), and setJetFinderParams().
|
protected |
Definition at line 286 of file L1GctJetFinderBase.h.
Referenced by setEnergySumMasks().
|
protected |
Definition at line 285 of file L1GctJetFinderBase.h.
Referenced by doEtSums(), and setEnergySumMasks().
|
protected |
Definition at line 257 of file L1GctJetFinderBase.h.
Referenced by L1GctHardwareJetFinder::convertClustersToOutputJets(), L1GctHardwareJetFinder::convertClustersToProtoJets(), L1GctHardwareJetFinder::findFinalClusters(), L1GctHardwareJetFinder::findLocalMaxima(), getFwdJetSeed(), and setJetFinderParams().
|
protected |
Remember whether channel mask have been stored.
Definition at line 240 of file L1GctJetFinderBase.h.
Referenced by setEnergySumMasks(), and setupOk().
|
protected |
Remember whether jet Et calibration Lut pointers have been stored.
Definition at line 237 of file L1GctJetFinderBase.h.
Referenced by setJetEtCalibrationLuts(), and setupOk().
|
protected |
Remember whether jetfinder parameters have been stored.
Definition at line 234 of file L1GctJetFinderBase.h.
Referenced by setJetFinderParams(), and setupOk().
|
protected |
Remember whether the neighbour pointers have been stored.
Definition at line 231 of file L1GctJetFinderBase.h.
Referenced by setNeighbourJetFinders(), and setupOk().
|
protected |
Definition at line 288 of file L1GctJetFinderBase.h.
Referenced by doHtSums(), and setEnergySumMasks().
|
protected |
Definition at line 282 of file L1GctJetFinderBase.h.
Referenced by doHtSums(), getHtmSumJetThreshold(), and setJetFinderParams().
|
protected |
Definition at line 287 of file L1GctJetFinderBase.h.
Referenced by doHtSums(), and setEnergySumMasks().
|
protected |
Definition at line 281 of file L1GctJetFinderBase.h.
Referenced by doHtSums(), getHttSumJetThreshold(), and setJetFinderParams().
|
protected |
algo ID
Definition at line 222 of file L1GctJetFinderBase.h.
Referenced by doEtSums(), doHtSums(), L1GctHardwareJetFinder::L1GctHardwareJetFinder(), L1GctJetFinderBase(), L1GctTdrJetFinder::L1GctTdrJetFinder(), operator<<(), setEnergySumMasks(), setInputRegion(), and setNeighbourJetFinders().
|
protected |
Remember whether range check on the input ID was ok.
Definition at line 228 of file L1GctJetFinderBase.h.
Referenced by L1GctJetFinderBase(), and setupOk().
|
protected |
Definition at line 274 of file L1GctJetFinderBase.h.
Referenced by L1GctHardwareJetFinder::findFinalClusters(), L1GctHardwareJetFinder::makeProtoJet(), and setupTauAlgo().
|
protected |
*** End of setup parameters ***
*** Start of event data ***
input data required for jet finding
Definition at line 298 of file L1GctJetFinderBase.h.
Referenced by calcHfSums(), L1GctTdrJetFinder::calcJetEnergy(), L1GctTdrJetFinder::calcJetPosition(), L1GctTdrJetFinder::calcJetTauVeto(), L1GctTdrJetFinder::detectJet(), doEtSums(), L1GctHardwareJetFinder::findFinalClusters(), L1GctTdrJetFinder::findJets(), L1GctHardwareJetFinder::findLocalMaxima(), getInputRegions(), L1GctHardwareJetFinder::makeProtoJet(), operator<<(), resetProcessor(), setInputRegion(), and setupObjects().
|
protected |
Jet Et Conversion LUT pointer.
Definition at line 262 of file L1GctJetFinderBase.h.
Referenced by doHtSums(), getInternalJets(), getJetEtCalLuts(), operator<<(), setJetEtCalibrationLuts(), and sortJets().
|
protected |
List of pre-clustered jets retained locally as input to the final clustering.
Definition at line 305 of file L1GctJetFinderBase.h.
Referenced by L1GctHardwareJetFinder::convertClustersToProtoJets(), L1GctHardwareJetFinder::findFinalClusters(), getKeptProtoJets(), resetProcessor(), and setupObjects().
|
protected |
parameter to determine which Regions belong in our acceptance
Definition at line 249 of file L1GctJetFinderBase.h.
Referenced by L1GctHardwareJetFinder::L1GctHardwareJetFinder(), L1GctTdrJetFinder::L1GctTdrJetFinder(), and setInputRegion().
|
protected |
Store neighbour pointers.
Definition at line 225 of file L1GctJetFinderBase.h.
Referenced by fetchProtoJetsFromNeighbour(), and setNeighbourJetFinders().
|
protected |
output Et strip sums and Ht - refactored
Definition at line 312 of file L1GctJetFinderBase.h.
Referenced by doEtSums(), getEtSum(), operator<<(), and resetProcessor().
|
private |
"Pipeline memories" for energy sums
Definition at line 367 of file L1GctJetFinderBase.h.
Referenced by doEtSums(), getInternalEtSums(), and resetPipelines().
|
protected |
Definition at line 313 of file L1GctJetFinderBase.h.
Referenced by doEtSums(), getExSum(), operator<<(), and resetProcessor().
|
private |
Definition at line 368 of file L1GctJetFinderBase.h.
Referenced by doEtSums(), getInternalEtSums(), and resetPipelines().
|
protected |
Definition at line 314 of file L1GctJetFinderBase.h.
Referenced by doEtSums(), getEySum(), operator<<(), and resetProcessor().
|
private |
Definition at line 369 of file L1GctJetFinderBase.h.
Referenced by doEtSums(), getInternalEtSums(), and resetPipelines().
|
protected |
Definition at line 319 of file L1GctJetFinderBase.h.
Referenced by doEnergySums(), getHfSums(), and resetProcessor().
|
protected |
Definition at line 315 of file L1GctJetFinderBase.h.
Referenced by doHtSums(), getHtSum(), operator<<(), and resetProcessor().
Definition at line 370 of file L1GctJetFinderBase.h.
Referenced by doHtSums(), getInternalEtSums(), and resetPipelines().
|
protected |
Definition at line 316 of file L1GctJetFinderBase.h.
Referenced by doHtSums(), getHxSum(), operator<<(), and resetProcessor().
|
private |
Definition at line 371 of file L1GctJetFinderBase.h.
Referenced by doHtSums(), getInternalHtMiss(), and resetPipelines().
|
protected |
Definition at line 317 of file L1GctJetFinderBase.h.
Referenced by doHtSums(), getHySum(), operator<<(), and resetProcessor().
|
private |
Definition at line 372 of file L1GctJetFinderBase.h.
Referenced by doHtSums(), getInternalHtMiss(), and resetPipelines().
|
protected |
output jets
Definition at line 308 of file L1GctJetFinderBase.h.
Referenced by L1GctHardwareJetFinder::convertClustersToOutputJets(), doHtSums(), L1GctTdrJetFinder::findJets(), operator<<(), resetProcessor(), setupObjects(), and sortJets().
|
private |
Output jets "pipeline memory" for checking.
Definition at line 364 of file L1GctJetFinderBase.h.
Referenced by getInternalJets(), getRawJets(), resetPipelines(), and sortJets().
|
protected |
*** Geometry parameters ***
Positive/negative eta flag
Definition at line 246 of file L1GctJetFinderBase.h.
Referenced by L1GctHardwareJetFinder::findLocalMaxima(), L1GctHardwareJetFinder::makeProtoJet(), and setEnergySumMasks().
|
protected |
List of pre-clustered jets received from neighbour before the final stage of clustering.
Definition at line 303 of file L1GctJetFinderBase.h.
Referenced by fetchProtoJetsFromNeighbour(), L1GctHardwareJetFinder::findFinalClusters(), getRcvdProtoJets(), resetProcessor(), and setupObjects().
|
protected |
List of pre-clustered jets to be sent to neighbour after the first stage of clustering.
Definition at line 301 of file L1GctJetFinderBase.h.
Referenced by L1GctHardwareJetFinder::convertClustersToProtoJets(), getSentProtoJets(), resetProcessor(), and setupObjects().
|
protected |
Definition at line 309 of file L1GctJetFinderBase.h.
Referenced by getJets(), resetProcessor(), and sortJets().
|
protected |
Definition at line 278 of file L1GctJetFinderBase.h.
Referenced by L1GctHardwareJetFinder::findFinalClusters(), getTauIsolationThreshold(), L1GctHardwareJetFinder::makeProtoJet(), and setJetFinderParams().
|
protected |
Definition at line 258 of file L1GctJetFinderBase.h.
Referenced by getTauJetSeed(), and setJetFinderParams().
|
protected |
Setup parameters for the tau jet algorithm.
Definition at line 267 of file L1GctJetFinderBase.h.
Referenced by L1GctHardwareJetFinder::findFinalClusters(), L1GctHardwareJetFinder::makeProtoJet(), and setupTauAlgo().
|
static |
Max of 6 jets found per jetfinder in a 2*11 search area.
Definition at line 114 of file L1GctJetFinderBase.h.
Referenced by L1GctHardwareJetFinder::convertClustersToOutputJets(), L1GctHardwareJetFinder::convertClustersToProtoJets(), doHtSums(), L1GctWheelJetFpga::fetchInput(), fetchProtoJetsFromNeighbour(), L1GctHardwareJetFinder::findFinalClusters(), L1GctTdrJetFinder::findJets(), L1GctHardwareJetFinder::findLocalMaxima(), L1GctHardwareJetFinder::findProtoClusters(), resetProcessor(), setupObjects(), sortJets(), and L1GctWheelJetFpga::storeJets().
|
staticprivate |
The real jetFinders must define these constants.
Dependent on number of rows and columns.
Definition at line 359 of file L1GctJetFinderBase.h.
Referenced by maxRegionsIn().
|
staticprivate |
Definition at line 360 of file L1GctJetFinderBase.h.
Referenced by nCols().
|
static |
Number of additional regions to process on the "wrong" side of eta=0 (determines COL_OFFSET)
Definition at line 117 of file L1GctJetFinderBase.h.
Referenced by doEtSums(), L1GctHardwareJetFinder::findFinalClusters(), L1GctHardwareJetFinder::makeProtoJet(), and setInputRegion().
|
static |
No of jetFinders per Wheel.
Definition at line 116 of file L1GctJetFinderBase.h.
Referenced by setInputRegion().