|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
   38   return StatusCode::SUCCESS;
 
   46   ATH_CHECK( previousDecisionsHandle.isValid() );
 
   51   if (previousDecisionsHandle->size() == 0) {
 
   53     return StatusCode::SUCCESS;
 
   54   } 
else if (previousDecisionsHandle->size() > 1) {
 
   55     ATH_MSG_ERROR(
"Found " << previousDecisionsHandle->size() <<
" previous decisions.");
 
   56     return StatusCode::FAILURE;
 
   62   ATH_MSG_DEBUG( 
"Running with "<< previousDecisionsHandle->size() <<
" implicit ReadHandles for previous decisions. Looking for :"<<
viewString());
 
   86   std::map<const xAOD::Jet_v1*, TrigCompositeUtils::Decision*> jet_decisions;
 
   87   std::map<const xAOD::Jet_v1*, xAOD::TrigComposite*> jet_counts;
 
   97   if(primary_vertex == 
nullptr){
 
   99     return StatusCode::SUCCESS;
 
  102   auto countsContainer = std::make_unique< xAOD::TrigCompositeContainer>();
 
  103   auto countsContainerAux = std::make_unique< xAOD::TrigCompositeAuxContainer>();
 
  104   countsContainer->setStore(countsContainerAux.get());
 
  106   std::map<TrigCompositeUtils::Decision*, int> count_index_map;
 
  110   for(
size_t jet_idx=0; jet_idx < 
jets->size(); jet_idx ++){
 
  121       jet_decisions[
jet] = jet_dec;
 
  125       auto count_idx = countsContainer->size();
 
  127       countsContainer->push_back(
count);
 
  129       count_index_map[jet_dec]= count_idx;
 
  134   ATH_CHECK(countsHandle.
record(std::move(countsContainer), std::move(countsContainerAux)));
 
  137   std::map<const xAOD::Jet_v1*, std::vector<const xAOD::TrackParticle_v1*>> jets_to_tracks;
 
  141   for(
auto track: *stdTracks){
 
  145     double best_dr = 1000.0;
 
  158       jets_to_tracks[best_jet].push_back(
track);
 
  181       int idx = count_index_map[dec];
 
  189   return StatusCode::SUCCESS;
 
  
JetConstituentVector::iterator iterator
DisplacedJetPromptHypoAlg()
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
const std::string & featureString()
Gaudi::Property< float > m_drcut
xAOD::TrigCompositeContainer DecisionContainer
TrigComposite_v1 TrigComposite
Declare the latest version of the class.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_stdTracksKey
Decision * newDecisionIn(DecisionContainer *dc, const std::string &name)
Helper method to create a Decision object, place it in the container and return a pointer to it.
const T * get(size_type n) const
Access an element, as an rvalue.
const SG::ReadHandleKey< TrigCompositeUtils::DecisionContainer > & decisionInput() const
methods for derived classes to access handles of the base class input other read/write handles may be...
virtual StatusCode initialize() override
SG::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.
const SG::WriteHandleKey< TrigCompositeUtils::DecisionContainer > & decisionOutput() const
methods for derived classes to access handles of the base class output other read/write handles may b...
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
ToolHandleArray< DisplacedJetPromptHypoTool > m_hypoTools
Gaudi::Property< float > m_min_trk_pt
bool setObjectLink(const std::string &name, const ElementLink< CONTAINER > &link)
Set the link to an object.
StatusCode hypoBaseOutputProcessing(SG::WriteHandle< TrigCompositeUtils::DecisionContainer > &outputHandle, MSG::Level lvl=MSG::DEBUG) const
Base class function to be called once slice specific code has finished. Handles debug printing and va...
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Class used to describe composite objects in the HLT.
SG::ReadHandleKey< xAOD::JetContainer > m_jetContainerKey
xAOD::TrigCompositeAuxContainer DecisionAuxContainer
ElementLink implementation for ROOT usage.
Hypothesis algorithms take the output of reco algorithms and the decision from the preceeding InputMa...
SG::WriteHandleKey< xAOD::TrigCompositeContainer > m_countsKey
StatusCode initialize(bool used=true)
const std::string & viewString()
virtual StatusCode execute(const EventContext &context) const override
void linkToPrevious(Decision *d, const std::string &previousCollectionKey, size_t previousIndex)
Links to the previous object, location of previous 'seed' decision supplied by hand.
Helper to keep a Decision object, ElementLink and ActiveState (with respect to some requested ChainGr...
std::set< DecisionID > DecisionIDContainer
Class describing a Vertex.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
LinkInfo< T > findLink(const Decision *start, const std::string &linkName, const bool suppressMultipleLinksWarning=false)
Perform a recursive search for ElementLinks of type T and name 'linkName', starting from Decision obj...
const std::string & hypoAlgNodeName()
bool allFailed(const Decision *d)
return true if there is no positive decision stored
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.
SG::ReadHandleKey< xAOD::VertexContainer > m_vtxKey