|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
   28     return StatusCode::SUCCESS;
 
   39                                 std::make_unique<xAOD::MuonAuxContainer>()));
 
   42     ATH_CHECK(previousDecisionHandle.isValid());
 
   43     ATH_MSG_DEBUG(
"Running with " << previousDecisionHandle->size() << 
" previous decisions");
 
   51     std::vector<std::pair<Decision *, const Decision *> > HypoInputs;
 
   55     for (
const auto previousDecision : *previousDecisionHandle)
 
   66         ATH_MSG_DEBUG(
"This decision has " << prevMuons.size() << 
" decisions");
 
   69         if (prevMuons.size() != 1) {
 
   70             ATH_MSG_DEBUG(
"Did not locate exactly one muon for this Decision Object, found " << prevMuons.size());
 
   71             return StatusCode::FAILURE;
 
   74         auto prevMuLink = prevMuons.at(0).link;
 
   76         muonPrev = *prevMuLink;
 
   79         h_TLAMuons->push_back(copiedMuon);
 
   80         *copiedMuon = *muonPrev;
 
   87         ATH_MSG_DEBUG(
"Copied muon with pT: " << copiedMuon->
pt() << 
" from decision " << nDecision);
 
   89         HypoInputs.push_back( std::make_pair(newDecision, previousDecision) );
 
   95     Nmuons = h_TLAMuons->size();
 
  104     for (
auto& hypoPair: HypoInputs ){
 
  110     return StatusCode::SUCCESS;
 
  
const std::string & featureString()
virtual StatusCode execute(const EventContext &context) const override
Group
Properties of a chain group.
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".
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.
virtual double phi() const
The azimuthal angle ( ) of the particle.
virtual double eta() const
The pseudorapidity ( ) of the particle.
void insertDecisionIDs(const Decision *src, Decision *dest)
Appends the decision IDs of src to the dest decision object.
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...
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...
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
ToolHandle< GenericMonitoringTool > m_monTool
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
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...
TrigMuonTLAHypoAlg(const std::string &name, ISvcLocator *pSvcLocator)
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
virtual double pt() const
The transverse momentum ( ) of the particle.
Header file to be included by clients of the Monitored infrastructure.
ElementLink implementation for ROOT usage.
Muon_v1 Muon
Reference the current persistent version:
void linkToPrevious(Decision *d, const std::string &previousCollectionKey, size_t previousIndex)
Links to the previous object, location of previous 'seed' decision supplied by hand.
virtual StatusCode initialize() override
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
const std::string & hypoAlgNodeName()
SG::WriteHandleKey< xAOD::MuonContainer > m_TLAMuonsKey
Declare a monitored scalar variable.