![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
41 return StatusCode::SUCCESS;
60 ATH_CHECK( previousDecisionsHandle.isValid() );
61 ATH_MSG_DEBUG(
"Running in precisionElectron step with "<< previousDecisionsHandle->size() <<
" previous decisions");
70 std::vector<ITrigEgammaPrecisionElectronHypoTool::ElectronInfo> toolInput;
74 for (
auto previousDecision: *previousDecisionsHandle ) {
77 auto roiELInfo = TCU::findLink<TrigRoiDescriptorCollection>( previousDecision,
TCU::roiString() );
85 ATH_MSG_DEBUG (
"Precision Electron handle size: " << electronHandle->size() <<
"..." );
93 size_t validelectrons=0;
94 for (
size_t cl=0;
cl< electronHandle->size();
cl++){
100 ATH_MSG_DEBUG (
"Precision ElectronHandle in position " <<
cl <<
" -> invalid ElemntLink!. Skipping...");
104 ATH_MSG_DEBUG (
"Precision ElectronHandle in position " <<
cl <<
" processing...");
116 float avg_mu = eventInfoDecor(0);
118 info.valueDecorator[
"avgmu"] = avg_mu;
133 float avg_mu = eventInfoDecor(0);
135 info.valueDecorator[pidname+
"LHValue"] = lhvalue;
139 info.valueDecorator[pidname+
"LHValue"] = lhvalue;
155 float avg_mu = eventInfoDecor(0);
168 decor_d0(*electronHandle.cptr()->at(
cl)) = electronHandle.cptr()->at(
cl)->trackParticle()->d0();
169 decor_clEta(*electronHandle.cptr()->at(
cl)) = electronHandle.cptr()->at(
cl)->caloCluster()->etaBE(2);
170 decor_clPhi(*electronHandle.cptr()->at(
cl)) = electronHandle.cptr()->at(
cl)->caloCluster()->phiBE(2);
172 toolInput.push_back(
info );
177 ATH_MSG_DEBUG(
"Electrons with valid links: " << validelectrons );
183 ATH_MSG_DEBUG(
"Found "<<toolInput.size()<<
" inputs to tools");
189 return StatusCode::SUCCESS;
Group
Properties of a chain group.
SG::ReadDecorHandleKey< xAOD::EventInfo > m_avgMuKey
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.
ElementLink< T > makeLink(const SG::View *view, const SG::ReadHandle< T > &handle, size_t index)
Create EL to a collection in view.
const std::string & hypoAlgNodeName()
StatusCode accept(const xAOD::Muon *mu)
SG::ReadHandle< T > makeHandle(const SG::View *view, const SG::ReadHandleKey< T > &rhKey, const EventContext &context)
navigate from the TrigComposite to nearest view and fetch object from it
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
bool isPresent() const
Is the referenced container present in SG?
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...
ToolHandle< GenericMonitoringTool > m_monTool
SG::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
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...
def timer(name, disabled=False)
TrigEgammaPrecisionElectronHypoAlg()
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
PublicToolHandleArray< IAsgElectronLikelihoodTool > m_egammaElectronDNNTools
Handle class for reading a decoration on an object.
Helper class to provide type-safe access to aux data.
virtual const IRoiDescriptor * at(int i) const override final
find an RoiDescriptor constituent
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.
Gaudi::Property< std::vector< std::string > > m_cbNames
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Header file to be included by clients of the Monitored infrastructure.
PublicToolHandleArray< IAsgElectronLikelihoodTool > m_egammaElectronLHTools
const std::string & featureString()
Hypothesis algorithms take the output of reco algorithms and the decision from the preceeding InputMa...
Gaudi::Property< std::vector< std::string > > m_dnnNames
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronsKey
virtual StatusCode initialize() override
PublicToolHandleArray< IAsgElectronIsEMSelector > m_egammaElectronCBTools
void linkToPrevious(Decision *d, const std::string &previousCollectionKey, size_t previousIndex)
Links to the previous object, location of previous 'seed' decision supplied by hand.
#define ATH_MSG_WARNING(x)
ToolHandleArray< ITrigEgammaPrecisionElectronHypoTool > m_hypoTools
const std::string & roiString()
setBGCode setTAP setLVL2ErrorBits bool
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
const std::string & viewString()
Gaudi::Property< std::vector< std::string > > m_lhNames
virtual StatusCode execute(const EventContext &context) const override