HLT::HLTResult Class Reference

HLT::HLTResult is sumarising result of trigger decision evaluation (online/offline) It contains basically 3 parts:. More...

#include <HLTResult.h>

Inheritance diagram for HLT::HLTResult:
GenericResult

List of all members.

Public Member Functions

 HLTResult ()
 constructor
 HLTResult (const HLTResult &)
 copy constructor
 HLTResult (HLTResult &&rhs)
 move ctor
HLTResultoperator= (HLTResult rhs)
 unified assignement operator
virtual bool accepted () const
virtual bool error () const
virtual uint32_t error_bits () const
bool serialize (std::vector< uint32_t > &output, const unsigned int mod_id)
bool serialize (std::vector< uint32_t > &output)
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)
bool 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 (std::map< unsigned int, std::set< std::pair< CLID, std::string > > > map_modid_clid_name)
HLTExtraDatagetExtraData ()
const HLTExtraDatagetExtraData () const
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

Friends

class HLTResultCnv_p1
void swap (HLTResult &lhs, HLTResult &rhs)

Detailed Description

HLT::HLTResult is sumarising result of trigger decision evaluation (online/offline) It contains basically 3 parts:.

  1. header word which are holding very basic ingormation line if event was accepted or error occurred
  2. serialized trigger chains info
  3. serialized navigation structure (eventually together with objects)

Member Function Documentation

virtual bool HLT::HLTResult::accepted (  )  const [inline, virtual]

reject or accept

Returns:
true if event is accepted

Implements GenericResult.

bool HLT::HLTResult::deserialize ( uint32_t *  source,
const int  data_size 
) [virtual]
bool HLT::HLTResult::deserialize ( const std::vector< uint32_t > &  source  )  [virtual]
virtual bool HLT::HLTResult::error (  )  const [virtual]

problems during processing

Returns:
true if there was an error during event processing

Implements GenericResult.

virtual uint32_t HLT::HLTResult::error_bits (  )  const [virtual]

bit flags to explain problems during processing

Returns:
some bits are set if there was na error

Implements GenericResult.

uint32_t HLT::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
uint32_t HLT::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
void HLT::HLTResult::getErrorCoordinates ( unsigned int &  chainCounter,
unsigned int &  step 
) const [inline]
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
void HLT::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
bool HLT::HLTResult::serialize ( uint32_t *&  output,
int &  data_size,
const int  max_size = -1,
const unsigned int  mod_id = 0 
) [virtual]

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
( uint32_t*& output, int& data_size, const int int max_size = -1, const unsigned int mod_id = 0)

Implements GenericResult.

bool HLT::HLTResult::serialize ( std::vector< uint32_t > &  output  )  [virtual]

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.

bool HLT::HLTResult::serialize ( std::vector< uint32_t > &  output,
const unsigned int  mod_id 
)

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
void HLT::HLTResult::setPassThrough ( bool  fa  )  [inline]

set passTrough flag

See also:
isPassThrough

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1