![]() |
ATLAS Offline Software
|
#include <CaloTopoEMlayers.h>
Public Types | |
| typedef std::array< std::pair< double, double >, 4 > | WindowArray_t |
| Holds the per-layer window sizes. | |
| typedef ToolWithConstants | base_class |
| Shorthand for derived classes. | |
| using | Context |
| Convenient alias for the Context type. | |
| using | Constant |
| Alias for the Constant type. | |
Public Member Functions | |
| CaloTopoEMlayers (const std::string &type, const std::string &name, const IInterface *parent) | |
| virtual StatusCode | initialize () override |
| Standard Gaudi initialize method. | |
| virtual void | get_seed (CaloClusterCorr::SamplingHelper &helper, const xAOD::CaloCluster *cluster, double &eta, double &phi) const override |
| virtual WindowArray_t | initWindows (const int neta, const int nphi, const double detas2, const double dphis2) const override |
| Set up layer-by-layer cluster window sizes. | |
| virtual void | makeCorrection (const Context &myctx, xAOD::CaloCluster *cluster) const override |
| CaloClusterCorrection virtual method. | |
| void | makeCorrection (const EventContext &ctx, xAOD::CaloCluster *cluster) const |
| virtual StatusCode | setCaloCellContainerName (const std::string &name) override |
| Change the name of the CaloCellContainer used by this tool. | |
| 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::CaloClusterContainer *collection) const |
| Execute on an entire collection of clusters. | |
| Context | context (const EventContext &ctx) const |
Create a Context object. | |
| virtual void | writeConstants (std::ostream &stream, const std::string &name, const EventContext &ctx) const |
| Dump method (for debugging) | |
| virtual StatusCode | mergeConstants (CaloRec::ToolConstants &out, const EventContext &ctx) const override |
Merge our constants into out with the proper prefix. | |
| virtual int | toolVersion () const |
| Return the version number for this tool. | |
| virtual const std::string & | toolType () const |
| Return the name of the type of this tool. | |
Public Attributes | |
| cls = CompFactory.CaloTopoEMlayers | |
| list | CaloTopoEMlayers_versions |
Protected Attributes | |
| double | m_deta0 = 0.0 |
| Cell window sizes in each sampling. | |
| double | m_deta1 = 0.0 |
| double | m_deta2 = 0.0 |
| double | m_deta3 = 0.0 |
| double | m_dphi0 = 0.0 |
| double | m_dphi1 = 0.0 |
| double | m_dphi2 = 0.0 |
| double | m_dphi3 = 0.0 |
| int | m_neta |
| \(\eta\times\phi\) cluster size. These are properties. | |
| int | m_nphi |
| bool | m_fill_cluster |
| Fill-cluster flag. | |
| bool | m_setRawState |
| Property to tell if the raw energy, eta0 and phi0 should be saved as uncalibrated signal state. | |
| SG::ReadCondHandleKey< CaloDetDescrManager > | m_caloMgrKey {this,"CaloDetDescrManager", "CaloDetDescrManager"} |
Private Member Functions | |
| CaloTopoEMlayers ()=delete | |
| void | makeCorrection1 (const EventContext &ctx, const CaloDetDescrManager &dd_man, CaloClusterCorr::SamplingHelper &helper, double eta, double phi, const CaloSampling::CaloSample samplings[4]) const |
| void | makeCorrection2 (const EventContext &ctx, const CaloDetDescrManager &dd_man, CaloClusterCorr::SamplingHelper &helper) const |
Private Attributes | |
| SG::ReadHandleKey< CaloCellContainer > | m_cellsName |
| The StoreGate key for the container of our input cells. | |
| SG::ReadCondHandleKey< CaloRec::ToolConstants > | m_DBHandle |
| Handle to a ToolConstants conditions object. | |
| StringProperty | m_prefix |
| Prefix for finding our constants within the ToolConstants object. | |
| ToolWithConstantsImpl | m_impl |
| Internal implementation object. | |
| Constant< int > | m_order |
| Used to fix the ordering of tools when we're initializing from COOL based on a hierarchical tag. | |
| Constant< bool > | m_isdummy |
| If true, then this is a dummy tool that should not be executed. | |
Definition at line 39 of file CaloTopoEMlayers.h.
|
inherited |
Shorthand for derived classes.
Definition at line 450 of file ToolWithConstants.h.
|
inherited |
Alias for the Constant type.
Definition at line 463 of file ToolWithConstants.h.
|
inherited |
Convenient alias for the Context type.
Definition at line 458 of file ToolWithConstants.h.
|
inherited |
Holds the per-layer window sizes.
Definition at line 122 of file CaloFillRectangularCluster.h.
| CaloTopoEMlayers::CaloTopoEMlayers | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Definition at line 46 of file CaloTopoEMlayers.cxx.
|
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 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 65 of file CaloClusterProcessor.cxx.
|
overridevirtual |
Reimplemented from CaloFillRectangularCluster.
Definition at line 64 of file CaloTopoEMlayers.cxx.
|
overridevirtual |
Standard Gaudi initialize method.
Derived classes can extend this to change the sampling window sizes.
Reimplemented from CaloFillRectangularCluster.
Definition at line 56 of file CaloTopoEMlayers.cxx.
|
overridevirtual |
Set up layer-by-layer cluster window sizes.
| neta | Cluster eta size. |
| nphi | Cluster phi size. |
| detas2 | Middle layer cell eta size. |
| detas2 | Middle layer cell phi size. |
Returns per-layer array of deta,dphi pairs.
Reimplemented from CaloFillRectangularCluster.
Definition at line 84 of file CaloTopoEMlayers.cxx.
|
overridevirtualinherited |
CaloClusterCorrection virtual method.
| myctx | ToolWithConstants context. |
| cluster | The cluster on which to operate. |
Implements CaloClusterCorrection.
|
inlineinherited |
Definition at line 92 of file CaloFillRectangularCluster.h.
|
privateinherited |
Definition at line 823 of file CaloFillRectangularCluster.cxx.
|
privateinherited |
Definition at line 954 of file CaloFillRectangularCluster.cxx.
|
overridevirtualinherited |
Merge our constants into out with the proper prefix.
| [out] | out | Object to receive our constants. |
| ctx | Event context. |
|
overridevirtualinherited |
Change the name of the CaloCellContainer used by this tool.
| name | The new container name. |
Implements ISetCaloCellContainerName.
Definition at line 1218 of file CaloFillRectangularCluster.cxx.
|
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.
Reimplemented in CaloSwEta1b_g3, CaloSwEta1e_g3, CaloSwEta2b_g3, and CaloSwEta2e_g3.
|
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 |
| list CaloTopoEMlayers.CaloTopoEMlayers_versions |
Definition at line 24 of file CaloTopoEMlayers.py.
| CaloTopoEMlayers.cls = CompFactory.CaloTopoEMlayers |
Definition at line 23 of file CaloTopoEMlayers.py.
|
protectedinherited |
Definition at line 83 of file CaloClusterCorrection.h.
|
privateinherited |
The StoreGate key for the container of our input cells.
This is a property.
Definition at line 195 of file CaloFillRectangularCluster.h.
|
privateinherited |
Handle to a ToolConstants conditions object.
Definition at line 534 of file ToolWithConstants.h.
|
protectedinherited |
Cell window sizes in each sampling.
Definition at line 176 of file CaloFillRectangularCluster.h.
|
protectedinherited |
Definition at line 176 of file CaloFillRectangularCluster.h.
|
protectedinherited |
Definition at line 176 of file CaloFillRectangularCluster.h.
|
protectedinherited |
Definition at line 176 of file CaloFillRectangularCluster.h.
|
protectedinherited |
Definition at line 177 of file CaloFillRectangularCluster.h.
|
protectedinherited |
Definition at line 177 of file CaloFillRectangularCluster.h.
|
protectedinherited |
Definition at line 177 of file CaloFillRectangularCluster.h.
|
protectedinherited |
Definition at line 177 of file CaloFillRectangularCluster.h.
|
protectedinherited |
Fill-cluster flag.
This is a property. If true, then we fill the cluster with cells from StoreGate. Otherwise, we use the cells already in the cluster.
Definition at line 185 of file CaloFillRectangularCluster.h.
|
privateinherited |
|
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 560 of file ToolWithConstants.h.
|
protectedinherited |
\(\eta\times\phi\) cluster size. These are properties.
Definition at line 180 of file CaloFillRectangularCluster.h.
|
protectedinherited |
Definition at line 180 of file CaloFillRectangularCluster.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 547 of file ToolWithConstants.h.
|
privateinherited |
Prefix for finding our constants within the ToolConstants object.
Definition at line 538 of file ToolWithConstants.h.
|
protectedinherited |
Property to tell if the raw energy, eta0 and phi0 should be saved as uncalibrated signal state.
Definition at line 190 of file CaloFillRectangularCluster.h.