|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #ifndef TRIGSTEERINGEVENT_HLTResult_H
13 #define TRIGSTEERINGEVENT_HLTResult_H
23 #ifdef XAOD_STANDALONE
26 #include "GaudiKernel/IClassIDSvc.h"
70 virtual bool error()
const ;
80 bool serialize(std::vector<uint32_t>&
output,
const unsigned int mod_id);
316 unsigned int size()
const;
321 std::vector<unsigned int>
partSizes()
const;
341 void listOfModIDs(std::vector<unsigned int>& mod_ids)
const;
372 using CutPairs = std::vector<std::pair<unsigned int, unsigned int>>;
388 unsigned int mod_id);
398 unsigned int estimated_size);
406 unsigned int umax_size,
407 bool truncating)
const;
415 unsigned int max_size,
416 unsigned int nav_size,
418 bool truncating)
const;
425 unsigned int umax_size,
426 bool truncating)
const;
433 unsigned int umax_size,
434 unsigned int nav_size,
436 bool truncating)
const;
482 std::vector< std::pair < CLID, std::string > >
m_id_name;
HLTResult & operator=(HLTResult rhs)
unified assignement operator
@ IndEventNumber
event number (from EventInfo::EventID::event_number())
void setLvlConverterStatus(ErrorCode status)
std::vector< uint32_t > m_extras
extra storeage (which can be used to store some operational infos)
bool isPassThrough() const
forced-accepted (FA) event configuration the FA request(s) are set per chain and hlt level by the tig...
bool serialize_regular(uint32_t *&output, int &data_size, int max_size)
bool serialize_bootstrap(uint32_t *&output, int &data_size, bool &truncating, int max_size, unsigned int estimated_size)
void setHLTStatus(ErrorCode hltStatus)
bool deserialize(const std::vector< uint32_t > &source)
GenericResult::deserialize( const std::vector<uint32_t>& source )
std::pair< CutPairs, CutPairs > CutPairVecs
std::map< unsigned int, std::set< std::pair< CLID, std::string > > > m_modID_id_name
std::vector< unsigned int > & getNavigationResultCuts_DSonly()
gets ref to the internal array holding places for safe navigation truncations
std::map< unsigned int, std::set< std::pair< CLID, std::string > > > & getScoutingMap()
methods to get and set the Scouting Map saved into HLTResult
HLTExtraData * m_extraData
object for m_extras deserialization (on demand)
@ IndNumOfSatisfiedSigs
number of satisfied signatures
void getErrorCoordinates(unsigned int &chainCounter, unsigned int &step) const
get error coordinates
friend void swap(HLTResult &lhs, HLTResult &rhs)
virtual bool error() const
problems during processing
@ IndHLTDecision
HLT decision (== 0 if event has been rejected at HLT)
@ IndLvlConverterStatus
LvlConverter status corresponding to ErrorCode enums.
virtual bool accepted() const
reject or accept
@ IndConfigPrescalesKey
configuration key for prescales
void swap(HLTExtraData &, HLTExtraData &)
void setErrorCoordinates(unsigned int chainCounter=0, unsigned int step=0)
sets the information about the error, namely chain in which the error happened and the step
std::vector< unsigned int > & getNavigationResultCuts()
gets ref to the internal array holding places for safe navigation truncations
std::vector< uint32_t > m_chainsResult
storege of serialized chains
@ IndHLTStatus
HLT status corresponding to ErrorCode enums.
@ IndNumOfFixedBit
total number of fixed bits
std::vector< uint32_t > m_navigationResult_DSonly
storage of navigation (serialized also) for DataScouting
ErrorCode getLvlConverterStatus() const
overall hlt status: if StatusCode::isFailure(), event should be discarded from physics stream (and,...
const std::vector< uint32_t > & getChainResult() const
std::vector< std::pair< CLID, std::string > > & getNavigationResultIDName()
gets ref to the internal vector of pairs of CLID and collection name
ErrorCode
Error code: whether the classification was successful or failed.
bool serialize(std::vector< uint32_t > &output, const unsigned int mod_id)
uint32_t getHLTResultClassVersion() const
HLTResult version (set accessor is private)
const std::vector< uint32_t > & getNavigationResult() const
retrieve the sub-payloads (can be used to retrieve/write data)
File providing the ClassID_traits traits class.
uint32_t getLvl1Id() const
gets event number (Lvl1-id)
@ IndErrorInStep
step number in which error occured, in normal conditions sbould be 0
std::vector< std::pair< unsigned int, unsigned int > > CutPairs
std::vector< unsigned int > listOfModIDs() const
return the rob module ID vector
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
bool isCreatedOutsideHLT() const
is HLTResult created externally, in PSC in example
bool serialize_DS(uint32_t *&output, int &data_size, int max_size, unsigned int mod_id)
void setNumOfSatisfiedSigs(uint32_t sigs)
sget number of satisfied signatures
@ IndConfigSuperMasterKey
configuration key for the menu
@ IndErrorInChain
chain ID in which the error occured, in normal conditions sbould be 0
bool isHLTResultTruncated() const
is serialized HLTResult truncated
const std::vector< uint32_t > & getExtras() const
std::vector< std::pair< CLID, std::string > > & getNavigationResultIDName_DSonly()
gets ref to the internal vector of pairs of CLID and collection name
virtual uint32_t error_bits() const
bit flags to explain problems during processing
std::vector< std::pair< CLID, std::string > > m_id_name
@ IndCreatedOutsideHLT
also an error identifier
HLT::HLTResult is sumarising result of trigger decision evaluation (online/offline) It contains basic...
void setCreatedOutsideHLT(bool created)
bool isAccepted() const
gets HLT decision
std::vector< std::pair< CLID, std::string > > m_id_name_DSonly
unsigned int estimateSize() const
Estimate the size this HLTResult would ocuppy once serialized.
void setConfigSuperMasterKey(uint32_t key)
sets the key of the menu which was used to trigger this event
bool isEmpty() const
true if result is empty
bool serialize_navigation_DS(uint32_t *output, int &data_size, unsigned int umax_size, unsigned int nav_size, const CutPairVecs &dscuts, bool truncating) const
std::vector< uint32_t > m_navigationResult
storage of navigation (serialized also)
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
@ IndHLTResultTruncated
the serialize function could not fit everything into the given max data_size
bool serialize_body_DS(uint32_t *output, int &data_size, unsigned int max_size, unsigned int nav_size, const CutPairVecs &dscuts, bool truncating) const
bool isValid() const
is the result valid
ErrorCode getHLTStatus() const
overall hlt status: if StatusCode::isFailure(), event should be discarded from physics stream (and,...
std::vector< unsigned int > m_navigationResultCuts
File providing the different SG_BASE macros.
static unsigned int calc_total_size_DS(unsigned int ds_nav_size)
Calculate the size of a DS result, given the size of its navigation.
void setAccepted(bool acc)
sets HLT decision
std::vector< uint32_t > m_headerResult
the full payload, and sub-payloads
void setScoutingMap(const std::map< unsigned int, std::set< std::pair< CLID, std::string > > > &map_modid_clid_name)
void setConfigPrescalesKey(uint32_t key)
sets the key of the prescales config which was used to trigger this event
void setPassThrough(bool fa)
set passTrough flag
@ IndHLTLevelInfo
the HLT level
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
std::vector< unsigned int > partSizes() const
uint32_t getNumOfSatisfiedSigs() const
get number of satisfied signatures
unsigned int size() const
uint32_t getConfigPrescalesKey() const
gets the key of the prescales config which was used to trigger this event
HLTLevel getHLTLevel() const
hlt level (L2 or EF)
bool unpackFromStorable(const std::vector< uint32_t > &raw)
split the rawResult vector into rawPartialResult's
InitBits
fixed bits; general trigger and status information
uint32_t getConfigSuperMasterKey() const
gets the key of the menu which was used to trigger this event
HLTExtraData & getExtraData()
@ IndPassThrough
has the event been forced (passed through)
@ IndHLTResultClassVersion
const std::vector< uint32_t > & getNavigationResult_DSonly() const
bool serialize_navigation_reg(uint32_t *output, int &data_size, unsigned int umax_size, bool truncating) const
std::vector< unsigned int > m_navigationResultCuts_DSonly
void setLvl1Id(uint32_t id)
sets event number (Lvl1-id)
static const uint32_t m_HLTResultClassVersion
the version of this HLTResult class
CutPairVecs findDSCuts(unsigned int) const
Find the pairs of cut points that mark the boundaries of DS collections for the given module id.
the interface class for all HLT, CALIB, MONITORING results The class define the interface between PSC...
void setHLTResultTruncated(bool truncated)
bool serialize_body_regular(uint32_t *output, int &data_size, unsigned int umax_size, bool truncating) const
void setHLTLevel(HLTLevel hltLevel)