ATLAS Offline Software
|
#include <Combination.h>
Public Types | |
template<typename CONTAINER > | |
using | ELEMENT_OF = typename CONTAINER::base_value_type |
Public Member Functions | |
Combination ()=default | |
Combination (const std::vector< HLT::TriggerElement * > &tes, const Trig::CacheGlobalMemory *cgm) | |
normal constructor More... | |
std::vector< Trig::TypelessFeature > | typelessGet (HLT::class_id_type clid, const std::string &label="", unsigned int condition=TrigDefs::Physics, const std::string &teName="") const |
Typeless version of get method. More... | |
template<class T > | |
std::vector< Trig::Feature< T > > | get (const std::string &label="", unsigned int condition=TrigDefs::Physics, const std::string &teName="") const |
Method used to get objects. More... | |
std::vector< Trig::Feature< xAOD::IParticle > > | getIParticle (HLT::class_id_type clid, const std::string &container_name, const std::string &label="", unsigned int condition=TrigDefs::Physics, const std::string &teName="") const |
Experimental flattened get for IParticle types. More... | |
template<typename CONTAINER > | |
std::vector< Feature< ELEMENT_OF< CONTAINER > > > | elementFeature (const std::string &label="", unsigned int condition=TrigDefs::Physics, const std::string &teName="") const |
get element type features (those attached to TE as single instance of a trigger type) More... | |
template<typename CONTAINER > | |
std::vector< Feature< CONTAINER > > | containerFeature (const std::string &label="", unsigned int condition=TrigDefs::Physics, const std::string &teName="") const |
get container type features (those attached to TE as container of a trigger type) More... | |
template<typename CONTAINER > | |
std::vector< Feature< ELEMENT_OF< CONTAINER > > > | flattenedContainerFeature (const std::string &label="", unsigned int condition=TrigDefs::Physics, const std::string &teName="") const |
get container type features flattened as Features (those attached to TE as container of a trigger type) More... | |
unsigned int | size () const |
Size of combination. More... | |
bool | active () const |
Returns the state of the combination i.e. More... | |
const std::vector< const HLT::TriggerElement * > & | tes () const |
trigger elements in the combination can be used directly with ancestor method More... | |
template<class T > | |
void | collect (const HLT::TriggerElement *te, std::vector< Trig::Feature< T > > &data, const std::string &label, unsigned int condition, const std::string &teName) const |
Method used to get objects. More... | |
bool | operator== (const Combination &other) const |
bool | operator< (const Combination &other) const |
Private Member Functions | |
const HLT::TrigNavStructure * | navigation () const |
Private Attributes | |
std::vector< const HLT::TriggerElement * > | m_tes |
const Trig::CacheGlobalMemory * | m_cgm {nullptr} |
Friends | |
class | ::HltNaviChecker |
is a connector between chains and object It store single combination of trigger elements. Thanks to templates methods get() it is able to invoke features retrieval and return actual objects (wrapped into Feature class).
Definition at line 54 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Combination.h.
using Trig::Combination::ELEMENT_OF = typename CONTAINER::base_value_type |
Definition at line 84 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Combination.h.
|
default |
Combination::Combination | ( | const std::vector< HLT::TriggerElement * > & | tes, |
const Trig::CacheGlobalMemory * | cgm | ||
) |
bool Combination::active | ( | ) | const |
Returns the state of the combination i.e.
if all TEs are passed by respective hypothesis. This method can be used to differentiate between passed/not-passed objects
Definition at line 28 of file Trigger/TrigAnalysis/TrigDecisionTool/Root/Combination.cxx.
void Trig::Combination::collect | ( | const HLT::TriggerElement * | te, |
std::vector< Trig::Feature< T > > & | data, | ||
const std::string & | label, | ||
unsigned int | condition, | ||
const std::string & | teName | ||
) | const |
Method used to get objects.
This is called for each TE in the combination
|
inline |
get container type features (those attached to TE as container of a trigger type)
Definition at line 112 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Combination.h.
|
inline |
get element type features (those attached to TE as single instance of a trigger type)
Definition at line 103 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Combination.h.
|
inline |
get container type features flattened as Features (those attached to TE as container of a trigger type)
Definition at line 121 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Combination.h.
std::vector< Trig::Feature< T > > Combination::get | ( | const std::string & | label = "" , |
unsigned int | condition = TrigDefs::Physics , |
||
const std::string & | teName = "" |
||
) | const |
Method used to get objects.
This is main functionality of combination class.
label | the keyword with which the objects were labeled in HLT algorithms (if none given most recent is returned) |
condition | switch wether to return only objects from passed RoIs (when Physics) or also from failed (alsoDeactivateTEs) |
teName | to get features from TEs of specific TEs (it is to be used in combination with switch alsoDeactivateTEs or composite triggers) super-expert usecase |
Definition at line 170 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Combination.h.
|
inline |
Experimental flattened get for IParticle types.
clid | must be clid of type as stored. No flattening supported |
Definition at line 91 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Combination.h.
|
private |
Definition at line 35 of file Trigger/TrigAnalysis/TrigDecisionTool/Root/Combination.cxx.
|
inline |
Definition at line 152 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Combination.h.
|
inline |
Definition at line 151 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Combination.h.
|
inline |
Size of combination.
Definition at line 129 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Combination.h.
|
inline |
trigger elements in the combination can be used directly with ancestor method
Definition at line 141 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Combination.h.
std::vector< Trig::TypelessFeature > Combination::typelessGet | ( | HLT::class_id_type | clid, |
const std::string & | label = "" , |
||
unsigned int | condition = TrigDefs::Physics , |
||
const std::string & | teName = "" |
||
) | const |
Typeless version of get method.
clid | must be clid of type as stored. No flattening supported |
Definition at line 40 of file Trigger/TrigAnalysis/TrigDecisionTool/Root/Combination.cxx.
|
friend |
Definition at line 156 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Combination.h.
|
private |
Definition at line 164 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Combination.h.
|
private |
Definition at line 163 of file Trigger/TrigAnalysis/TrigDecisionTool/TrigDecisionTool/Combination.h.