![]() |
ATLAS Offline Software
|
HLT::HLTResult is sumarising result of trigger decision evaluation (online/offline) It contains basically 3 parts: More...
#include <HLTResult.h>
Public Member Functions | |
| HLTResult () | |
| constructor | |
| HLTResult (const HLTResult &) | |
| copy constructor | |
| HLTResult (HLTResult &&rhs) | |
| move ctor | |
| HLTResult & | operator= (HLTResult rhs) |
| unified assignement operator | |
| ~HLTResult () | |
| destructor | |
| virtual bool | accepted () const |
| reject or accept | |
| virtual bool | error () const |
| problems during processing | |
| virtual uint32_t | error_bits () const |
| bit flags to explain problems during processing | |
| bool | serialize (std::vector< uint32_t > &output, const unsigned int mod_id) |
| bool | serialize (std::vector< uint32_t > &output) |
| get the result of the processing as the raw vector of 32 bit unsigned integers | |
| bool | serialize (uint32_t *&output, int &data_size, const int max_size=-1, const unsigned int mod_id=0) |
| bool | deserialize (const std::vector< uint32_t > &source) |
| GenericResult::deserialize( const std::vector<uint32_t>& source ) | |
| bool | deserialize (uint32_t *source, const int data_size) |
| GenericResult::deserialize( uint32_t* source, const int data_size ) | |
| uint32_t | getHLTResultClassVersion () const |
| HLTResult version (set accessor is private) | |
| uint32_t | getLvl1Id () const |
| gets event number (Lvl1-id) | |
| void | setLvl1Id (uint32_t id) |
| sets event number (Lvl1-id) | |
| bool | isAccepted () const |
| gets HLT decision | |
| void | setAccepted (bool acc) |
| sets HLT decision | |
| bool | isPassThrough () const |
| forced-accepted (FA) event configuration the FA request(s) are set per chain and hlt level by the tigger configuration; isForcedAccepted() is set to true if a chain has been accepted owing to the FA mechanism; this is independent of whether the event would been accepted anyway by this chain where the FA has been applied | |
| void | setPassThrough (bool fa) |
| set passTrough flag | |
| ErrorCode | getHLTStatus () const |
| overall hlt status: if StatusCode::isFailure(), event should be discarded from physics stream (and, eg, send to debug stream) (StatusCode enums are: Failure=0, Success=1, Recoverable=2, see GaudiKernel/ StatusCode.h for more information) | |
| void | setHLTStatus (ErrorCode hltStatus) |
| ErrorCode | getLvlConverterStatus () const |
| overall hlt status: if StatusCode::isFailure(), event should be discarded from physics stream (and, eg, send to debug stream) (StatusCode enums are: Failure=0, Success=1, Recoverable=2, see GaudiKernel/ StatusCode.h for more information) | |
| void | setLvlConverterStatus (ErrorCode status) |
| HLTLevel | getHLTLevel () const |
| hlt level (L2 or EF) | |
| void | setHLTLevel (HLTLevel hltLevel) |
| bool | isValid () const |
| is the result valid | |
| uint32_t | getNumOfSatisfiedSigs () const |
| get number of satisfied signatures | |
| void | setNumOfSatisfiedSigs (uint32_t sigs) |
| sget number of satisfied signatures | |
| 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 | |
| void | getErrorCoordinates (unsigned int &chainCounter, unsigned int &step) const |
| get error coordinates | |
| bool | isCreatedOutsideHLT () const |
| is HLTResult created externally, in PSC in example | |
| void | setCreatedOutsideHLT (bool created) |
| void | setConfigSuperMasterKey (uint32_t key) |
| sets the key of the menu which was used to trigger this event | |
| uint32_t | getConfigSuperMasterKey () const |
| gets the key of the menu which was used to trigger this event | |
| void | setConfigPrescalesKey (uint32_t key) |
| sets the key of the prescales config which was used to trigger this event | |
| uint32_t | getConfigPrescalesKey () const |
| gets the key of the prescales config which was used to trigger this event | |
| bool | isHLTResultTruncated () const |
| is serialized HLTResult truncated | |
| void | setHLTResultTruncated (bool truncated) |
| const std::vector< uint32_t > & | getNavigationResult () const |
| retrieve the sub-payloads (can be used to retrieve/write data) | |
| const std::vector< uint32_t > & | getNavigationResult_DSonly () const |
| const std::vector< uint32_t > & | getChainResult () const |
| const std::vector< uint32_t > & | getExtras () const |
| std::vector< unsigned int > & | getNavigationResultCuts () |
| gets ref to the internal array holding places for safe navigation truncations | |
| const std::vector< unsigned int > & | getNavigationResultCuts () const |
| std::vector< unsigned int > & | getNavigationResultCuts_DSonly () |
| gets ref to the internal array holding places for safe navigation truncations | |
| const std::vector< unsigned int > & | getNavigationResultCuts_DSonly () const |
| std::vector< std::pair< CLID, std::string > > & | getNavigationResultIDName () |
| gets ref to the internal vector of pairs of CLID and collection name | |
| const std::vector< std::pair< CLID, std::string > > & | getNavigationResultIDName () const |
| std::vector< std::pair< CLID, std::string > > & | getNavigationResultIDName_DSonly () |
| gets ref to the internal vector of pairs of CLID and collection name | |
| const std::vector< std::pair< CLID, std::string > > & | getNavigationResultIDName_DSonly () const |
| std::vector< uint32_t > & | getNavigationResult () |
| gets ref to the internal array holding serialized navigation | |
| std::vector< uint32_t > & | getNavigationResult_DSonly () |
| gets ref to the internal array holding serialized navigation | |
| std::vector< uint32_t > & | getChainResult () |
| gets ref to the internal array holding serialized chains | |
| std::vector< uint32_t > & | getExtras () |
| std::map< unsigned int, std::set< std::pair< CLID, std::string > > > & | getScoutingMap () |
| methods to get and set the Scouting Map saved into HLTResult | |
| const std::map< unsigned int, std::set< std::pair< CLID, std::string > > > & | getScoutingMap () const |
| void | setScoutingMap (const std::map< unsigned int, std::set< std::pair< CLID, std::string > > > &map_modid_clid_name) |
| HLTExtraData & | getExtraData () |
| unsigned int | size () const |
| std::vector< unsigned int > | partSizes () const |
| bool | isEmpty () const |
| true if result is empty | |
| void | listOfModIDs (std::vector< unsigned int > &mod_ids) const |
| map of satisfied signatures (needed by TriggerDecisionMaker) returns a vector of satisfied signatures for this event; it is a vector of pairs where first is signature ID, second is signature label(name). | |
| std::vector< unsigned int > | listOfModIDs () const |
| return the rob module ID vector | |
Private Types | |
| enum | InitBits { IndHLTResultClassVersion = 0 , IndEventNumber , IndHLTDecision , IndPassThrough , IndHLTStatus , IndLvlConverterStatus , IndHLTLevelInfo , IndNumOfSatisfiedSigs , IndErrorInChain , IndErrorInStep , IndCreatedOutsideHLT , IndHLTResultTruncated , IndConfigSuperMasterKey , IndConfigPrescalesKey , IndNumOfFixedBit } |
| fixed bits; general trigger and status information More... | |
| using | CutPairs = std::vector<std::pair<unsigned int, unsigned int>> |
| using | CutPairVecs = std::pair<CutPairs, CutPairs> |
Private Member Functions | |
| bool | serialize_regular (uint32_t *&output, int &data_size, int max_size) |
| bool | serialize_DS (uint32_t *&output, int &data_size, int max_size, unsigned int mod_id) |
| bool | serialize_bootstrap (uint32_t *&output, int &data_size, bool &truncating, int max_size, unsigned int estimated_size) |
| bool | serialize_body_regular (uint32_t *output, int &data_size, unsigned int umax_size, bool truncating) const |
| 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 | serialize_navigation_reg (uint32_t *output, int &data_size, unsigned int umax_size, bool truncating) const |
| bool | serialize_navigation_DS (uint32_t *output, int &data_size, unsigned int umax_size, unsigned int nav_size, const CutPairVecs &dscuts, bool truncating) const |
| void | updateExtras () |
| unsigned int | estimateSize () const |
| Estimate the size this HLTResult would ocuppy once serialized. | |
| CutPairVecs | findDSCuts (unsigned int) const |
| Find the pairs of cut points that mark the boundaries of DS collections for the given module id. | |
| bool | unpackFromStorable (const std::vector< uint32_t > &raw) |
| split the rawResult vector into rawPartialResult's | |
Static Private Member Functions | |
| 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. | |
Private Attributes | |
| std::vector< uint32_t > | m_headerResult |
| the full payload, and sub-payloads | |
| std::vector< uint32_t > | m_chainsResult |
| storege of serialized chains | |
| std::vector< uint32_t > | m_navigationResult |
| storage of navigation (serialized also) | |
| std::vector< uint32_t > | m_navigationResult_DSonly |
| storage of navigation (serialized also) for DataScouting | |
| std::vector< uint32_t > | m_extras |
| extra storeage (which can be used to store some operational infos) | |
| std::vector< std::pair< CLID, std::string > > | m_id_name |
| std::vector< std::pair< CLID, std::string > > | m_id_name_DSonly |
| std::map< unsigned int, std::set< std::pair< CLID, std::string > > > | m_modID_id_name |
| std::vector< unsigned int > | m_navigationResultCuts |
| std::vector< unsigned int > | m_navigationResultCuts_DSonly |
| HLTExtraData * | m_extraData |
| object for m_extras deserialization (on demand) | |
Static Private Attributes | |
| static const uint32_t | m_HLTResultClassVersion = 3 |
| the version of this HLTResult class | |
Friends | |
| class | HLTResultCnv_p1 |
| void | swap (HLTResult &lhs, HLTResult &rhs) |
HLT::HLTResult is sumarising result of trigger decision evaluation (online/offline) It contains basically 3 parts:
Definition at line 51 of file HLTResult.h.
|
private |
Definition at line 372 of file HLTResult.h.
|
private |
Definition at line 373 of file HLTResult.h.
|
private |
fixed bits; general trigger and status information
| Enumerator | |
|---|---|
| IndHLTResultClassVersion | |
| IndEventNumber | event number (from EventInfo::EventID::event_number()) |
| IndHLTDecision | |
| IndPassThrough | has the event been forced (passed through) |
| IndHLTStatus | |
| IndLvlConverterStatus | LvlConverter status corresponding to ErrorCode enums. |
| IndHLTLevelInfo | the HLT level |
| IndNumOfSatisfiedSigs | number of satisfied signatures |
| IndErrorInChain | chain ID in which the error occured, in normal conditions sbould be 0 |
| IndErrorInStep | step number in which error occured, in normal conditions sbould be 0 |
| IndCreatedOutsideHLT | also an error identifier |
| IndHLTResultTruncated | the serialize function could not fit everything into the given max data_size |
| IndConfigSuperMasterKey | configuration key for the menu |
| IndConfigPrescalesKey | configuration key for prescales |
| IndNumOfFixedBit | total number of fixed bits |
Definition at line 355 of file HLTResult.h.
| HLTResult::HLTResult | ( | ) |
constructor
Definition at line 24 of file HLTResult.cxx.
| HLTResult::HLTResult | ( | const HLTResult & | rhs | ) |
copy constructor
Definition at line 52 of file HLTResult.cxx.
| HLTResult::HLTResult | ( | HLTResult && | rhs | ) |
move ctor
Definition at line 68 of file HLTResult.cxx.
| HLTResult::~HLTResult | ( | ) |
|
inlinevirtual |
reject or accept
Implements GenericResult.
Definition at line 65 of file HLTResult.h.
|
staticprivate |
Calculate the size of a DS result, given the size of its navigation.
Definition at line 271 of file HLTResult.cxx.
|
virtual |
GenericResult::deserialize( const std::vector<uint32_t>& source )
Implements GenericResult.
Definition at line 482 of file HLTResult.cxx.
|
virtual |
GenericResult::deserialize( uint32_t* source, const int data_size )
Implements GenericResult.
Definition at line 487 of file HLTResult.cxx.
|
virtual |
problems during processing
Implements GenericResult.
Definition at line 102 of file HLTResult.cxx.
|
virtual |
bit flags to explain problems during processing
Implements GenericResult.
Definition at line 106 of file HLTResult.cxx.
|
private |
Estimate the size this HLTResult would ocuppy once serialized.
Definition at line 124 of file HLTResult.cxx.
|
private |
Find the pairs of cut points that mark the boundaries of DS collections for the given module id.
Definition at line 243 of file HLTResult.cxx.
|
inline |
gets ref to the internal array holding serialized chains
Definition at line 291 of file HLTResult.h.
|
inline |
Definition at line 252 of file HLTResult.h.
| uint32_t HLTResult::getConfigPrescalesKey | ( | ) | const |
gets the key of the prescales config which was used to trigger this event
Definition at line 650 of file HLTResult.cxx.
| uint32_t HLTResult::getConfigSuperMasterKey | ( | ) | const |
gets the key of the menu which was used to trigger this event
Definition at line 638 of file HLTResult.cxx.
|
inline |
| HLTExtraData & HLTResult::getExtraData | ( | ) |
Definition at line 658 of file HLTResult.cxx.
|
inline |
Definition at line 298 of file HLTResult.h.
|
inline |
Definition at line 253 of file HLTResult.h.
|
inline |
|
inline |
|
inline |
overall hlt status: if StatusCode::isFailure(), event should be discarded from physics stream (and, eg, send to debug stream) (StatusCode enums are: Failure=0, Success=1, Recoverable=2, see GaudiKernel/ StatusCode.h for more information)
Definition at line 158 of file HLTResult.h.
|
inline |
|
inline |
overall hlt status: if StatusCode::isFailure(), event should be discarded from physics stream (and, eg, send to debug stream) (StatusCode enums are: Failure=0, Success=1, Recoverable=2, see GaudiKernel/ StatusCode.h for more information)
Definition at line 167 of file HLTResult.h.
|
inline |
gets ref to the internal array holding serialized navigation
Definition at line 281 of file HLTResult.h.
|
inline |
retrieve the sub-payloads (can be used to retrieve/write data)
Definition at line 250 of file HLTResult.h.
|
inline |
gets ref to the internal array holding serialized navigation
Definition at line 286 of file HLTResult.h.
|
inline |
Definition at line 251 of file HLTResult.h.
|
inline |
gets ref to the internal array holding places for safe navigation truncations
Definition at line 258 of file HLTResult.h.
|
inline |
Definition at line 259 of file HLTResult.h.
|
inline |
gets ref to the internal array holding places for safe navigation truncations
Definition at line 264 of file HLTResult.h.
|
inline |
Definition at line 265 of file HLTResult.h.
|
inline |
gets ref to the internal vector of pairs of CLID and collection name
Definition at line 270 of file HLTResult.h.
|
inline |
Definition at line 271 of file HLTResult.h.
|
inline |
gets ref to the internal vector of pairs of CLID and collection name
Definition at line 275 of file HLTResult.h.
|
inline |
Definition at line 276 of file HLTResult.h.
|
inline |
|
inline |
methods to get and set the Scouting Map saved into HLTResult
Definition at line 303 of file HLTResult.h.
|
inline |
Definition at line 304 of file HLTResult.h.
|
inline |
|
inline |
is HLTResult created externally, in PSC in example
Definition at line 211 of file HLTResult.h.
| bool HLTResult::isEmpty | ( | ) | const |
true if result is empty
Definition at line 626 of file HLTResult.cxx.
|
inline |
|
inline |
forced-accepted (FA) event configuration the FA request(s) are set per chain and hlt level by the tigger configuration; isForcedAccepted() is set to true if a chain has been accepted owing to the FA mechanism; this is independent of whether the event would been accepted anyway by this chain where the FA has been applied
Definition at line 146 of file HLTResult.h.
|
inline |
is the result valid
Definition at line 180 of file HLTResult.h.
| std::vector< unsigned int > HLTResult::listOfModIDs | ( | ) | const |
return the rob module ID vector
Definition at line 93 of file HLTResult.cxx.
| void HLTResult::listOfModIDs | ( | std::vector< unsigned int > & | mod_ids | ) | const |
map of satisfied signatures (needed by TriggerDecisionMaker) returns a vector of satisfied signatures for this event; it is a vector of pairs where first is signature ID, second is signature label(name).
return the rob module ID vector. (fills up rod_mod_ids vector given by reference)
Definition at line 86 of file HLTResult.cxx.
unified assignement operator
Definition at line 75 of file HLTResult.cxx.
| std::vector< unsigned int > HLTResult::partSizes | ( | ) | const |
Definition at line 616 of file HLTResult.cxx.
|
inlinevirtual |
get the result of the processing as the raw vector of 32 bit unsigned integers
| output | the place where to put the data |
Implements GenericResult.
Definition at line 442 of file HLTResult.cxx.
| bool HLTResult::serialize | ( | std::vector< uint32_t > & | output, |
| const unsigned int | mod_id ) |
Definition at line 447 of file HLTResult.cxx.
|
inlinevirtual |
Implements GenericResult.
Definition at line 463 of file HLTResult.cxx.
|
private |
Definition at line 389 of file HLTResult.cxx.
|
inlineprivate |
Definition at line 377 of file HLTResult.cxx.
|
private |
Definition at line 356 of file HLTResult.cxx.
|
private |
Definition at line 424 of file HLTResult.cxx.
|
private |
Definition at line 321 of file HLTResult.cxx.
|
private |
Definition at line 277 of file HLTResult.cxx.
|
private |
Definition at line 411 of file HLTResult.cxx.
|
inline |
| void HLTResult::setConfigPrescalesKey | ( | uint32_t | key | ) |
sets the key of the prescales config which was used to trigger this event
Definition at line 645 of file HLTResult.cxx.
| void HLTResult::setConfigSuperMasterKey | ( | uint32_t | key | ) |
sets the key of the menu which was used to trigger this event
Definition at line 632 of file HLTResult.cxx.
|
inline |
Definition at line 212 of file HLTResult.h.
|
inline |
sets the information about the error, namely chain in which the error happened and the step
| chainCounter | says in which chain it was (0 denotes that error wasn;t inchains processing) |
| step | is telling in which step in the chain the error occured |
Definition at line 198 of file HLTResult.h.
|
inline |
Definition at line 174 of file HLTResult.h.
|
inline |
Definition at line 243 of file HLTResult.h.
|
inline |
Definition at line 159 of file HLTResult.h.
|
inline |
|
inline |
Definition at line 168 of file HLTResult.h.
|
inline |
|
inline |
|
inline |
Definition at line 306 of file HLTResult.h.
| unsigned int HLTResult::size | ( | ) | const |
Definition at line 612 of file HLTResult.cxx.
|
private |
split the rawResult vector into rawPartialResult's
Definition at line 493 of file HLTResult.cxx.
|
inlineprivate |
Definition at line 473 of file HLTResult.cxx.
|
friend |
Definition at line 350 of file HLTResult.h.
|
private |
storege of serialized chains
Definition at line 477 of file HLTResult.h.
|
private |
object for m_extras deserialization (on demand)
Definition at line 492 of file HLTResult.h.
|
private |
extra storeage (which can be used to store some operational infos)
Definition at line 480 of file HLTResult.h.
|
private |
the full payload, and sub-payloads
storage of header words
Definition at line 476 of file HLTResult.h.
|
staticprivate |
the version of this HLTResult class
version of HLTResult class: change this upon schema evolution
Definition at line 470 of file HLTResult.h.
|
private |
Definition at line 482 of file HLTResult.h.
|
private |
Definition at line 484 of file HLTResult.h.
|
private |
Definition at line 486 of file HLTResult.h.
|
private |
storage of navigation (serialized also)
Definition at line 478 of file HLTResult.h.
|
private |
storage of navigation (serialized also) for DataScouting
Definition at line 479 of file HLTResult.h.
|
private |
Definition at line 488 of file HLTResult.h.
|
private |
Definition at line 490 of file HLTResult.h.