|
ATLAS Offline Software
|
#include <ORMETMakerAlg.h>
|
| ORMETMakerAlg (const std::string &name, ISvcLocator *pSvcLocator) |
| Constructor with parameters: More...
|
|
virtual | ~ORMETMakerAlg () |
| Destructor: More...
|
|
virtual StatusCode | initialize () override |
| Athena algorithm's Hooks. More...
|
|
virtual StatusCode | execute () override |
|
virtual StatusCode | finalize () override |
|
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 the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . 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 > &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 |
|
|
std::string | m_soft |
|
SG::ReadHandleKey< xAOD::MissingETAssociationMap > | m_ORMetMapKey |
|
SG::WriteHandleKey< xAOD::PFOContainer > | m_chargedPFOContainerWriteHandleKey {this,"PFOChargedOutputName","OverlapRemovedCHSChargedParticleFlowObjects","WriteHandleKey for charged PFO"} |
|
SG::WriteHandleKey< xAOD::PFOContainer > | m_neutralPFOContainerWriteHandleKey {this,"PFONeutralOutputName","OverlapRemovedCHSNeutralParticleFlowObjects","WriteHandleKey for charged PFO"} |
|
SG::WriteHandleKey< xAOD::PFOContainer > | m_PFOContainerWriteHandleKey {this,"PFOOutputName","OverlapRemovedCHSParticleFlowObjects","WriteHandleKey for PFO"} |
|
SG::ReadHandleKey< xAOD::PFOContainer > | m_inPFOKey {this, "InPFOKey", "", "ReadHandleKey for modified PFlow Objects"} |
|
SG::WriteHandleKey< xAOD::PFOContainer > | m_outPFOKey {this, "OutPFOKey", "", "WriteHandleKey for modified PFlow Objects"} |
|
bool | m_doRetrieveORconstit |
|
bool | m_retainMuonConstit |
|
bool | m_doORMet |
|
double | m_electronPT |
|
double | m_muonPT |
|
double | m_photonPT |
|
double | m_tauPT |
|
double | m_electronETA |
|
double | m_muonETA |
|
double | m_photonETA |
|
double | m_tauETA |
|
bool | m_useUnmatched |
|
bool | m_doJVT |
|
DataObjIDColl | m_extendedExtraObjects |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 43 of file ORMETMakerAlg.h.
◆ StoreGateSvc_t
◆ ORMETMakerAlg() [1/2]
met::ORMETMakerAlg::ORMETMakerAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~ORMETMakerAlg()
met::ORMETMakerAlg::~ORMETMakerAlg |
( |
| ) |
|
|
virtualdefault |
◆ ORMETMakerAlg() [2/2]
met::ORMETMakerAlg::ORMETMakerAlg |
( |
| ) |
|
|
private |
◆ accept() [1/4]
◆ accept() [2/4]
◆ accept() [3/4]
◆ accept() [4/4]
◆ 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 met::ORMETMakerAlg::execute |
( |
| ) |
|
|
overridevirtual |
MET
Jets
Electrons
Photons
Taus
Muons
PFOs for OR constituents
Reimplemented from met::METMakerAlg.
Definition at line 89 of file ORMETMakerAlg.cxx.
92 auto ctx = getContext();
94 ATH_CHECK( metHandle.record (std::make_unique<xAOD::MissingETContainer>(), std::make_unique<xAOD::MissingETAuxContainer>()) );
99 if (!metMap.isValid()) {
101 return StatusCode::FAILURE;
109 return StatusCode::FAILURE;
119 if (!coreMet.isValid()) {
121 return StatusCode::FAILURE;
126 if (!
Jets.isValid()) {
128 return StatusCode::FAILURE;
133 if (!Electrons.isValid()) {
134 ATH_MSG_WARNING(
"Unable to retrieve ElectronContainer: " << Electrons.key());
135 return StatusCode::FAILURE;
140 if (!
Gamma.isValid()) {
142 return StatusCode::FAILURE;
147 if (!TauJets.isValid()) {
148 ATH_MSG_WARNING(
"Unable to retrieve TauJetContainer: " << TauJets.key());
149 return StatusCode::FAILURE;
154 if (!
Muons.isValid()) {
156 return StatusCode::FAILURE;
163 return StatusCode::FAILURE;
173 for(
const auto *
const el : *Electrons) {
175 metElectrons.push_back(
el);
180 metElectrons.asDataVector(),
181 metHelper, objScale).isFailure() ) {
184 ATH_MSG_DEBUG(
"Selected " << metElectrons.size() <<
" MET electrons. "
185 << acc_constitObjLinks(*(*newMet)[
"RefEle"]).
size() <<
" are non-overlapping.");
191 for(
const auto *
const ph : *
Gamma) {
193 metPhotons.push_back(ph);
197 metPhotons.asDataVector(),
198 metHelper, objScale).isFailure() ) {
201 ATH_MSG_DEBUG(
"Selected " << metPhotons.size() <<
" MET photons. "
202 << acc_constitObjLinks(*(*newMet)[
"RefGamma"]).
size() <<
" are non-overlapping.");
208 for(
const auto *
const tau : *TauJets) {
210 metTaus.push_back(tau);
214 metTaus.asDataVector(),
215 metHelper, objScale).isFailure() ){
219 << acc_constitObjLinks(*(*newMet)[
"RefTau"]).
size() <<
" are non-overlapping.");
225 for(
const auto *
const mu : *
Muons) {
227 metMuons.push_back(
mu);
235 metMuons.asDataVector(),
236 ORMetHelper, objScale).isFailure() ) {
241 metMuons.asDataVector(),
242 metHelper, objScale).isFailure() ) {
246 ATH_MSG_DEBUG(
"Selected " << metMuons.size() <<
" MET muons. "
247 << acc_constitObjLinks(*(*newMet)[
"Muons"]).
size() <<
" are non-overlapping.");
258 for(
const auto *
const pfo : *
PFOs) {met_PFO.push_back(pfo);}
263 else {
ATH_CHECK(
m_metmaker->retrieveOverlapRemovedConstituents(met_PFO.asDataVector(),metHelper, &OR_pfos,
false));}
265 *PFOContainerWriteHandle=*OR_pfos;
304 for (
auto tmp_constit : *PFOContainerWriteHandle){
ATH_MSG_VERBOSE(
"ORMETMaker constit with index " << tmp_constit->index() <<
", charge " << tmp_constit->charge()<<
" pT " << tmp_constit->pt() <<
" in OverlapRemovedCHSParticleFlowObjects");}
311 Jets.cptr(), coreMet.cptr(), ORMetHelper,
m_doJVT ).isFailure() ) {
315 << acc_constitObjLinks(*(*newMet)[
"RefJet"]).
size() <<
" are non-overlapping, "
319 Jets.cptr(), coreMet.cptr(), metHelper,
m_doJVT ).isFailure() ) {
323 << acc_constitObjLinks(*(*newMet)[
"RefJet"]).
size() <<
" are non-overlapping, "
335 ATH_MSG_DEBUG(
"MET jet = " << 0.001 * (*newMet)[
"RefJet"]->
met() <<
" GeV");
338 ATH_MSG_DEBUG(
"MET ph = " << 0.001 * (*newMet)[
"RefGamma"]->
met() <<
" GeV");
339 ATH_MSG_DEBUG(
"MET tau = " << 0.001 * (*newMet)[
"RefTau"]->
met() <<
" GeV");
342 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 met::ORMETMakerAlg::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode met::ORMETMakerAlg::initialize |
( |
| ) |
|
|
overridevirtual |
◆ 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_chargedPFOContainerWriteHandleKey
SG::WriteHandleKey<xAOD::PFOContainer> met::ORMETMakerAlg::m_chargedPFOContainerWriteHandleKey {this,"PFOChargedOutputName","OverlapRemovedCHSChargedParticleFlowObjects","WriteHandleKey for charged PFO"} |
|
private |
◆ m_CoreMetKey
◆ m_detStore
◆ m_doJVT
bool met::ORMETMakerAlg::m_doJVT |
|
private |
◆ m_doORMet
bool met::ORMETMakerAlg::m_doORMet |
|
private |
◆ m_doRetrieveORconstit
bool met::ORMETMakerAlg::m_doRetrieveORconstit |
|
private |
◆ m_doTruthLep
bool met::METMakerAlg::m_doTruthLep |
|
protectedinherited |
◆ m_elecSelLHTool
◆ m_ElectronContainerKey
◆ m_electronETA
double met::ORMETMakerAlg::m_electronETA |
|
private |
◆ m_electronPT
double met::ORMETMakerAlg::m_electronPT |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_inPFOKey
◆ m_JetContainerKey
◆ m_metKey
◆ m_metmaker
ToolHandle<IMETMaker> met::METMakerAlg::m_metmaker |
|
protectedinherited |
◆ m_metMapKey
◆ m_MuonContainerKey
◆ m_muonETA
double met::ORMETMakerAlg::m_muonETA |
|
private |
◆ m_muonPT
double met::ORMETMakerAlg::m_muonPT |
|
private |
◆ m_muonSelTool
◆ m_neutralPFOContainerWriteHandleKey
SG::WriteHandleKey<xAOD::PFOContainer> met::ORMETMakerAlg::m_neutralPFOContainerWriteHandleKey {this,"PFONeutralOutputName","OverlapRemovedCHSNeutralParticleFlowObjects","WriteHandleKey for charged PFO"} |
|
private |
◆ m_ORMetMapKey
◆ m_outPFOKey
◆ m_PFOContainerWriteHandleKey
◆ m_PhotonContainerKey
◆ m_photonETA
double met::ORMETMakerAlg::m_photonETA |
|
private |
◆ m_photonPT
double met::ORMETMakerAlg::m_photonPT |
|
private |
◆ m_photonSelIsEMTool
◆ m_retainMuonConstit
bool met::ORMETMakerAlg::m_retainMuonConstit |
|
private |
◆ m_soft
std::string met::ORMETMakerAlg::m_soft |
|
private |
◆ m_softclname
std::string met::METMakerAlg::m_softclname |
|
protectedinherited |
◆ m_softtrkname
std::string met::METMakerAlg::m_softtrkname |
|
protectedinherited |
◆ m_tauETA
double met::ORMETMakerAlg::m_tauETA |
|
private |
◆ m_TauJetContainerKey
◆ m_tauPT
double met::ORMETMakerAlg::m_tauPT |
|
private |
◆ m_tauSelTool
◆ m_useUnmatched
bool met::ORMETMakerAlg::m_useUnmatched |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Electron_v1 Electron
Definition of the current "egamma version".
ToolHandle< IAsgPhotonIsEMSelector > m_photonSelIsEMTool
@ PhysicsObject
Physics object based.
@ TruthParticle
Truth particle based.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
SG::WriteHandleKey< xAOD::PFOContainer > m_chargedPFOContainerWriteHandleKey
METMakerAlg()
Default constructor:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
uint16_t author(uint16_t bitmask=EgammaParameters::AuthorALL) const
Get author.
SG::ReadHandleKey< xAOD::PhotonContainer > m_PhotonContainerKey
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
virtual bool accept(const xAOD::Electron *el) final
bool empty() const
Test if the key is blank.
ToolHandle< TauAnalysisTools::ITauSelectionTool > m_tauSelTool
SG::WriteHandleKey< xAOD::PFOContainer > m_PFOContainerWriteHandleKey
virtual void setOwner(IDataHandleHolder *o)=0
StatusCode buildMETSum(const std::string &totalName, xAOD::MissingETContainer *metCont)
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
SG::ReadHandleKey< xAOD::MissingETAssociationMap > m_ORMetMapKey
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
ToolHandle< IAsgElectronLikelihoodTool > m_elecSelLHTool
bool m_doRetrieveORconstit
std::string m_softtrkname
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::WriteHandleKey< xAOD::MissingETContainer > m_metKey
SG::ReadHandleKey< xAOD::TauJetContainer > m_TauJetContainerKey
Principal data object for Missing ET.
SG::ReadHandleKey< xAOD::MissingETAssociationMap > m_metMapKey
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual StatusCode initialize() override
Athena algorithm's Hooks.
SG::ReadHandleKey< xAOD::MuonContainer > m_MuonContainerKey
SG::ReadHandleKey< xAOD::MissingETContainer > m_CoreMetKey
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Policy
Policies on usage checks.
Container for xAOD::MissingET_v1 objects.
ToolHandle< CP::IMuonSelectionTool > m_muonSelTool
@ OnlyTrack
Track based only.
SG::WriteHandleKey< xAOD::PFOContainer > m_neutralPFOContainerWriteHandleKey
Photon_v1 Photon
Definition of the current "egamma version".
struct TBPatternUnitContext Muon
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
DataVector adapter that acts like it holds const pointers.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
SG::ReadHandleKey< xAOD::JetContainer > m_JetContainerKey
virtual double pt() const override final
The transverse momentum ( ) of the particle.
@ Tau
The object is a tau (jet)
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
SG::ReadHandleKey< xAOD::ElectronContainer > m_ElectronContainerKey
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
float met() const
Returns .
ToolHandle< IMETMaker > m_metmaker
Athena configured tools.