ATLAS Offline Software
Loading...
Searching...
No Matches
WTAConeJetMaker.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3 */
4
5#ifndef TRIGGEPPERF_WTACONEJETMAKER_H
6#define TRIGGEPPERF_WTACONEJETMAKER_H
7
8#include "IJetMaker.h"
9
10
11#include "WTAConeMaker.h" // WTAConeMaker is the core header
12#include "WTACone2PassMaker.h" // WTACone2PassMaker is the 2-Pass header
13
14#include <string>
15#include <vector>
16#include <memory>
17
18namespace Gep{
19 struct Jet;
20 struct Cluster;
21}
22
23 enum WTAConeMakerEnum{ // use WTAConeMakerEnum for algorithm variants
26};
27
28
29 namespace Gep
30 {
32 {
33 public:
34
35 WTAConeJetMaker(unsigned int block_n = 4, unsigned int rolloff_buffersize = 155) :
37 m_BlockN(block_n), m_SeedCleaningAlgo(0), m_RollOffBufferSize(rolloff_buffersize)
38 {};
39
40
41 virtual std::string toString() const override{ return "WTAConeJet"; }
42 virtual std::vector<Gep::Jet> makeJets(const std::vector<Gep::Cluster>& TopoTowers) const override; // To makeJet, m_seeds and m_consts must not be empty vectors
43
44 std::unique_ptr<WTAConeMaker> CreateWTAConeMaker(enum WTAConeMakerEnum seed_cleaning_algo) const
45 { // Allow user to choose the seed cleaning algorithm
46 switch(seed_cleaning_algo)
47 {
48 case Baseline:
49 return std::make_unique<WTAConeMaker>();
50 case TwoPass:
51 return std::make_unique<WTACone2PassMaker>();
52 default:
53 return nullptr;
54 }
55 }
56
57 void SetBlockN(unsigned int block_n){m_BlockN = block_n; /* m_WTAParallelHelper.SetBlockN(m_BlockN);*/ };
58 void SetSeedCleaningAlgo(unsigned int algo){m_SeedCleaningAlgo = algo;};
59 void SetRollOffBufferSize(int rolloff_buffersize){m_RollOffBufferSize = rolloff_buffersize;}
61
63
64 private:
65 // WTAConeParallelHelper m_WTAParallelHelper;
66 unsigned int m_BlockN{};
67 unsigned int m_SeedCleaningAlgo{};
68 unsigned int m_RollOffBufferSize{}; // Only for TwoPass
69
70 };
71
72 }
73
74 #endif //TRIGL0GEPPERF_EXCONEJETMAKER_H
75
WTAConeMakerEnum
@ TwoPass
@ Baseline
virtual std::string toString() const override
virtual std::vector< Gep::Jet > makeJets(const std::vector< Gep::Cluster > &TopoTowers) const override
unsigned int m_SeedCleaningAlgo
WTAParameters m_GEPWTAParameters
unsigned int m_RollOffBufferSize
void SetRollOffBufferSize(int rolloff_buffersize)
void SetBlockN(unsigned int block_n)
void SetSeedCleaningAlgo(unsigned int algo)
WTAConeJetMaker(unsigned int block_n=4, unsigned int rolloff_buffersize=155)
std::unique_ptr< WTAConeMaker > CreateWTAConeMaker(enum WTAConeMakerEnum seed_cleaning_algo) const