ATLAS Offline Software
Loading...
Searching...
No Matches
TrigDecision_v1.cxx File Reference
#include <algorithm>
#include <climits>
#include "xAODCore/AuxStoreAccessorMacros.h"
#include "xAODTrigger/versions/TrigDecision_v1.h"
Include dependency graph for TrigDecision_v1.cxx:

Go to the source code of this file.

Namespaces

namespace  xAOD
 ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.

Functions

 xAOD::AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (TrigDecision_v1, uint32_t, smk, setSMK) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(TrigDecision_v1
setBGCode xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER (TrigDecision_v1, std::vector< uint32_t >, tav, setTAV) AUXSTORE_OBJECT_SETTER_AND_GETTER(TrigDecision_v1
setBGCode setTAP xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER (TrigDecision_v1, std::vector< uint32_t >, tbp, setTBP) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(TrigDecision_v1
setBGCode setTAP setLVL2ErrorBits xAOD::AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (TrigDecision_v1, uint32_t, efErrorBits, setEFErrorBits) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(TrigDecision_v1
setBGCode setTAP setLVL2ErrorBits setLVL2Truncated xAOD::AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (TrigDecision_v1, bool, efTruncated, setEFTruncated) AUXSTORE_OBJECT_SETTER_AND_GETTER(TrigDecision_v1
setBGCode setTAP setLVL2ErrorBits setLVL2Truncated setLVL2PassedPhysics xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER (TrigDecision_v1, std::vector< uint32_t >, efPassedPhysics, setEFPassedPhysics) AUXSTORE_OBJECT_SETTER_AND_GETTER(TrigDecision_v1
setBGCode setTAP setLVL2ErrorBits setLVL2Truncated setLVL2PassedPhysics setLVL2PassedRaw xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER (TrigDecision_v1, std::vector< uint32_t >, efPassedRaw, setEFPassedRaw) AUXSTORE_OBJECT_SETTER_AND_GETTER(TrigDecision_v1
setBGCode setTAP setLVL2ErrorBits setLVL2Truncated setLVL2PassedPhysics setLVL2PassedRaw setLVL2PassedThrough xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER (TrigDecision_v1, std::vector< uint32_t >, efPassedThrough, setEFPassedThrough) AUXSTORE_OBJECT_SETTER_AND_GETTER(TrigDecision_v1
setBGCode setTAP setLVL2ErrorBits setLVL2Truncated setLVL2PassedPhysics setLVL2PassedRaw setLVL2PassedThrough setLVL2Prescaled xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER (TrigDecision_v1, std::vector< uint32_t >, efPrescaled, setEFPrescaled) AUXSTORE_OBJECT_SETTER_AND_GETTER(TrigDecision_v1
void writeBits (std::ostream &s, const std::vector< uint32_t > &input)
 Prints space separated positions of set bits from input bitset stored in vector.
std::ostream & xAOD::operator<< (std::ostream &s, const xAOD::TrigDecision_v1 &td)

Variables

 xAOD::char
 xAOD::bgCode
setBGCode xAOD::tap
setBGCode setTAP xAOD::lvl2ErrorBits
setBGCode setTAP setLVL2ErrorBits xAOD::bool
setBGCode setTAP setLVL2ErrorBits xAOD::lvl2Truncated
setBGCode setTAP setLVL2ErrorBits setLVL2Truncated xAOD::lvl2PassedPhysics
setBGCode setTAP setLVL2ErrorBits setLVL2Truncated setLVL2PassedPhysics xAOD::lvl2PassedRaw
setBGCode setTAP setLVL2ErrorBits setLVL2Truncated setLVL2PassedPhysics setLVL2PassedRaw xAOD::lvl2PassedThrough
setBGCode setTAP setLVL2ErrorBits setLVL2Truncated setLVL2PassedPhysics setLVL2PassedRaw setLVL2PassedThrough xAOD::lvl2Prescaled
setBGCode setTAP setLVL2ErrorBits setLVL2Truncated setLVL2PassedPhysics setLVL2PassedRaw setLVL2PassedThrough setLVL2Prescaled xAOD::lvl2Resurrected

Function Documentation

◆ writeBits()

void writeBits ( std::ostream & s,
const std::vector< uint32_t > & input )

Prints space separated positions of set bits from input bitset stored in vector.

Definition at line 96 of file TrigDecision_v1.cxx.

96 {
97 for (size_t i = 0; i < input.size(); ++i) {
98 const uint32_t entry = input.at(i);
99 const size_t bits = CHAR_BIT * sizeof( entry ); // This is expected to be 32 bits per entry in the vector
100 for (size_t bit = 0; bit < bits; ++bit) {
101 // Examine a single bit and, if 1, print its numeric position within the vector of uint32's.
102 if (entry & (1ul << bit)) s << ((bits * i) + bit) << " ";
103 }
104 }
105 s << std::endl;
106}
setEventNumber uint32_t