#include <WTAConeMaker.h>
Definition at line 54 of file WTAConeMaker.h.
◆ WTAConeMaker()
| WTAConeMaker::WTAConeMaker |
( |
bool | debug = false, |
|
|
bool | verbose = false ) |
|
inline |
◆ ~WTAConeMaker()
| virtual WTAConeMaker::~WTAConeMaker |
( |
| ) |
|
|
virtualdefault |
◆ ClearLists()
| void WTAConeMaker::ClearLists |
( |
| ) |
|
|
inline |
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 WTAConeMaker::FillLists |
( |
const std::vector< WTATrigObj > & | InputTowers | ) |
|
|
inlinevirtual |
Reimplemented in WTACone2PassMaker.
Definition at line 114 of file WTAConeMaker.h.
115{
120 if(
m_DEBUG) std::cout <<
"MaxTowersToReadPerEvent = " << MaxTowersToReadPerEvent <<
", Size of event = " << InputTowers.size() << std::endl;
121 int nTowers = 0;
122 for(const auto& tower: InputTowers)
123 {
127
128
129 nTowers++;
130 if(nTowers>MaxTowersToReadPerEvent) break;
131 }
134}
WTAParameters m_WTAConeMakerParameter
◆ GetAssociateBits()
| std::vector< int > WTAConeMaker::GetAssociateBits |
( |
WTATrigObj | incoming_seed, |
|
|
int & | max_pt_index ) |
|
inline |
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 |
|
inline |
◆ GetDEBUG()
| bool WTAConeMaker::GetDEBUG |
( |
| ) |
|
|
inline |
◆ GetSeedList()
| const std::vector< WTAJet > & WTAConeMaker::GetSeedList |
( |
| ) |
const |
|
inline |
◆ GetSeedSortingList()
| const std::vector< WTATrigObj > & WTAConeMaker::GetSeedSortingList |
( |
| ) |
const |
|
inline |
◆ GetVERBOSE()
| bool WTAConeMaker::GetVERBOSE |
( |
| ) |
|
|
inline |
◆ 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 ) |
|
inline |
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 | ) |
|
|
inline |
◆ InsertToConstList()
| void WTAConeMaker::InsertToConstList |
( |
const WTATrigObj & | obj | ) |
|
|
inline |
◆ 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 ) |
|
inline |
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 WTAConeMaker::MergeConstsToSeeds |
( |
| ) |
|
|
inlinevirtual |
Reimplemented in WTACone2PassMaker.
Definition at line 282 of file WTAConeMaker.h.
283{
285 {
286 for(
unsigned int j = 0; j <
m_SeedList.size(); j++)
287 {
288 IntOrFloat dR2 = constituent.dR2(
m_SeedList.at(j));
290 {
291 m_SeedList.at(j).MergeConstituent(constituent);
293 break;
294 }
295 }
296 }
297}
void ResizeThisJetConstituents(WTAJet &jet)
◆ PrintSeedList()
| void WTAConeMaker::PrintSeedList |
( |
| ) |
|
|
inline |
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 |
( |
| ) |
|
|
inline |
◆ ResizeSeedList()
| void WTAConeMaker::ResizeSeedList |
( |
| ) |
|
|
inline |
Definition at line 188 of file WTAConeMaker.h.
189{
192 {
195 }
196}
void InsertToConstList(const WTATrigObj &obj)
WTATrigObj WTAJetToWTATrigObj(const WTAJet &jet)
◆ ResizeSeedNConstLists()
| void WTAConeMaker::ResizeSeedNConstLists |
( |
| ) |
|
|
inline |
◆ ResizeSeedSortingList()
| void WTAConeMaker::ResizeSeedSortingList |
( |
| ) |
|
|
inline |
◆ ResizeThisJetConstituents()
| void WTAConeMaker::ResizeThisJetConstituents |
( |
WTAJet & | jet | ) |
|
|
inline |
Definition at line 179 of file WTAConeMaker.h.
180{
183 {
185 }
186}
void PopOutLastConstituent()
unsigned int GetConstituentCount() const
◆ SeedCleaning()
| void WTAConeMaker::SeedCleaning |
( |
| ) |
|
|
inlinevirtual |
Reimplemented in WTACone2PassMaker.
Definition at line 231 of file WTAConeMaker.h.
232{
234 if(
m_DEBUG)std::cout <<
"Baseline Seed Cleaning......" << std::endl;
236 {
238 if(jet_N == 0)
239 {
241 }
242 else
243 {
244 int MaxPtIndex = -1;
246 if(std::find(associate_bit.begin(), associate_bit.end(), 1) != associate_bit.end())
247 {
248 if(MaxPtIndex == -1)
249 {
251 for(int j = jet_N - 1; j >= 0; j--)
252 {
253 if(associate_bit.at(j) == 1)
254 {
257 }
258 }
259 m_SeedList.push_back(std::move(IncomingSeedAsJet));
260 }
261 else
262 {
264 }
265 }
266 else
267 {
269 m_SeedList.push_back(std::move(IncomingSeedAsJet));
270 }
271 }
275 }
278 std::cout << "Baseline Seed Cleaning Done......" << std::endl;
279 }
280}
static void SortByPt(std::vector< T > &list)
void ResizeSeedNConstLists()
std::vector< int > GetAssociateBits(WTATrigObj incoming_seed, int &max_pt_index)
WTAJet WTATrigObjToWTAJet(const WTATrigObj &obj)
◆ SetDEBUG()
| void WTAConeMaker::SetDEBUG |
( |
| ) |
|
|
inline |
◆ SetVERBOSE()
| void WTAConeMaker::SetVERBOSE |
( |
| ) |
|
|
inline |
◆ 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 |
|
protected |
◆ m_DEBUG
| bool WTAConeMaker::m_DEBUG |
|
protected |
◆ m_SeedList
| std::vector<WTAJet> WTAConeMaker::m_SeedList |
|
protected |
◆ m_SeedSortingList
| std::vector<WTATrigObj> WTAConeMaker::m_SeedSortingList |
|
protected |
◆ m_VERBOSE
| bool WTAConeMaker::m_VERBOSE |
|
protected |
◆ m_WTAConeMakerParameter
The documentation for this class was generated from the following file: