|
ATLAS Offline Software
|
#include <METMakerAlg.h>
|
| METMakerAlg (const std::string &name, ISvcLocator *pSvcLocator) |
| Constructor with parameters: More...
|
|
virtual | ~METMakerAlg () |
| 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 |
|
Definition at line 42 of file METMakerAlg.h.
◆ StoreGateSvc_t
◆ METMakerAlg() [1/2]
met::METMakerAlg::METMakerAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~METMakerAlg()
met::METMakerAlg::~METMakerAlg |
( |
| ) |
|
|
virtualdefault |
◆ METMakerAlg() [2/2]
met::METMakerAlg::METMakerAlg |
( |
| ) |
|
|
protected |
◆ 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::METMakerAlg::execute |
( |
| ) |
|
|
overridevirtual |
MET
Jets
Electrons
Photons
Taus
Muons
Definition at line 120 of file METMakerAlg.cxx.
124 auto ctx = getContext();
126 ATH_CHECK( metHandle.record (std::make_unique<xAOD::MissingETContainer>(), std::make_unique<xAOD::MissingETAuxContainer>()) );
130 if (!metMap.isValid()) {
132 return StatusCode::FAILURE;
140 if (!coreMet.isValid()) {
142 return StatusCode::FAILURE;
148 if (!
Jets.isValid()) {
150 return StatusCode::FAILURE;
155 if (!Electrons.isValid()) {
156 ATH_MSG_WARNING(
"Unable to retrieve ElectronContainer: " << Electrons.key());
157 return StatusCode::FAILURE;
162 if (!
Gamma.isValid()) {
164 return StatusCode::FAILURE;
169 if (!TauJets.isValid()) {
170 ATH_MSG_WARNING(
"Unable to retrieve TauJetContainer: " << TauJets.key());
171 return StatusCode::FAILURE;
176 if (!
Muons.isValid()) {
178 return StatusCode::FAILURE;
188 for(
const auto *
const el : *Electrons) {
190 metElectrons.push_back(
el);
195 metElectrons.asDataVector(),
196 metHelper, objScale).isFailure() ) {
199 ATH_MSG_DEBUG(
"Selected " << metElectrons.size() <<
" MET electrons. "
200 << acc_constitObjLinks(*(*newMet)[
"RefEle"]).
size() <<
" are non-overlapping.");
206 for(
const auto *
const ph : *
Gamma) {
208 metPhotons.push_back(ph);
212 metPhotons.asDataVector(),
213 metHelper, objScale).isFailure() ) {
216 ATH_MSG_DEBUG(
"Selected " << metPhotons.size() <<
" MET photons. "
217 << acc_constitObjLinks(*(*newMet)[
"RefGamma"]).
size() <<
" are non-overlapping.");
223 for(
const auto *
const tau : *TauJets) {
225 metTaus.push_back(tau);
229 metTaus.asDataVector(),
230 metHelper, objScale).isFailure() ){
234 << acc_constitObjLinks(*(*newMet)[
"RefTau"]).
size() <<
" are non-overlapping.");
240 for(
const auto *
const mu : *
Muons) {
242 metMuons.push_back(
mu);
248 metMuons.asDataVector(),
249 metHelper, objScale).isFailure() ) {
252 ATH_MSG_DEBUG(
"Selected " << metMuons.size() <<
" MET muons. "
253 << acc_constitObjLinks(*(*newMet)[
"Muons"]).
size() <<
" are non-overlapping.");
257 Jets.cptr(), coreMet.cptr(), metHelper,
false ).isFailure() ) {
261 << acc_constitObjLinks(*(*newMet)[
"RefJet"]).
size() <<
" are non-overlapping, "
266 if(
buildMETSum(
"FinalTrk", newMet, trksource).isFailure() ){
271 if(
buildMETSum(
"FinalClus", newMet, clsource).isFailure() ) {
275 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::METMakerAlg::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode met::METMakerAlg::initialize |
( |
| ) |
|
|
overridevirtual |
Athena algorithm's Hooks.
Definition at line 70 of file METMakerAlg.cxx.
77 return StatusCode::FAILURE;
82 return StatusCode::FAILURE;
87 return StatusCode::FAILURE;
92 return StatusCode::FAILURE;
97 return StatusCode::FAILURE;
108 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_CoreMetKey
◆ m_detStore
◆ m_doTruthLep
bool met::METMakerAlg::m_doTruthLep |
|
protected |
◆ m_elecSelLHTool
◆ m_ElectronContainerKey
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_JetContainerKey
◆ m_metKey
◆ m_metmaker
ToolHandle<IMETMaker> met::METMakerAlg::m_metmaker |
|
protected |
◆ m_metMapKey
◆ m_MuonContainerKey
◆ m_muonSelTool
◆ m_PhotonContainerKey
◆ m_photonSelIsEMTool
◆ m_softclname
std::string met::METMakerAlg::m_softclname |
|
protected |
◆ m_softtrkname
std::string met::METMakerAlg::m_softtrkname |
|
protected |
◆ m_TauJetContainerKey
◆ m_tauSelTool
◆ 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
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
@ LCTopo
Indicator for MET contribution from TopoClusters with LCW calibration applied.
#define ATH_MSG_VERBOSE(x)
uint64_t bitmask_t
Type for status word bit mask.
bool empty() const
Test if the key is blank.
ToolHandle< TauAnalysisTools::ITauSelectionTool > m_tauSelTool
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())
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
ToolHandle< IAsgElectronLikelihoodTool > m_elecSelLHTool
std::string m_softtrkname
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::WriteHandleKey< xAOD::MissingETContainer > m_metKey
virtual bool accept(const xAOD::Electron *el)
SG::ReadHandleKey< xAOD::TauJetContainer > m_TauJetContainerKey
SG::ReadHandleKey< xAOD::MissingETAssociationMap > m_metMapKey
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
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.
Photon_v1 Photon
Definition of the current "egamma version".
struct TBPatternUnitContext Muon
DataObjIDColl m_extendedExtraObjects
@ Track
Indicator for MET contribution from reconstructed charged particle tracks.
#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)
AthAlgorithm()
Default constructor:
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>
ToolHandle< IMETMaker > m_metmaker
Athena configured tools.