#include <WTACone2PassMaker.h>
Definition at line 9 of file WTACone2PassMaker.h.
◆ WTACone2PassMaker()
| WTACone2PassMaker::WTACone2PassMaker |
( |
unsigned int | RollOffBufferSize = 155 | ) |
|
|
inline |
Definition at line 11 of file WTACone2PassMaker.h.
14 {};
unsigned int m_RollOffBufferSize
WTAConeMaker(bool debug=false, bool verbose=false)
◆ ~WTACone2PassMaker()
| WTACone2PassMaker::~WTACone2PassMaker |
( |
| ) |
|
|
inline |
◆ ClearLists()
| void WTAConeMaker::ClearLists |
( |
| ) |
|
|
inlineinherited |
Definition at line 66 of file WTAConeMaker.h.
std::vector< WTAJet > m_SeedList
std::vector< WTATrigObj > m_SeedSortingList
std::vector< WTATrigObj > m_ConstituentList
◆ FillLists()
| void WTACone2PassMaker::FillLists |
( |
const std::vector< WTATrigObj > & | InputTowers | ) |
|
|
inlineoverridevirtual |
Reimplemented from WTAConeMaker.
Definition at line 30 of file WTACone2PassMaker.h.
31{
35 for(const auto& tower: InputTowers)
36 {
39 {
43 {
46 }
47 }
49 }
52}
static void SortByPt(std::vector< T > &list)
std::vector< WTATrigObj > m_RollOffList
WTAParameters m_WTAConeMakerParameter
◆ GetAssociateBits()
| std::vector< int > WTAConeMaker::GetAssociateBits |
( |
WTATrigObj | incoming_seed, |
|
|
int & | max_pt_index ) |
|
inlineinherited |
Definition at line 210 of file WTAConeMaker.h.
211{
213 std::vector<int> associate_bit(jet_N, 0);
214 IntOrFloat
MaxPt = tower.pt(); MaxPtIndex = -1;
215 for(int j = 0; j < jet_N; j++)
216 {
219 {
220 associate_bit.at(j) = 1;
222 {
223 MaxPtIndex = j;
225 }
226 }
227 }
228 return associate_bit;
229}
◆ GetConstituentList()
| const std::vector< WTATrigObj > & WTAConeMaker::GetConstituentList |
( |
| ) |
const |
|
inlineinherited |
◆ GetDEBUG()
| bool WTAConeMaker::GetDEBUG |
( |
| ) |
|
|
inlineinherited |
◆ GetRollOffBufferSize()
| int WTACone2PassMaker::GetRollOffBufferSize |
( |
| ) |
|
|
inline |
◆ GetRollOffList()
| const std::vector< WTATrigObj > & WTACone2PassMaker::GetRollOffList |
( |
| ) |
const |
|
inline |
◆ GetSeedList()
| const std::vector< WTAJet > & WTAConeMaker::GetSeedList |
( |
| ) |
const |
|
inlineinherited |
◆ GetSeedSortingList()
| const std::vector< WTATrigObj > & WTAConeMaker::GetSeedSortingList |
( |
| ) |
const |
|
inlineinherited |
◆ GetVERBOSE()
| bool WTAConeMaker::GetVERBOSE |
( |
| ) |
|
|
inlineinherited |
◆ InitiateInputs() [1/2]
| void WTAConeMaker::InitiateInputs |
( |
const std::vector< IntOrFloat > & | ptVec, |
|
|
const std::vector< IntOrFloat > & | etaVec, |
|
|
const std::vector< IntOrFloat > & | phiVec, |
|
|
const std::vector< IntOrFloat > & | mVec ) |
|
inlineinherited |
Definition at line 136 of file WTAConeMaker.h.
137{
138 std::vector<WTATrigObj> InputTowers =
LoadInputs(ptVec, etaVec, phiVec, mVec);
141}
virtual void FillLists(const std::vector< WTATrigObj > &InputTowers)
std::vector< WTATrigObj > LoadInputs(const std::vector< IntOrFloat > &ptVec, const std::vector< IntOrFloat > &etaVec, const std::vector< IntOrFloat > &phiVec, const std::vector< IntOrFloat > &mVec)
◆ InitiateInputs() [2/2]
| void WTAConeMaker::InitiateInputs |
( |
const std::vector< WTATrigObj > & | InputTowers | ) |
|
|
inlineinherited |
◆ InsertToConstList()
| void WTAConeMaker::InsertToConstList |
( |
const WTATrigObj & | obj | ) |
|
|
inlineinherited |
◆ LoadInputs()
| std::vector< WTATrigObj > WTAConeMaker::LoadInputs |
( |
const std::vector< IntOrFloat > & | ptVec, |
|
|
const std::vector< IntOrFloat > & | etaVec, |
|
|
const std::vector< IntOrFloat > & | phiVec, |
|
|
const std::vector< IntOrFloat > & | mVec ) |
|
inlineinherited |
Definition at line 101 of file WTAConeMaker.h.
102{
103 std::vector<WTATrigObj> input_towers;
104 unsigned int tower_n = ptVec.size();
105 for(
unsigned int t = 0;
t < tower_n;
t++)
106 {
107 WTATrigObj this_tower(ptVec.at(t), etaVec.at(t), phiVec.at(t), mVec.at(t));
108 input_towers.push_back(this_tower);
109 }
110 return input_towers;
111
112}
◆ MergeConstsToSeeds()
| void WTACone2PassMaker::MergeConstsToSeeds |
( |
| ) |
|
|
inlineoverridevirtual |
Reimplemented from WTAConeMaker.
Definition at line 96 of file WTACone2PassMaker.h.
97{
99 {
101 }
103 {
104 for(
unsigned int j = 0; j <
m_SeedList.size(); j++)
105 {
106 IntOrFloat dR2 = constituent.dR2(
m_SeedList.at(j));
108 {
109 m_SeedList.at(j).MergeConstituent(constituent);
111 break;
112 }
113 }
114 }
115}
void ResizeThisJetConstituents(WTAJet &jet)
void InsertToConstList(const WTATrigObj &obj)
◆ PrintSeedList()
| void WTAConeMaker::PrintSeedList |
( |
| ) |
|
|
inlineinherited |
Definition at line 149 of file WTAConeMaker.h.
150{
151 int AllJetConstN = 0;
153 {
154 AllJetConstN += jet.GetConstituentCount();
155 std::cout << "Jet pT, eta, phi, constN = " << jet.pt() << " , " << jet.eta() << " , " << jet.phi() << " , " << jet.GetConstituentCount() << std::endl;
156 }
157 std::cout <<
"PrintSeedList..." <<
" , SeedN, AllJetConstN, ConstN = " <<
m_SeedList.size() <<
" , " << AllJetConstN <<
" , " <<
m_ConstituentList.size() << std::endl;
158 std::cout << "+++++++++++++++++++++++++" << std::endl;
159}
◆ ResizeConstituentList()
| void WTAConeMaker::ResizeConstituentList |
( |
| ) |
|
|
inlineinherited |
◆ ResizeSeedList()
| void WTAConeMaker::ResizeSeedList |
( |
| ) |
|
|
inlineinherited |
Definition at line 188 of file WTAConeMaker.h.
189{
192 {
195 }
196}
WTATrigObj WTAJetToWTATrigObj(const WTAJet &jet)
◆ ResizeSeedNConstLists()
| void WTAConeMaker::ResizeSeedNConstLists |
( |
| ) |
|
|
inlineinherited |
◆ ResizeSeedSortingList()
| void WTAConeMaker::ResizeSeedSortingList |
( |
| ) |
|
|
inlineinherited |
◆ ResizeThisJetConstituents()
| void WTAConeMaker::ResizeThisJetConstituents |
( |
WTAJet & | jet | ) |
|
|
inlineinherited |
Definition at line 179 of file WTAConeMaker.h.
180{
183 {
185 }
186}
void PopOutLastConstituent()
unsigned int GetConstituentCount() const
◆ SeedCleaning()
| void WTACone2PassMaker::SeedCleaning |
( |
| ) |
|
|
inlineoverridevirtual |
Reimplemented from WTAConeMaker.
Definition at line 54 of file WTACone2PassMaker.h.
55{
57 if(
m_DEBUG)std::cout <<
"HighEtMerge2Pass Seed Cleaning......" << std::endl;
59 for(
int i = 0;
i < seed_N;
i++){
63 else
64 {
65 int MaxPtIndex = -1;
67 if(std::find(associate_bit.begin(), associate_bit.end(), 1) != associate_bit.end())
68 {
69 for(unsigned int j = 0; j < jet_N; j++)
70 {
71 if(associate_bit.at(j) == 1)
72 {
74 break;
75 }
76 }
77 }
78 else
79 {
81 {
83 }
84 }
85 }
86
87
89 }
92 std::cout << "HighEtMerge2Pass Seed Cleaning Done......" << std::endl;
93 }
94}
std::vector< int > GetAssociateBits(WTATrigObj incoming_seed, int &max_pt_index)
WTAJet WTATrigObjToWTAJet(const WTATrigObj &obj)
◆ SetDEBUG()
| void WTAConeMaker::SetDEBUG |
( |
| ) |
|
|
inlineinherited |
◆ SetRollOffBufferSize()
| void WTACone2PassMaker::SetRollOffBufferSize |
( |
int | rolloff_buffersize | ) |
|
|
inline |
◆ SetVERBOSE()
| void WTAConeMaker::SetVERBOSE |
( |
| ) |
|
|
inlineinherited |
◆ WTAJetToWTATrigObj()
Definition at line 204 of file WTAConeMaker.h.
205{
206 WTATrigObj thisobj(jet.
pt(), jet.
eta(), jet.
phi(), jet.
m(), jet.
idx());
207 return thisobj;
208}
◆ WTATrigObjToWTAJet()
◆ m_ConstituentList
| std::vector<WTATrigObj> WTAConeMaker::m_ConstituentList |
|
protectedinherited |
◆ m_DEBUG
| bool WTAConeMaker::m_DEBUG |
|
protectedinherited |
◆ m_RollOffBufferSize
| unsigned int WTACone2PassMaker::m_RollOffBufferSize |
|
private |
◆ m_RollOffList
| std::vector<WTATrigObj> WTACone2PassMaker::m_RollOffList |
|
private |
◆ m_SeedList
| std::vector<WTAJet> WTAConeMaker::m_SeedList |
|
protectedinherited |
◆ m_SeedSortingList
| std::vector<WTATrigObj> WTAConeMaker::m_SeedSortingList |
|
protectedinherited |
◆ m_VERBOSE
| bool WTAConeMaker::m_VERBOSE |
|
protectedinherited |
◆ m_WTAConeMakerParameter
The documentation for this class was generated from the following file: