ATLAS Offline Software
Loading...
Searching...
No Matches
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
14
15
17 m_FJ.clear();
18 m_BJ.clear();
19 m_PV_Track.clear();
20}
21
22
23int 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
30int 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
37int 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
44const std::vector<int>& TrigPileUpInfo::getFJVec() const{
45 return m_FJ;
46}
47
48const std::vector<int>& TrigPileUpInfo::getBJVec() const{
49 return m_BJ;
50}
51
52const std::vector<int>& TrigPileUpInfo::getPVVec() const{
53 return m_PV_Track;
54}
55
56
58 m_FJ.push_back(FJ);
59}
60
62 m_BJ.push_back(BJ);
63}
64
65void TrigPileUpInfo::addPV(int PV_Track){
66 m_PV_Track.push_back(PV_Track);
67}
int getPV(unsigned int index) const
const std::vector< int > & getBJVec() const
int getFJ(unsigned int index) const
const std::vector< int > & getPVVec() const
const std::vector< int > & getFJVec() const
std::vector< int > m_BJ
std::vector< int > m_FJ
std::vector< int > m_PV_Track
int getBJ(unsigned int index) const
Definition index.py:1