|  | ATLAS Offline Software
    | 
 
 
 
#include <JetHypoExerciserCompareAlg.h>
|  | 
|  | JetHypoExerciserCompareAlg (const std::string &name, ISvcLocator *pSvcLocator) | 
|  | 
| virtual | ~JetHypoExerciserCompareAlg () | 
|  | 
| StatusCode | initialize () | 
|  | 
| StatusCode | execute () | 
|  | 
| StatusCode | finalize () | 
|  | 
| virtual StatusCode | sysInitialize () override | 
|  | Override sysInitialize.  More... 
 | 
|  | 
| virtual const DataObjIDColl & | extraOutputDeps () const override | 
|  | Return the list of extra output dependencies.  More... 
 | 
|  | 
| ServiceHandle< StoreGateSvc > & | evtStore () | 
|  | The standard StoreGateSvc(event store) Returns (kind of) a pointer to theStoreGateSvc.  More...
 | 
|  | 
| const ServiceHandle< StoreGateSvc > & | evtStore () const | 
|  | The standard StoreGateSvc(event store) Returns (kind of) a pointer to theStoreGateSvc.  More...
 | 
|  | 
| const ServiceHandle< StoreGateSvc > & | detStore () const | 
|  | The standard StoreGateSvc/DetectorStoreReturns (kind of) a pointer to theStoreGateSvc.  More...
 | 
|  | 
| virtual StatusCode | sysStart () override | 
|  | Handle START transition.  More... 
 | 
|  | 
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override | 
|  | Return this algorithm's input handles.  More... 
 | 
|  | 
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override | 
|  | Return this algorithm's output handles.  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) | 
|  | 
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) | 
|  | Declare a new Gaudi property.  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) | 
|  | Declare a new Gaudi property.  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) | 
|  | 
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) | 
|  | Declare a new Gaudi property.  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") | 
|  | Declare a new Gaudi property.  More... 
 | 
|  | 
| void | updateVHKA (Gaudi::Details::PropertyBase &) | 
|  | 
| MsgStream & | msg () const | 
|  | 
| MsgStream & | msg (const MSG::Level lvl) const | 
|  | 
| bool | msgLvl (const MSG::Level lvl) const | 
|  | 
|  | 
| StatusCode | initialize_ (const ToolHandle< ITrigJetHypoToolHelper > &, const std::string &) | 
|  | 
| StatusCode | execute_ (ToolHandle< ITrigJetHypoToolHelper > &, HypoJetVector &, const std::string &collectorName, xAODJetCollector &jetCollector, const std::string &logname, bool &pass) | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) | 
|  | specialization for handling Gaudi::Property<SG::VarHandleKey>  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) | 
|  | specialization for handling Gaudi::Property<SG::VarHandleKeyArray>  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) | 
|  | specialization for handling Gaudi::Property<SG::VarHandleBase>  More... 
 | 
|  | 
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) | 
|  | specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>  More... 
 | 
|  | 
◆ StoreGateSvc_t
◆ JetHypoExerciserCompareAlg()
      
        
          | JetHypoExerciserCompareAlg::JetHypoExerciserCompareAlg | ( | const std::string & | name, | 
        
          |  |  | ISvcLocator * | pSvcLocator | 
        
          |  | ) |  |  | 
      
 
 
◆ ~JetHypoExerciserCompareAlg()
  
  | 
        
          | JetHypoExerciserCompareAlg::~JetHypoExerciserCompareAlg | ( |  | ) |  |  | virtual | 
 
 
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray> 
Definition at line 170 of file AthCommonDataStore.h.
  175                                                        hndl.documentation());
 
 
 
 
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey> 
Definition at line 156 of file AthCommonDataStore.h.
  161                                                        hndl.documentation());
 
 
 
 
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase> 
Definition at line 184 of file AthCommonDataStore.h.
  189                                                        hndl.documentation());
 
 
 
 
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property. 
- Parameters
- 
  
    | name | Name of the property. |  | hndl | Object holding the property value. |  | doc | Documentation string for the property. |  
 
This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class. 
Definition at line 245 of file AthCommonDataStore.h.
  250     this->declare(hndl.
vhKey());
 
  251     hndl.
vhKey().setOwner(
this);
 
  253     return PBASE::declareProperty(
name,hndl,
doc);
 
 
 
 
◆ declareProperty() [2/6]
Declare a new Gaudi property. 
- Parameters
- 
  
    | name | Name of the property. |  | hndl | Object holding the property value. |  | doc | Documentation string for the property. |  
 
This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class. 
Definition at line 221 of file AthCommonDataStore.h.
  229     return PBASE::declareProperty(
name,hndl,
doc);
 
 
 
 
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property. 
- Parameters
- 
  
    | name | Name of the property. |  | property | Object holding the property value. |  | doc | Documentation string for the property. |  
 
This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty. 
Definition at line 333 of file AthCommonDataStore.h.
  338     return PBASE::declareProperty(
name, property, 
doc);
 
 
 
 
◆ declareProperty() [5/6]
Declare a new Gaudi property. 
- Parameters
- 
  
    | name | Name of the property. |  | property | Object holding the property value. |  | doc | Documentation string for the property. |  
 
This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray. 
Definition at line 352 of file AthCommonDataStore.h.
 
 
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
      
        
          | StatusCode JetHypoExerciserCompareAlg::execute | ( |  | ) |  | 
      
 
Definition at line 136 of file JetHypoExerciserCompareAlg.cxx.
  147   std::string collectorName = 
name() + 
"debugInfoCollector0";
 
  158     std::stringstream 
ss;
 
  159     ss << 
timer.elapsed_to_update()
 
  160        <<  
" tool0 " << std::boolalpha << pass0 << 
'\n';
 
  168   collectorName = 
name() + 
"debugInfoCollector1";
 
  180     std::stringstream 
ss;
 
  181     ss << 
timer.elapsed_to_update()
 
  182        <<  
" tool1 "<< std::boolalpha << 
pass1 << 
'\n';
 
  191   std::string spass0 = (pass0 ? 
"True": 
"False");
 
  192   std::string spass1 = (
pass1 ? 
"True": 
"False");
 
  196           << 
"pass 0 "<< spass0 << 
" pass 1 " << spass1);
 
  204     ATH_MSG_INFO (
"hypo helper tools agree on result which is: " << spass0);
 
  209   std::size_t njets = collected0.size();
 
  211   if (njets == collected1.size()) {
 
  212     std::sort(collected0.begin(), collected0.end());
 
  213     std::sort(collected1.begin(), collected1.end());
 
  216     for (std::size_t 
i = 0; 
i < njets; 
i++) {
 
  217       ATH_MSG_INFO(
" jet 0 : " << 
static_cast<const void*
>(collected0.at(
i).get()) <<
 
  218            " jet 1 : " << 
static_cast<const void*
>(collected1.at(
i).get()));
 
  220       if (collected0.at(
i) != collected1.at(
i)) {
 
  233     ATH_MSG_INFO(
" no of jets 0 : " << collected0.size() << 
" " 
  234          " no of jets 1 : " << collected1.size() << 
" " 
  235          " no of jets differ ");
 
  239   return StatusCode::SUCCESS;
 
 
 
 
◆ execute_()
Definition at line 78 of file JetHypoExerciserCompareAlg.cxx.
   87   std::unique_ptr<ITrigJetHypoInfoCollector> debugInfoCollector(
nullptr);
 
   92   if (debugInfoCollector){
 
   93     std::stringstream ss0;
 
   94     ss0 << 
"n jets " << jv.size() << 
'\n';
 
   95     debugInfoCollector-> 
collect(
"JetHypoExerciserCompareAlg", ss0.str());
 
   98     std::stringstream ss1;
 
  100     for(
const auto& j : jv){
 
  101       ss1 << 
"e: " << j->e() << 
" et " << j->et() << 
" eta " << j->eta()
 
  104     debugInfoCollector-> 
collect(
"JetHypoExerciserCompareAlg", ss1.str());
 
  108   pass = 
helper->pass(jv, jetCollector, debugInfoCollector);
 
  110   std::stringstream 
ss;
 
  111   ss <<  
"========= ncall: "<<
m_ncall << 
"==========\n";
 
  112   if(debugInfoCollector){
 
  113     std::stringstream ss1;
 
  115     for(
const auto& j : jetCollector.
hypoJets()){
 
  116       ss1 << 
"e: " << j->e() << 
" et " << j->et() << 
" eta " << j->eta()
 
  119     debugInfoCollector-> 
collect(
"JetHypoExerciserCompareAlg", ss1.str());
 
  120     debugInfoCollector-> 
collect(
"JetHypoExerciserCompareAlg collectedJets",
 
  123     ss << debugInfoCollector->toString() + 
'\n';
 
  131   return StatusCode::SUCCESS;
 
 
 
 
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed. 
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given 
 
 
◆ extraOutputDeps()
  
  | 
        
          | const DataObjIDColl & AthAlgorithm::extraOutputDeps | ( |  | ) | const |  | overridevirtualinherited | 
 
Return the list of extra output dependencies. 
This list is extended to include symlinks implied by inheritance relations. 
Definition at line 50 of file AthAlgorithm.cxx.
   57   return Algorithm::extraOutputDeps();
 
 
 
 
◆ finalize()
      
        
          | StatusCode JetHypoExerciserCompareAlg::finalize | ( |  | ) |  | 
      
 
 
◆ initialize()
      
        
          | StatusCode JetHypoExerciserCompareAlg::initialize | ( |  | ) |  | 
      
 
 
◆ initialize_()
Definition at line 27 of file JetHypoExerciserCompareAlg.cxx.
   33     (
"  " << 
helper.propertyName() 
 
   34      << 
" = " << 
helper.type());
 
   36   if ( 
helper.retrieve().isFailure() ) {
 
   38       (
helper.propertyName() << 
": Failed to retrieve tool " 
   40     return StatusCode::FAILURE;
 
   43       (
helper.propertyName() << 
": Retrieved tool "  
   48   auto s = collector.toString();
 
   61   return StatusCode::SUCCESS;
 
 
 
 
◆ inputHandles()
Return this algorithm's input handles. 
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA. 
 
 
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles. 
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA. 
 
 
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
  
  | 
        
          | StatusCode AthAlgorithm::sysInitialize | ( |  | ) |  |  | overridevirtualinherited | 
 
 
◆ sysStart()
Handle START transition. 
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container. 
 
 
◆ updateVHKA()
◆ m_agree_false
  
  | 
        
          | std::size_t JetHypoExerciserCompareAlg::m_agree_false {0} |  | private | 
 
 
◆ m_agree_jets
  
  | 
        
          | std::size_t JetHypoExerciserCompareAlg::m_agree_jets {0} |  | private | 
 
 
◆ m_agree_true
  
  | 
        
          | std::size_t JetHypoExerciserCompareAlg::m_agree_true {0} |  | private | 
 
 
◆ m_detStore
◆ m_differ
  
  | 
        
          | std::size_t JetHypoExerciserCompareAlg::m_differ {0} |  | private | 
 
 
◆ m_differ_jets
  
  | 
        
          | std::size_t JetHypoExerciserCompareAlg::m_differ_jets {0} |  | private | 
 
 
◆ m_evtStore
◆ m_extendedExtraObjects
  
  | 
        
          | DataObjIDColl AthAlgorithm::m_extendedExtraObjects |  | privateinherited | 
 
 
◆ m_generator
◆ m_helper0
◆ m_helper1
◆ m_logname
  
  | 
        
          | Gaudi::Property<std::string> JetHypoExerciserCompareAlg::m_logname {this, "logname", "JetHypoExerciser.log", "debug info output fn"} |  | private | 
 
 
◆ m_ncall
  
  | 
        
          | std::size_t JetHypoExerciserCompareAlg::m_ncall {0} |  | private | 
 
 
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_visitDebug
  
  | 
        
          | Gaudi::Property<bool> JetHypoExerciserCompareAlg::m_visitDebug {this, "visit_debug", false, "debug flag"} |  | private | 
 
 
The documentation for this class was generated from the following files:
 
StatusCode initialize_(const ToolHandle< ITrigJetHypoToolHelper > &, const std::string &)
HypoJetVector hypoJets() const
StatusCode execute_(ToolHandle< ITrigJetHypoToolHelper > &, HypoJetVector &, const std::string &collectorName, xAODJetCollector &jetCollector, const std::string &logname, bool &pass)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< std::string > lineSplitter(const std::string &s, char delimiter)
ToolHandle< IHypoJetVectorGenerator > m_generator
std::string to_string(const SectorProjector proj)
std::size_t m_differ_jets
def timer(name, disabled=False)
virtual void setOwner(IDataHandleHolder *o)=0
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< bool > m_visitDebug
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
#define CHECK(...)
Evaluate an expression and check for errors.
std::vector< pHypoJet > HypoJetVector
Gaudi::Property< std::string > m_logname
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
ToolHandle< ITrigJetHypoToolHelper > m_helper0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
DataObjIDColl m_extendedExtraObjects
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
#define ATH_MSG_WARNING(x)
void collect(const HLT::TriggerElement *te, std::vector< Trig::Feature< T > > &data, const std::string &label, unsigned int condition, const std::string &teName, const HLT::TrigNavStructure *navstructure)
actual feature acceess implementation It has (thanks to the ClassTraits) functionality to flatten con...
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
std::size_t m_agree_false
ToolHandle< ITrigJetHypoToolHelper > m_helper1