ATLAS Offline Software
|
#include <CaloSwApplyWgts_g3.h>
Public Types | |
typedef ToolWithConstants | base_class |
Shorthand for derived classes. More... | |
using | Context = CaloUtils::ToolConstantsContext |
Convenient alias for the Context type. More... | |
using | Constant = ToolConstant< T > |
Alias for the Constant type. More... | |
Public Member Functions | |
virtual void | makeCorrection (const Context &myctx, xAOD::CaloCluster *cluster) const override |
virtual StatusCode | initialize () override |
Initialize method. More... | |
virtual void | setsample (xAOD::CaloCluster *cluster, CaloSampling::CaloSample sampling, float em, float etam, float phim, float emax, float etamax, float phimax, float etas, float phis) const |
virtual void | setenergy (xAOD::CaloCluster *cluster, float energy) const |
StatusCode | execute (const EventContext &ctx, xAOD::CaloCluster *cluster) const override |
virtual StatusCode | execute (const EventContext &ctx, xAOD::CaloCluster *cluster) const=0 |
Execute on a single cluster. More... | |
virtual StatusCode | execute (xAOD::CaloCluster *cluster) final |
Execute on a single cluster. More... | |
virtual StatusCode | execute (const EventContext &ctx, xAOD::CaloClusterContainer *collection) const |
Execute on an entire collection of clusters. More... | |
Context | context (const EventContext &ctx) const |
Create a Context object. More... | |
virtual void | writeConstants (std::ostream &stream, const std::string &name, const EventContext &ctx) const |
Dump method (for debugging) More... | |
virtual StatusCode | mergeConstants (CaloRec::ToolConstants &out, const EventContext &ctx) const override |
Merge our constants into out with the proper prefix. More... | |
virtual int | toolVersion () const |
Return the version number for this tool. More... | |
virtual const std::string & | toolType () const |
Return the name of the type of this tool. More... | |
Protected Attributes | |
SG::ReadCondHandleKey< CaloDetDescrManager > | m_caloMgrKey {this,"CaloDetDescrManager", "CaloDetDescrManager"} |
Private Member Functions | |
CaloSwApplyWgts_g3 ()=delete | |
Static Private Member Functions | |
static float | GetWgt (int table, float eta) |
Private Attributes | |
SG::ReadCondHandleKey< CaloRec::ToolConstants > | m_DBHandle |
Handle to a ToolConstants conditions object. More... | |
StringProperty | m_prefix |
Prefix for finding our constants within the ToolConstants object. More... | |
ToolWithConstantsImpl | m_impl |
Internal implementation object. More... | |
Constant< int > | m_order |
Used to fix the ordering of tools when we're initializing from COOL based on a hierarchical tag. More... | |
Constant< bool > | m_isdummy |
If true, then this is a dummy tool that should not be executed. More... | |
Static Private Attributes | |
static const int | s_numEtaBins =100 |
static const float | m_table_eta [s_numEtaBins+1] |
static const float | m_table_p [4][s_numEtaBins] |
Definition at line 27 of file CaloSwApplyWgts_g3.h.
|
inherited |
Shorthand for derived classes.
Definition at line 443 of file ToolWithConstants.h.
|
inherited |
Alias for the Constant type.
Definition at line 456 of file ToolWithConstants.h.
|
inherited |
Convenient alias for the Context type.
Definition at line 451 of file ToolWithConstants.h.
|
privatedelete |
|
inherited |
Create a Context
object.
This can then be passed to Constant::operator()
.
|
overrideinherited |
Definition at line 53 of file CaloClusterCorrection.cxx.
|
inherited |
Execute on a single cluster.
cluster | The cluster to process. |
ctx | The event context. |
|
inherited |
Execute on an entire collection of clusters.
collection | The container of clusters. |
This will iterate over all the clusters in collection
and call execute
on each one individually.
collection | The container of clusters. |
ctx | The event context. |
This will iterate over all the clusters in collection
and call execute
on each one individually.
Definition at line 73 of file CaloClusterProcessor.cxx.
|
finalinherited |
Execute on a single cluster.
cluster | The cluster to process. (deprecated) |
Definition at line 63 of file CaloClusterProcessor.cxx.
|
staticprivate |
Definition at line 181 of file CaloSwApplyWgts_g3.cxx.
|
overridevirtualinherited |
Initialize method.
Derived classes must call this.
Reimplemented from CaloUtils::ToolWithConstants< CaloClusterProcessor >.
Reimplemented in CaloSwGap_v2, CaloFillRectangularCluster, CaloTopoEMlayers, CaloSwGap_v3, CaloSwDeadOTX_back, CaloSwDeadOTX_ps, CaloSwGap_g3, CaloClusterBadChannelList, CaloDummyCorrection, and CaloTopoEMGap.
Definition at line 47 of file CaloClusterCorrection.cxx.
|
overridevirtual |
|
overridevirtualinherited |
Merge our constants into out
with the proper prefix.
[out] | out | Object to receive our constants. |
ctx | Event context. |
|
virtualinherited |
Definition at line 94 of file CaloClusterCorrection.cxx.
|
virtualinherited |
Definition at line 74 of file CaloClusterCorrection.cxx.
|
virtualinherited |
Return the name of the type of this tool.
A saved set of constants includes both the C++ class name and a version number. Normally, the class name is taken from the Gaudi type() method, but that may be changed by overriding this method. This can be used, for example, when there are tools with distinct C++ classes but which are yet similar enough to combine together.
|
virtualinherited |
Return the version number for this tool.
A saved set of constants includes both the C++ class name and a version number. The idea is that the version number can be bumped whenever there's a backwards-incompatible change; this gives some protection against trying to use an old version of a tool with an incompatible newer set of constants.
If you want a tool to have a version number, override this method. Otherwise, it will default to a version number of 0.
|
virtualinherited |
Dump method (for debugging)
stream | Ostream to which to write. |
name | Name to go in output |
ctx | Event context. |
|
protectedinherited |
Definition at line 119 of file CaloClusterCorrection.h.
|
privateinherited |
Handle to a ToolConstants conditions object.
Definition at line 527 of file ToolWithConstants.h.
|
privateinherited |
Internal implementation object.
Definition at line 535 of file ToolWithConstants.h.
|
privateinherited |
If true, then this is a dummy tool that should not be executed.
This is used for the case of reading from COOL using hierarchical tags: we need to have such tags associated with some object in each folder, regardless of whether or not the correction from that folder is actually used. [Every folder that IOVDbSvc knows about at configuration time needs to have a valid object for the configured tag, else IOVDbSvc will raise a fatal error. But we don't know at configuration time which folders we're actually going to need, so we gotta configure all of them.]
Definition at line 553 of file ToolWithConstants.h.
|
privateinherited |
Used to fix the ordering of tools when we're initializing from COOL based on a hierarchical tag.
Tools should be executed in order of increasing m_order.
Definition at line 540 of file ToolWithConstants.h.
|
privateinherited |
Prefix for finding our constants within the ToolConstants object.
Definition at line 531 of file ToolWithConstants.h.
|
staticprivate |
Definition at line 58 of file CaloSwApplyWgts_g3.h.
|
staticprivate |
Definition at line 59 of file CaloSwApplyWgts_g3.h.
|
staticprivate |
Definition at line 56 of file CaloSwApplyWgts_g3.h.