#include <WTAConeMaker.h>
Definition at line 59 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 71 of file WTAConeMaker.h.
std::vector< WTAJet > m_SeedList
std::vector< WTATrigObj > m_SeedSortingList
std::vector< WTATrigObj > m_ConstituentList
◆ CreateERingInfo()
| void WTAConeMaker::CreateERingInfo |
( |
| ) |
|
|
inline |
Definition at line 309 of file WTAConeMaker.h.
310{
312 {
313 jet.CreateERingInfo();
314 }
315}
◆ FillLists()
| void WTAConeMaker::FillLists |
( |
const std::vector< WTATrigObj > & | InputTowers | ) |
|
|
inlinevirtual |
Reimplemented in WTACone2PassMaker.
Definition at line 120 of file WTAConeMaker.h.
121{
126 if(
m_DEBUG) std::cout <<
"MaxTowersToReadPerEvent = " << MaxTowersToReadPerEvent <<
", Size of event = " << InputTowers.size() << std::endl;
127 int nTowers = 0;
128 for(const auto& tower: InputTowers)
129 {
133
134
135 nTowers++;
136 if(nTowers>MaxTowersToReadPerEvent) break;
137 }
140}
WTAParameters m_WTAConeMakerParameter
◆ GetAssociateBits()
| std::vector< int > WTAConeMaker::GetAssociateBits |
( |
WTATrigObj | incoming_seed, |
|
|
int & | max_pt_index ) |
|
inline |
Definition at line 216 of file WTAConeMaker.h.
217{
219 std::vector<int> associate_bit(jet_N, 0);
220 pt_t
MaxPt = tower.pt(); MaxPtIndex = -1;
221 for(
int j = 0;
j < jet_N;
j++)
222 {
224#ifdef FLOATING_POINT_SIMULATION
225 std::cout <<
"deta, dphi = " << tower.d_eta(
m_SeedList.at(j)) <<
" , " << tower.d_phi_MPI_PI(
m_SeedList.at(j)) << std::endl;
226#else
227 std::cout <<
"deta, dphi = " << tower.d_eta(
m_SeedList.at(j)) <<
" , " << tower.d_phi_MPI_PI(
m_SeedList.at(j)) << std::endl;
228#endif
230 {
231 associate_bit.at(j) = 1;
233 {
236 }
237 }
238 }
239 return associate_bit;
240}
float j(const xAOD::IParticle &, const xAOD::TrackMeasurementValidation &hit, const Eigen::Matrix3d &jab_inv)
◆ 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< pt_t > & | ptVec, |
|
|
const std::vector< eta_t > & | etaVec, |
|
|
const std::vector< phi_t > & | phiVec, |
|
|
const std::vector< m_t > & | mVec ) |
|
inline |
Definition at line 142 of file WTAConeMaker.h.
143{
144 std::vector<WTATrigObj> InputTowers =
LoadInputs(ptVec, etaVec, phiVec, mVec);
147}
std::vector< WTATrigObj > LoadInputs(const std::vector< pt_t > &ptVec, const std::vector< eta_t > &etaVec, const std::vector< phi_t > &phiVec, const std::vector< m_t > &mVec)
virtual void FillLists(const std::vector< WTATrigObj > &InputTowers)
◆ 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< pt_t > & | ptVec, |
|
|
const std::vector< eta_t > & | etaVec, |
|
|
const std::vector< phi_t > & | phiVec, |
|
|
const std::vector< m_t > & | mVec ) |
|
inline |
Definition at line 107 of file WTAConeMaker.h.
108{
109 std::vector<WTATrigObj> input_towers;
110 unsigned int tower_n = ptVec.size();
111 for(
unsigned int t = 0;
t < tower_n;
t++)
112 {
113 WTATrigObj this_tower(ptVec.at(t), etaVec.at(t), phiVec.at(t), mVec.at(t));
114 input_towers.push_back(this_tower);
115 }
116 return input_towers;
117
118}
◆ MergeConstsToSeeds()
| void WTAConeMaker::MergeConstsToSeeds |
( |
| ) |
|
|
inlinevirtual |
Reimplemented in WTACone2PassMaker.
Definition at line 293 of file WTAConeMaker.h.
294{
296 {
298 {
300 {
301 m_SeedList.at(j).MergeConstituent(constituent);
303 break;
304 }
305 }
306 }
307}
void ResizeThisJetConstituents(WTAJet &jet)
◆ PrintSeedList()
| void WTAConeMaker::PrintSeedList |
( |
| ) |
|
|
inline |
Definition at line 155 of file WTAConeMaker.h.
156{
157 int AllJetConstN = 0;
159 {
160 AllJetConstN += jet.GetConstituentCount();
161 std::cout << "Jet pT, eta, phi, constN = " << jet.pt() << " , " << jet.eta() << " , " << jet.phi() << " , " << jet.GetConstituentCount() << std::endl;
162 }
163 std::cout <<
"PrintSeedList..." <<
" , SeedN, AllJetConstN, ConstN = " <<
m_SeedList.size() <<
" , " << AllJetConstN <<
" , " <<
m_ConstituentList.size() << std::endl;
164 std::cout << "+++++++++++++++++++++++++" << std::endl;
165}
◆ ResizeConstituentList()
| void WTAConeMaker::ResizeConstituentList |
( |
| ) |
|
|
inline |
◆ ResizeSeedList()
| void WTAConeMaker::ResizeSeedList |
( |
| ) |
|
|
inline |
Definition at line 194 of file WTAConeMaker.h.
195{
198 {
201 }
202}
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 185 of file WTAConeMaker.h.
186{
189 {
191 }
192}
void PopOutLastConstituent()
tobn_t GetConstituentCount() const
◆ SeedCleaning()
| void WTAConeMaker::SeedCleaning |
( |
| ) |
|
|
inlinevirtual |
Reimplemented in WTACone2PassMaker.
Definition at line 242 of file WTAConeMaker.h.
243{
245 if(
m_DEBUG)std::cout <<
"Baseline Seed Cleaning......" << std::endl;
247 {
249 if(jet_N == 0)
250 {
252 }
253 else
254 {
255 int MaxPtIndex = -1;
257 if(std::find(associate_bit.begin(), associate_bit.end(), 1) != associate_bit.end())
258 {
259 if(MaxPtIndex == -1)
260 {
262 for(
int j = jet_N - 1;
j >= 0;
j--)
263 {
264 if(associate_bit.at(j) == 1)
265 {
268 }
269 }
270 m_SeedList.push_back(std::move(IncomingSeedAsJet));
271 }
272 else
273 {
275 }
276 }
277 else
278 {
280 m_SeedList.push_back(std::move(IncomingSeedAsJet));
281 }
282 }
286 }
289 std::cout << "Baseline Seed Cleaning Done......" << std::endl;
290 }
291}
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 210 of file WTAConeMaker.h.
211{
212 WTATrigObj thisobj(jet.
pt(), jet.
eta(), jet.
phi(), jet.
m(), jet.
idx());
213 return thisobj;
214}
◆ 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: