ATLAS Offline Software
TrigPileUpInfo.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 
8 #include <vector>
9 
10 
12  clear();
13 }
14 
15 
17  m_FJ.clear();
18  m_BJ.clear();
19  m_PV_Track.clear();
20 }
21 
22 
23 int TrigPileUpInfo::getFJ(unsigned int index) const{
24  if (index < m_FJ.size())
25  return m_FJ.at(index);
26  else
27  return 0; //<! safe but silent!
28 }
29 
30 int TrigPileUpInfo::getBJ(unsigned int index) const{
31  if (index < m_BJ.size())
32  return m_BJ.at(index);
33  else
34  return 0; //<! safe but silent!
35 }
36 
37 int TrigPileUpInfo::getPV(unsigned int index) const{
38  if (index < m_PV_Track.size())
39  return m_PV_Track.at(index);
40  else
41  return 0; //<! safe but silent!
42 }
43 
44 const std::vector<int>& TrigPileUpInfo::getFJVec() const{
45  return m_FJ;
46 }
47 
48 const std::vector<int>& TrigPileUpInfo::getBJVec() const{
49  return m_BJ;
50 }
51 
52 const std::vector<int>& TrigPileUpInfo::getPVVec() const{
53  return m_PV_Track;
54 }
55 
56 
57 void TrigPileUpInfo::addFJ(int FJ){
58  m_FJ.push_back(FJ);
59 }
60 
61 void TrigPileUpInfo::addBJ(int BJ){
62  m_BJ.push_back(BJ);
63 }
64 
65 void TrigPileUpInfo::addPV(int PV_Track){
66  m_PV_Track.push_back(PV_Track);
67 }
TrigPileUpInfo::getBJVec
const std::vector< int > & getBJVec() const
Definition: TrigPileUpInfo.cxx:48
TrigPileUpInfo::getPVVec
const std::vector< int > & getPVVec() const
Definition: TrigPileUpInfo.cxx:52
index
Definition: index.py:1
TrigPileUpInfo::getPV
int getPV(unsigned int index) const
Definition: TrigPileUpInfo.cxx:37
TrigPileUpInfo::getFJVec
const std::vector< int > & getFJVec() const
Definition: TrigPileUpInfo.cxx:44
TrigPileUpInfo::addBJ
void addBJ(int)
Definition: TrigPileUpInfo.cxx:61
TrigPileUpInfo::getBJ
int getBJ(unsigned int index) const
Definition: TrigPileUpInfo.cxx:30
TrigPileUpInfo::m_FJ
std::vector< int > m_FJ
Definition: TrigPileUpInfo.h:43
TrigPileUpInfo::m_BJ
std::vector< int > m_BJ
Definition: TrigPileUpInfo.h:44
TrigPileUpInfo::getFJ
int getFJ(unsigned int index) const
Definition: TrigPileUpInfo.cxx:23
TrigPileUpInfo::addFJ
void addFJ(int)
Definition: TrigPileUpInfo.cxx:57
TrigPileUpInfo::clear
void clear()
Definition: TrigPileUpInfo.cxx:16
TrigPileUpInfo::addPV
void addPV(int)
Definition: TrigPileUpInfo.cxx:65
TrigPileUpInfo.h
TrigPileUpInfo::TrigPileUpInfo
TrigPileUpInfo()
Definition: TrigPileUpInfo.cxx:11
TrigPileUpInfo::m_PV_Track
std::vector< int > m_PV_Track
Definition: TrigPileUpInfo.h:45