ATLAS Offline Software
Loading...
Searching...
No Matches
Lvl1Result.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7using namespace LVL1CTP;
8
10{
11 for (unsigned int i = 0; i < m_l1_itemsTAV.size(); ++i) {
12 if (m_l1_itemsTAV[i] != 0) return true;
13 }
14
15 return false;
16}
17
18
20{
21 return ( isConfigured() && anyActiveL1ItemAfterVeto() );
22}
23
24
25bool Lvl1Result::isPassedBeforePrescale(unsigned int item) const
26{
27 if (item >= m_l1_itemsTBP.size()*32) return 0;
28 uint32_t word = m_l1_itemsTBP[item/32];
29 return (((word >> (item % 32)) & 0x1) != 0);
30}
31
32bool Lvl1Result::isPassedAfterPrescale(unsigned int item) const
33{
34 if (item >= m_l1_itemsTAP.size()*32) return 0;
35 uint32_t word = m_l1_itemsTAP[item/32];
36 return (((word >> (item % 32)) & 0x1) != 0);
37}
38
39bool Lvl1Result::isPassedAfterVeto(unsigned int item) const
40{
41 if (item >= m_l1_itemsTAV.size()*32) return 0;
42 uint32_t word = m_l1_itemsTAV[item/32];
43 return (((word >> (item % 32)) & 0x1) != 0);
44}
45
46
47bool Lvl1Result::isPassedRaw(unsigned int item) const
48{
49 return isPassedBeforePrescale(item);
50}
51
52
53bool Lvl1Result::isPrescaled(unsigned int item) const
54{
55 return isPassedBeforePrescale(item) && ! isPassedAfterPrescale(item);
56}
57
58bool Lvl1Result::isVeto(unsigned int item) const
59{
60 return isPassedAfterPrescale(item) && !isPassedAfterVeto(item);
61}
std::vector< uint32_t > m_l1_itemsTAP
Trigger (level 1 items) After Prescale.
Definition Lvl1Result.h:74
std::vector< uint32_t > m_l1_itemsTAV
Trigger (level 1 items) After Veto (==final L1 decision)
Definition Lvl1Result.h:75
bool isConfigured() const
is LVL1 configured ?
Definition Lvl1Result.h:39
bool isPrescaled(unsigned int item) const
item isPassedBeforePrescale and not isPassedAfterPrescale
std::vector< uint32_t > m_l1_itemsTBP
Trigger (level 1 items) Before Prescale.
Definition Lvl1Result.h:73
bool isPassedAfterVeto(unsigned int item) const
final L1 decision for this item
bool isAccepted() const
final LVL1 decision && isConfigured
bool isPassedRaw(unsigned int item) const
same as isPassedBeforePrescale
bool isPassedBeforePrescale(unsigned int item) const
raw L1 item
bool isVeto(unsigned int item) const
item isPassedAfterPrescale and not isPassedAfterVeto
bool anyActiveL1ItemAfterVeto() const
any LVL1 item passed after prescale, veto ?
Definition Lvl1Result.cxx:9
bool isPassedAfterPrescale(unsigned int item) const
after prescale