|
ATLAS Offline Software
|
HLT::HLTResult is sumarising result of trigger decision evaluation (online/offline) It contains basically 3 parts:
More...
#include <HLTResult.h>
|
| HLTResult () |
| constructor More...
|
|
| HLTResult (const HLTResult &) |
| copy constructor More...
|
|
| HLTResult (HLTResult &&rhs) |
| move ctor More...
|
|
HLTResult & | operator= (HLTResult rhs) |
| unified assignement operator More...
|
|
| ~HLTResult () |
| destructor More...
|
|
virtual bool | accepted () const |
| reject or accept More...
|
|
virtual bool | error () const |
| problems during processing More...
|
|
virtual uint32_t | error_bits () const |
| bit flags to explain problems during processing More...
|
|
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 More...
|
|
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 ) More...
|
|
bool | deserialize (uint32_t *source, const int data_size) |
| GenericResult::deserialize( uint32_t* source, const int data_size ) More...
|
|
uint32_t | getHLTResultClassVersion () const |
| HLTResult version (set accessor is private) More...
|
|
uint32_t | getLvl1Id () const |
| gets event number (Lvl1-id) More...
|
|
void | setLvl1Id (uint32_t id) |
| sets event number (Lvl1-id) More...
|
|
bool | isAccepted () const |
| gets HLT decision More...
|
|
void | setAccepted (bool acc) |
| sets HLT decision More...
|
|
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 More...
|
|
void | setPassThrough (bool fa) |
| set passTrough flag More...
|
|
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) More...
|
|
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) More...
|
|
void | setLvlConverterStatus (ErrorCode status) |
|
HLTLevel | getHLTLevel () const |
| hlt level (L2 or EF) More...
|
|
void | setHLTLevel (HLTLevel hltLevel) |
|
bool | isValid () const |
| is the result valid More...
|
|
uint32_t | getNumOfSatisfiedSigs () const |
| get number of satisfied signatures More...
|
|
void | setNumOfSatisfiedSigs (uint32_t sigs) |
| sget number of satisfied signatures More...
|
|
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 More...
|
|
void | getErrorCoordinates (unsigned int &chainCounter, unsigned int &step) const |
| get error coordinates More...
|
|
bool | isCreatedOutsideHLT () const |
| is HLTResult created externally, in PSC in example More...
|
|
void | setCreatedOutsideHLT (bool created) |
|
void | setConfigSuperMasterKey (uint32_t key) |
| sets the key of the menu which was used to trigger this event More...
|
|
uint32_t | getConfigSuperMasterKey () const |
| gets the key of the menu which was used to trigger this event More...
|
|
void | setConfigPrescalesKey (uint32_t key) |
| sets the key of the prescales config which was used to trigger this event More...
|
|
uint32_t | getConfigPrescalesKey () const |
| gets the key of the prescales config which was used to trigger this event More...
|
|
bool | isHLTResultTruncated () const |
| is serialized HLTResult truncated More...
|
|
void | setHLTResultTruncated (bool truncated) |
|
const std::vector< uint32_t > & | getNavigationResult () const |
| retrieve the sub-payloads (can be used to retrieve/write data) More...
|
|
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 More...
|
|
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 More...
|
|
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 More...
|
|
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 More...
|
|
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 More...
|
|
std::vector< uint32_t > & | getNavigationResult_DSonly () |
| gets ref to the internal array holding serialized navigation More...
|
|
std::vector< uint32_t > & | getChainResult () |
| gets ref to the internal array holding serialized chains More...
|
|
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 More...
|
|
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 More...
|
|
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). More...
|
|
std::vector< unsigned int > | listOfModIDs () const |
| return the rob module ID vector More...
|
|
|
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 > |
|
|
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. More...
|
|
CutPairVecs | findDSCuts (unsigned int) const |
| Find the pairs of cut points that mark the boundaries of DS collections for the given module id. More...
|
|
bool | unpackFromStorable (const std::vector< uint32_t > &raw) |
| split the rawResult vector into rawPartialResult's More...
|
|
|
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. More...
|
|
HLT::HLTResult is sumarising result of trigger decision evaluation (online/offline) It contains basically 3 parts:
- header word which are holding very basic ingormation line if event was accepted or error occurred
- serialized trigger chains info
- serialized navigation structure (eventually together with objects)
Definition at line 57 of file HLTResult.h.
◆ CutPairs
◆ CutPairVecs
◆ InitBits
fixed bits; general trigger and status information
Enumerator |
---|
IndHLTResultClassVersion | |
IndEventNumber | event number (from EventInfo::EventID::event_number())
|
IndHLTDecision | HLT decision (== 0 if event has been rejected at HLT)
|
IndPassThrough | has the event been forced (passed through)
|
IndHLTStatus | HLT status corresponding to ErrorCode enums.
|
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 361 of file HLTResult.h.
◆ HLTResult() [1/3]
◆ HLTResult() [2/3]
◆ HLTResult() [3/3]
◆ ~HLTResult()
HLTResult::~HLTResult |
( |
| ) |
|
◆ accepted()
virtual bool HLT::HLTResult::accepted |
( |
| ) |
const |
|
inlinevirtual |
◆ calc_total_size_DS()
unsigned int HLTResult::calc_total_size_DS |
( |
unsigned int |
ds_nav_size | ) |
|
|
staticprivate |
Calculate the size of a DS result, given the size of its navigation.
Definition at line 271 of file HLTResult.cxx.
273 static constexpr
auto num_size_words = 3
u;
◆ deserialize() [1/2]
bool HLTResult::deserialize |
( |
const std::vector< uint32_t > & |
source | ) |
|
|
virtual |
◆ deserialize() [2/2]
bool HLTResult::deserialize |
( |
uint32_t * |
source, |
|
|
const int |
data_size |
|
) |
| |
|
virtual |
◆ error()
bool HLTResult::error |
( |
| ) |
const |
|
virtual |
problems during processing
- Returns
- true if there was an error during event processing
Implements GenericResult.
Definition at line 102 of file HLTResult.cxx.
◆ error_bits()
uint32_t HLTResult::error_bits |
( |
| ) |
const |
|
virtual |
bit flags to explain problems during processing
- Returns
- some bits are set if there was na error
Implements GenericResult.
Definition at line 106 of file HLTResult.cxx.
◆ estimateSize()
unsigned int HLTResult::estimateSize |
( |
| ) |
const |
|
private |
◆ findDSCuts()
auto HLTResult::findDSCuts |
( |
unsigned int |
mod_id | ) |
const |
|
private |
Find the pairs of cut points that mark the boundaries of DS collections for the given module id.
- Returns
- A pair whose first element has the boundaries of collections found in the DS result and whose second element has the boundaries of collections found only in the regular result
Definition at line 243 of file HLTResult.cxx.
254 const auto& collections = modid_coll_it->second;
255 find_cuts(collections,
260 find_cuts(collections,
267 return std::make_pair(cuts_dsonly, cuts_reg);
◆ getChainResult() [1/2]
std::vector<uint32_t>& HLT::HLTResult::getChainResult |
( |
| ) |
|
|
inline |
gets ref to the internal array holding serialized chains
Definition at line 297 of file HLTResult.h.
◆ getChainResult() [2/2]
const std::vector<uint32_t>& HLT::HLTResult::getChainResult |
( |
| ) |
const |
|
inline |
◆ getConfigPrescalesKey()
uint32_t HLTResult::getConfigPrescalesKey |
( |
| ) |
const |
gets the key of the prescales config which was used to trigger this event
- Warning
- This info was introduced in version 2 of HLTresult for former data this method returns 0
Definition at line 650 of file HLTResult.cxx.
◆ getConfigSuperMasterKey()
uint32_t HLTResult::getConfigSuperMasterKey |
( |
| ) |
const |
gets the key of the menu which was used to trigger this event
- Warning
- This info was introduced in version 2 of HLTresult for former data this method returns 0
Definition at line 638 of file HLTResult.cxx.
◆ getErrorCoordinates()
void HLT::HLTResult::getErrorCoordinates |
( |
unsigned int & |
chainCounter, |
|
|
unsigned int & |
step |
|
) |
| const |
|
inline |
◆ getExtraData()
◆ getExtras() [1/2]
std::vector<uint32_t>& HLT::HLTResult::getExtras |
( |
| ) |
|
|
inline |
◆ getExtras() [2/2]
const std::vector<uint32_t>& HLT::HLTResult::getExtras |
( |
| ) |
const |
|
inline |
◆ getHLTLevel()
HLTLevel HLT::HLTResult::getHLTLevel |
( |
| ) |
const |
|
inline |
◆ getHLTResultClassVersion()
uint32_t HLT::HLTResult::getHLTResultClassVersion |
( |
| ) |
const |
|
inline |
◆ getHLTStatus()
ErrorCode HLT::HLTResult::getHLTStatus |
( |
| ) |
const |
|
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 164 of file HLTResult.h.
164 : Failure=0, Success=1, Recoverable=2,
◆ getLvl1Id()
uint32_t HLT::HLTResult::getLvl1Id |
( |
| ) |
const |
|
inline |
gets event number (Lvl1-id)
Definition at line 127 of file HLTResult.h.
◆ getLvlConverterStatus()
ErrorCode HLT::HLTResult::getLvlConverterStatus |
( |
| ) |
const |
|
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 173 of file HLTResult.h.
◆ getNavigationResult() [1/2]
std::vector<uint32_t>& HLT::HLTResult::getNavigationResult |
( |
| ) |
|
|
inline |
gets ref to the internal array holding serialized navigation
Definition at line 287 of file HLTResult.h.
◆ getNavigationResult() [2/2]
const std::vector<uint32_t>& HLT::HLTResult::getNavigationResult |
( |
| ) |
const |
|
inline |
retrieve the sub-payloads (can be used to retrieve/write data)
Definition at line 256 of file HLTResult.h.
◆ getNavigationResult_DSonly() [1/2]
std::vector<uint32_t>& HLT::HLTResult::getNavigationResult_DSonly |
( |
| ) |
|
|
inline |
gets ref to the internal array holding serialized navigation
Definition at line 292 of file HLTResult.h.
◆ getNavigationResult_DSonly() [2/2]
const std::vector<uint32_t>& HLT::HLTResult::getNavigationResult_DSonly |
( |
| ) |
const |
|
inline |
◆ getNavigationResultCuts() [1/2]
std::vector<unsigned int>& HLT::HLTResult::getNavigationResultCuts |
( |
| ) |
|
|
inline |
gets ref to the internal array holding places for safe navigation truncations
Definition at line 264 of file HLTResult.h.
◆ getNavigationResultCuts() [2/2]
const std::vector<unsigned int>& HLT::HLTResult::getNavigationResultCuts |
( |
| ) |
const |
|
inline |
◆ getNavigationResultCuts_DSonly() [1/2]
std::vector<unsigned int>& HLT::HLTResult::getNavigationResultCuts_DSonly |
( |
| ) |
|
|
inline |
gets ref to the internal array holding places for safe navigation truncations
Definition at line 270 of file HLTResult.h.
◆ getNavigationResultCuts_DSonly() [2/2]
const std::vector<unsigned int>& HLT::HLTResult::getNavigationResultCuts_DSonly |
( |
| ) |
const |
|
inline |
◆ getNavigationResultIDName() [1/2]
std::vector< std::pair <CLID, std::string> >& HLT::HLTResult::getNavigationResultIDName |
( |
| ) |
|
|
inline |
gets ref to the internal vector of pairs of CLID and collection name
Definition at line 276 of file HLTResult.h.
◆ getNavigationResultIDName() [2/2]
const std::vector< std::pair <CLID, std::string> >& HLT::HLTResult::getNavigationResultIDName |
( |
| ) |
const |
|
inline |
◆ getNavigationResultIDName_DSonly() [1/2]
std::vector< std::pair <CLID, std::string> >& HLT::HLTResult::getNavigationResultIDName_DSonly |
( |
| ) |
|
|
inline |
gets ref to the internal vector of pairs of CLID and collection name
Definition at line 281 of file HLTResult.h.
◆ getNavigationResultIDName_DSonly() [2/2]
const std::vector< std::pair <CLID, std::string> >& HLT::HLTResult::getNavigationResultIDName_DSonly |
( |
| ) |
const |
|
inline |
◆ getNumOfSatisfiedSigs()
uint32_t HLT::HLTResult::getNumOfSatisfiedSigs |
( |
| ) |
const |
|
inline |
get number of satisfied signatures
Definition at line 191 of file HLTResult.h.
◆ getScoutingMap() [1/2]
std::map<unsigned int, std::set<std::pair<CLID, std::string> > >& HLT::HLTResult::getScoutingMap |
( |
| ) |
|
|
inline |
◆ getScoutingMap() [2/2]
const std::map<unsigned int, std::set<std::pair<CLID, std::string> > >& HLT::HLTResult::getScoutingMap |
( |
| ) |
const |
|
inline |
◆ isAccepted()
bool HLT::HLTResult::isAccepted |
( |
| ) |
const |
|
inline |
◆ isCreatedOutsideHLT()
bool HLT::HLTResult::isCreatedOutsideHLT |
( |
| ) |
const |
|
inline |
◆ isEmpty()
bool HLTResult::isEmpty |
( |
| ) |
const |
◆ isHLTResultTruncated()
bool HLT::HLTResult::isHLTResultTruncated |
( |
| ) |
const |
|
inline |
◆ isPassThrough()
bool HLT::HLTResult::isPassThrough |
( |
| ) |
const |
|
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 152 of file HLTResult.h.
◆ isValid()
bool HLT::HLTResult::isValid |
( |
| ) |
const |
|
inline |
is the result valid
- Returns
- true if result was ever stuffed, this is to mark results taht were never filled in steeing
Definition at line 186 of file HLTResult.h.
◆ listOfModIDs() [1/2]
std::vector< unsigned int > HLTResult::listOfModIDs |
( |
| ) |
const |
return the rob module ID vector
Definition at line 93 of file HLTResult.cxx.
95 std::vector<unsigned int> mod_ids;
96 for (std::map<
unsigned int,
std::set<std::pair<CLID, std::string> > >::const_iterator map_it =
m_modID_id_name.begin();
98 mod_ids.push_back((*map_it).first);
◆ listOfModIDs() [2/2]
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)
- Warning
- note that vector is not cleared
Definition at line 86 of file HLTResult.cxx.
88 for (std::map<
unsigned int,
std::set<std::pair<CLID, std::string> > >::const_iterator map_it =
m_modID_id_name.begin();
90 mod_ids.push_back((*map_it).first);
◆ operator=()
◆ partSizes()
std::vector< unsigned int > HLTResult::partSizes |
( |
| ) |
const |
Definition at line 616 of file HLTResult.cxx.
617 std::vector<unsigned int> sizes;
◆ serialize() [1/3]
bool HLTResult::serialize |
( |
std::vector< uint32_t > & |
output | ) |
|
|
inlinevirtual |
get the result of the processing as the raw vector of 32 bit unsigned integers
- Parameters
-
output | the place where to put the data |
- Returns
- status of the operation
Implements GenericResult.
Definition at line 442 of file HLTResult.cxx.
◆ serialize() [2/3]
bool HLTResult::serialize |
( |
std::vector< uint32_t > & |
output, |
|
|
const unsigned int |
mod_id |
|
) |
| |
Definition at line 447 of file HLTResult.cxx.
453 auto ret =
serialize(aux, data_size, -1, mod_id);
454 auto uptr = std::unique_ptr<uint32_t[]>{aux};
456 output.reserve(data_size);
◆ serialize() [3/3]
bool HLTResult::serialize |
( |
uint32_t *& |
output, |
|
|
int & |
data_size, |
|
|
const int |
max_size = -1 , |
|
|
const unsigned int |
mod_id = 0 |
|
) |
| |
|
inlinevirtual |
◆ serialize_body_DS()
bool HLTResult::serialize_body_DS |
( |
uint32_t * |
output, |
|
|
int & |
data_size, |
|
|
unsigned int |
max_size, |
|
|
unsigned int |
nav_size, |
|
|
const CutPairVecs & |
dscuts, |
|
|
bool |
truncating |
|
) |
| const |
|
private |
Definition at line 389 of file HLTResult.cxx.
396 if(
static_cast<unsigned int>(data_size) < umax_size)
401 &&
static_cast<unsigned int>(data_size) < umax_size)
◆ serialize_body_regular()
bool HLTResult::serialize_body_regular |
( |
uint32_t * |
output, |
|
|
int & |
data_size, |
|
|
unsigned int |
umax_size, |
|
|
bool |
truncating |
|
) |
| const |
|
inlineprivate |
◆ serialize_bootstrap()
bool HLTResult::serialize_bootstrap |
( |
uint32_t *& |
output, |
|
|
int & |
data_size, |
|
|
bool & |
truncating, |
|
|
int |
max_size, |
|
|
unsigned int |
estimated_size |
|
) |
| |
|
private |
Definition at line 356 of file HLTResult.cxx.
365 auto umax_size =
static_cast<unsigned int>(max_size);
368 truncating = max_size >= 0 && estimated_size > umax_size;
◆ serialize_DS()
bool HLTResult::serialize_DS |
( |
uint32_t *& |
output, |
|
|
int & |
data_size, |
|
|
int |
max_size, |
|
|
unsigned int |
mod_id |
|
) |
| |
|
private |
Definition at line 424 of file HLTResult.cxx.
431 bool truncating{
false};
433 auto navsize = calc_colls_size(dscuts.first) + calc_colls_size(dscuts.second);
◆ serialize_navigation_DS()
bool HLTResult::serialize_navigation_DS |
( |
uint32_t * |
output, |
|
|
int & |
data_size, |
|
|
unsigned int |
umax_size, |
|
|
unsigned int |
nav_size, |
|
|
const CutPairVecs & |
dscuts, |
|
|
bool |
truncating |
|
) |
| const |
|
private |
Definition at line 321 of file HLTResult.cxx.
328 if(nav_size + data_size < umax_size)
330 output[data_size++] = nav_size;
331 auto index_for_size_in_nav_preamble = data_size + 1;
337 output[index_for_size_in_nav_preamble] = nav_size;
348 if(
static_cast<unsigned int>(data_size) < umax_size)
◆ serialize_navigation_reg()
bool HLTResult::serialize_navigation_reg |
( |
uint32_t * |
output, |
|
|
int & |
data_size, |
|
|
unsigned int |
umax_size, |
|
|
bool |
truncating |
|
) |
| const |
|
private |
Definition at line 277 of file HLTResult.cxx.
282 auto calc_size_needed = [data_size](
unsigned int nav_size)
283 {
return nav_size + data_size + 1; };
286 auto is_within_size = [umax_size, &calc_size_needed](
unsigned int cut)
287 {
return calc_size_needed(
cut) <= umax_size; };
291 if(
static_cast<unsigned int>(data_size) < umax_size)
294 auto cut_nav_size = tot_nav_size;
297 if(truncating && calc_size_needed(tot_nav_size) > umax_size)
303 endnav -= tot_nav_size - cut_nav_size;
310 output[data_size++] = cut_nav_size;
312 data_size += cut_nav_size;
◆ serialize_regular()
bool HLTResult::serialize_regular |
( |
uint32_t *& |
output, |
|
|
int & |
data_size, |
|
|
int |
max_size |
|
) |
| |
|
private |
Definition at line 411 of file HLTResult.cxx.
416 bool truncating{
false};
419 max_size, estim_size) &&
421 max_size, truncating);
◆ setAccepted()
void HLT::HLTResult::setAccepted |
( |
bool |
acc | ) |
|
|
inline |
◆ setConfigPrescalesKey()
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.
◆ setConfigSuperMasterKey()
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.
◆ setCreatedOutsideHLT()
void HLT::HLTResult::setCreatedOutsideHLT |
( |
bool |
created | ) |
|
|
inline |
◆ setErrorCoordinates()
void HLT::HLTResult::setErrorCoordinates |
( |
unsigned int |
chainCounter = 0 , |
|
|
unsigned int |
step = 0 |
|
) |
| |
|
inline |
sets the information about the error, namely chain in which the error happened and the step
- Parameters
-
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 204 of file HLTResult.h.
◆ setHLTLevel()
void HLT::HLTResult::setHLTLevel |
( |
HLTLevel |
hltLevel | ) |
|
|
inline |
◆ setHLTResultTruncated()
void HLT::HLTResult::setHLTResultTruncated |
( |
bool |
truncated | ) |
|
|
inline |
◆ setHLTStatus()
void HLT::HLTResult::setHLTStatus |
( |
ErrorCode |
hltStatus | ) |
|
|
inline |
◆ setLvl1Id()
void HLT::HLTResult::setLvl1Id |
( |
uint32_t |
id | ) |
|
|
inline |
sets event number (Lvl1-id)
Definition at line 132 of file HLTResult.h.
◆ setLvlConverterStatus()
void HLT::HLTResult::setLvlConverterStatus |
( |
ErrorCode |
status | ) |
|
|
inline |
◆ setNumOfSatisfiedSigs()
void HLT::HLTResult::setNumOfSatisfiedSigs |
( |
uint32_t |
sigs | ) |
|
|
inline |
sget number of satisfied signatures
Definition at line 196 of file HLTResult.h.
◆ setPassThrough()
void HLT::HLTResult::setPassThrough |
( |
bool |
fa | ) |
|
|
inline |
◆ setScoutingMap()
void HLT::HLTResult::setScoutingMap |
( |
const std::map< unsigned int, std::set< std::pair< CLID, std::string > > > & |
map_modid_clid_name | ) |
|
|
inline |
◆ size()
unsigned int HLTResult::size |
( |
| ) |
const |
◆ unpackFromStorable()
bool HLTResult::unpackFromStorable |
( |
const std::vector< uint32_t > & |
raw | ) |
|
|
private |
split the rawResult vector into rawPartialResult's
Definition at line 493 of file HLTResult.cxx.
507 rawIndNumOfFixedBit = 12;
511 std::cerr <<
"HLTResult::unpackFromStorable has noticed a class version mismatch and does not know how to translate: raw data version " << raw[0] <<
" current class version " <<
m_HLTResultClassVersion << std::endl;
519 raw.begin()+rawIndNumOfFixedBit);
524 if ( raw.size() == rawIndNumOfFixedBit )
533 bool truncation =
false;
535 if ( readEnd > raw.size() ){
536 readEnd = raw.size();
557 readEnd =
offset + sizeOfNavigation;
558 if (readEnd > raw.size()) {
559 readEnd = raw.size();
568 raw.begin()+readEnd);
577 offset += sizeOfNavigation;
582 if (
offset < raw.size()) {
583 sizeOfExtras = raw[
offset++];
589 readEnd =
offset + sizeOfExtras;
590 if (readEnd > raw.size()) {
591 readEnd = raw.size();
599 raw.begin()+readEnd);
◆ updateExtras()
void HLTResult::updateExtras |
( |
| ) |
|
|
inlineprivate |
◆ HLTResultCnv_p1
◆ swap
◆ m_chainsResult
std::vector<uint32_t> HLT::HLTResult::m_chainsResult |
|
private |
storege of serialized chains
Definition at line 483 of file HLTResult.h.
◆ m_extraData
object for m_extras deserialization (on demand)
Definition at line 498 of file HLTResult.h.
◆ m_extras
std::vector<uint32_t> HLT::HLTResult::m_extras |
|
private |
extra storeage (which can be used to store some operational infos)
Definition at line 486 of file HLTResult.h.
◆ m_headerResult
std::vector<uint32_t> HLT::HLTResult::m_headerResult |
|
private |
the full payload, and sub-payloads
storage of header words
Definition at line 482 of file HLTResult.h.
◆ m_HLTResultClassVersion
const uint32_t HLTResult::m_HLTResultClassVersion = 3 |
|
staticprivate |
◆ m_id_name
std::vector< std::pair < CLID, std::string > > HLT::HLTResult::m_id_name |
|
private |
◆ m_id_name_DSonly
std::vector< std::pair < CLID, std::string > > HLT::HLTResult::m_id_name_DSonly |
|
private |
◆ m_modID_id_name
std::map<unsigned int, std::set<std::pair<CLID, std::string> > > HLT::HLTResult::m_modID_id_name |
|
private |
◆ m_navigationResult
std::vector<uint32_t> HLT::HLTResult::m_navigationResult |
|
private |
storage of navigation (serialized also)
Definition at line 484 of file HLTResult.h.
◆ m_navigationResult_DSonly
std::vector<uint32_t> HLT::HLTResult::m_navigationResult_DSonly |
|
private |
storage of navigation (serialized also) for DataScouting
Definition at line 485 of file HLTResult.h.
◆ m_navigationResultCuts
std::vector<unsigned int> HLT::HLTResult::m_navigationResultCuts |
|
private |
◆ m_navigationResultCuts_DSonly
std::vector<unsigned int> HLT::HLTResult::m_navigationResultCuts_DSonly |
|
private |
The documentation for this class was generated from the following files:
@ NAV_ERROR
suspected Navigation error
@ NO_LVL1_ITEMS
in the LVL1 result delivered to LVL2 none of LVL1 items are present, that means no seeding informatio...
@ 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 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)
std::map< unsigned int, std::set< std::pair< CLID, std::string > > > m_modID_id_name
@ WRONG_HLT_RESULT
error while unpacking HLT reult (happnes at EF when LVL2 result is unpacked)
@ ABORT_EVENT
if things went wrong severely, event corruption suspected
@ ABORT_JOB
if things go really wrong, i.e.
HLTExtraData * m_extraData
object for m_extras deserialization (on demand)
@ IndNumOfSatisfiedSigs
number of satisfied signatures
@ NO_LVL2_CHAINS
in the LVL2 result unpacked at EF no active LVL2 chains are present, that means no seeding informatio...
@ NO_HLT_RESULT
no HLT result is present (means that LVL2 result was not delivered to EF)
friend void swap(HLTResult &lhs, HLTResult &rhs)
@ IndHLTDecision
HLT decision (== 0 if event has been rejected at HLT)
@ IndLvlConverterStatus
LvlConverter status corresponding to ErrorCode enums.
@ IndConfigPrescalesKey
configuration key for prescales
@ u
Enums for curvilinear frames.
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< 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,...
ErrorCode
Error code: whether the classification was successful or failed.
bool serialize(std::vector< uint32_t > &output, const unsigned int mod_id)
@ IndErrorInStep
step number in which error occured, in normal conditions sbould be 0
std::vector< std::pair< unsigned int, unsigned int > > CutPairs
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
cut
This script demonstrates how to call a C++ class from Python Also how to use PyROOT is shown.
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)
std::vector< std::pair< CLID, std::string > > m_id_name_DSonly
unsigned int estimateSize() const
Estimate the size this HLTResult would ocuppy once serialized.
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
@ TIMEOUT
the timeout occured
bool serialize_body_DS(uint32_t *output, int &data_size, unsigned int max_size, unsigned int nav_size, const CutPairVecs &dscuts, bool truncating) const
@ ABORT_CHAIN
if things went wrong but it is not severe, other unrelated chains will continue
ErrorCode getHLTStatus() const
overall hlt status: if StatusCode::isFailure(), event should be discarded from physics stream (and,...
std::vector< unsigned int > m_navigationResultCuts
@ CONTINUE
if all is OK the processing should be continued
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 setPassThrough(bool fa)
set passTrough flag
@ IndHLTLevelInfo
the HLT level
HLTLevel getHLTLevel() const
hlt level (L2 or EF)
bool unpackFromStorable(const std::vector< uint32_t > &raw)
split the rawResult vector into rawPartialResult's
@ 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.
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)