ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LVL1CTP::Lvl1Result Class Reference

#include <Lvl1Result.h>

Collaboration diagram for LVL1CTP::Lvl1Result:

Public Member Functions

 Lvl1Result (bool config=false)
 
bool isConfigured () const
 is LVL1 configured ? More...
 
bool isAccepted () const
 final LVL1 decision && isConfigured More...
 
bool anyActiveL1ItemAfterVeto () const
 any LVL1 item passed after prescale, veto ? More...
 
bool isPassedBeforePrescale (unsigned int item) const
 raw L1 item More...
 
bool isPassedAfterPrescale (unsigned int item) const
 after prescale More...
 
bool isPassedAfterVeto (unsigned int item) const
 final L1 decision for this item More...
 
bool isPassedRaw (unsigned int item) const
 same as isPassedBeforePrescale More...
 
bool isPrescaled (unsigned int item) const
 item isPassedBeforePrescale and not isPassedAfterPrescale More...
 
bool isVeto (unsigned int item) const
 item isPassedAfterPrescale and not isPassedAfterVeto More...
 
unsigned int nItems () const
 
const std::vector< uint32_t > & itemsPassed () const
 
const std::vector< uint32_t > & itemsBeforePrescale () const
 
const std::vector< uint32_t > & itemsAfterPrescale () const
 
const std::vector< uint32_t > & itemsAfterVeto () const
 
std::vector< uint32_t > & itemsPassed ()
 
std::vector< uint32_t > & itemsBeforePrescale ()
 
std::vector< uint32_t > & itemsAfterPrescale ()
 
std::vector< uint32_t > & itemsAfterVeto ()
 

Private Attributes

bool m_configured
 
std::vector< uint32_t > m_l1_itemsTBP
 Trigger (level 1 items) Before Prescale. More...
 
std::vector< uint32_t > m_l1_itemsTAP
 Trigger (level 1 items) After Prescale. More...
 
std::vector< uint32_t > m_l1_itemsTAV
 Trigger (level 1 items) After Veto (==final L1 decision) More...
 

Detailed Description

Definition at line 31 of file Lvl1Result.h.

Constructor & Destructor Documentation

◆ Lvl1Result()

LVL1CTP::Lvl1Result::Lvl1Result ( bool  config = false)
inline

Definition at line 37 of file Lvl1Result.h.

37 : m_configured(config) { }

Member Function Documentation

◆ anyActiveL1ItemAfterVeto()

bool Lvl1Result::anyActiveL1ItemAfterVeto ( ) const

any LVL1 item passed after prescale, veto ?

Definition at line 9 of file Lvl1Result.cxx.

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 }

◆ isAccepted()

bool Lvl1Result::isAccepted ( ) const

final LVL1 decision && isConfigured

Definition at line 19 of file Lvl1Result.cxx.

20 {
21  return ( isConfigured() && anyActiveL1ItemAfterVeto() );
22 }

◆ isConfigured()

bool LVL1CTP::Lvl1Result::isConfigured ( ) const
inline

is LVL1 configured ?

Definition at line 39 of file Lvl1Result.h.

◆ isPassedAfterPrescale()

bool Lvl1Result::isPassedAfterPrescale ( unsigned int  item) const

after prescale

Definition at line 32 of file Lvl1Result.cxx.

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 }

◆ isPassedAfterVeto()

bool Lvl1Result::isPassedAfterVeto ( unsigned int  item) const

final L1 decision for this item

Definition at line 39 of file Lvl1Result.cxx.

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 }

◆ isPassedBeforePrescale()

bool Lvl1Result::isPassedBeforePrescale ( unsigned int  item) const

raw L1 item

Definition at line 25 of file Lvl1Result.cxx.

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 }

◆ isPassedRaw()

bool Lvl1Result::isPassedRaw ( unsigned int  item) const

same as isPassedBeforePrescale

Definition at line 47 of file Lvl1Result.cxx.

48 {
50 }

◆ isPrescaled()

bool Lvl1Result::isPrescaled ( unsigned int  item) const

item isPassedBeforePrescale and not isPassedAfterPrescale

Definition at line 53 of file Lvl1Result.cxx.

54 {
56 }

◆ isVeto()

bool Lvl1Result::isVeto ( unsigned int  item) const

item isPassedAfterPrescale and not isPassedAfterVeto

Definition at line 58 of file Lvl1Result.cxx.

59 {
61 }

◆ itemsAfterPrescale() [1/2]

std::vector<uint32_t>& LVL1CTP::Lvl1Result::itemsAfterPrescale ( )
inline

Definition at line 62 of file Lvl1Result.h.

62 { return m_l1_itemsTAP; }

◆ itemsAfterPrescale() [2/2]

const std::vector<uint32_t>& LVL1CTP::Lvl1Result::itemsAfterPrescale ( ) const
inline

Definition at line 56 of file Lvl1Result.h.

56 { return m_l1_itemsTAP; }

◆ itemsAfterVeto() [1/2]

std::vector<uint32_t>& LVL1CTP::Lvl1Result::itemsAfterVeto ( )
inline

Definition at line 63 of file Lvl1Result.h.

63 { return m_l1_itemsTAV; }

◆ itemsAfterVeto() [2/2]

const std::vector<uint32_t>& LVL1CTP::Lvl1Result::itemsAfterVeto ( ) const
inline

Definition at line 57 of file Lvl1Result.h.

57 { return m_l1_itemsTAV; }

◆ itemsBeforePrescale() [1/2]

std::vector<uint32_t>& LVL1CTP::Lvl1Result::itemsBeforePrescale ( )
inline

Definition at line 61 of file Lvl1Result.h.

61 { return m_l1_itemsTBP; }

◆ itemsBeforePrescale() [2/2]

const std::vector<uint32_t>& LVL1CTP::Lvl1Result::itemsBeforePrescale ( ) const
inline

Definition at line 55 of file Lvl1Result.h.

55 { return m_l1_itemsTBP; }

◆ itemsPassed() [1/2]

std::vector<uint32_t>& LVL1CTP::Lvl1Result::itemsPassed ( )
inline

Definition at line 60 of file Lvl1Result.h.

60 { return m_l1_itemsTAV; }

◆ itemsPassed() [2/2]

const std::vector<uint32_t>& LVL1CTP::Lvl1Result::itemsPassed ( ) const
inline

Definition at line 54 of file Lvl1Result.h.

54 { return m_l1_itemsTAV; }

◆ nItems()

unsigned int LVL1CTP::Lvl1Result::nItems ( ) const
inline

Definition at line 52 of file Lvl1Result.h.

52 { return m_l1_itemsTAV.size()*32; }

Member Data Documentation

◆ m_configured

bool LVL1CTP::Lvl1Result::m_configured
private

Definition at line 68 of file Lvl1Result.h.

◆ m_l1_itemsTAP

std::vector<uint32_t> LVL1CTP::Lvl1Result::m_l1_itemsTAP
private

Trigger (level 1 items) After Prescale.

Definition at line 74 of file Lvl1Result.h.

◆ m_l1_itemsTAV

std::vector<uint32_t> LVL1CTP::Lvl1Result::m_l1_itemsTAV
private

Trigger (level 1 items) After Veto (==final L1 decision)

Definition at line 75 of file Lvl1Result.h.

◆ m_l1_itemsTBP

std::vector<uint32_t> LVL1CTP::Lvl1Result::m_l1_itemsTBP
private

Trigger (level 1 items) Before Prescale.

Definition at line 73 of file Lvl1Result.h.


The documentation for this class was generated from the following files:
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LVL1CTP::Lvl1Result::isConfigured
bool isConfigured() const
is LVL1 configured ?
Definition: Lvl1Result.h:39
LVL1CTP::Lvl1Result::m_l1_itemsTAP
std::vector< uint32_t > m_l1_itemsTAP
Trigger (level 1 items) After Prescale.
Definition: Lvl1Result.h:74
LVL1CTP::Lvl1Result::anyActiveL1ItemAfterVeto
bool anyActiveL1ItemAfterVeto() const
any LVL1 item passed after prescale, veto ?
Definition: Lvl1Result.cxx:9
config
Definition: PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
LVL1CTP::Lvl1Result::isPassedAfterPrescale
bool isPassedAfterPrescale(unsigned int item) const
after prescale
Definition: Lvl1Result.cxx:32
LVL1CTP::Lvl1Result::m_configured
bool m_configured
Definition: Lvl1Result.h:68
lumiFormat.i
int i
Definition: lumiFormat.py:85
item
Definition: ItemListSvc.h:43
LVL1CTP::Lvl1Result::isPassedBeforePrescale
bool isPassedBeforePrescale(unsigned int item) const
raw L1 item
Definition: Lvl1Result.cxx:25
LVL1CTP::Lvl1Result::m_l1_itemsTAV
std::vector< uint32_t > m_l1_itemsTAV
Trigger (level 1 items) After Veto (==final L1 decision)
Definition: Lvl1Result.h:75
LVL1CTP::Lvl1Result::m_l1_itemsTBP
std::vector< uint32_t > m_l1_itemsTBP
Trigger (level 1 items) Before Prescale.
Definition: Lvl1Result.h:73
LVL1CTP::Lvl1Result::isPassedAfterVeto
bool isPassedAfterVeto(unsigned int item) const
final L1 decision for this item
Definition: Lvl1Result.cxx:39