|
ATLAS Offline Software
|
#include <CaloSwGap_g3.h>
|
virtual StatusCode | initialize () override |
| Standard Gaudi initialize method. More...
|
|
virtual void | makeCorrection (const Context &myctx, xAOD::CaloCluster *cluster) const override |
|
virtual StatusCode | setCaloCellContainerName (const std::string &name) override |
| Change the name of the CaloCellContainer used by this tool. 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...
|
|
|
Constant< float > | m_etamin_crack { this, "etamin_crack", "" } |
|
Constant< float > | m_etamax_crack { this, "etamax_crack", "" } |
|
Constant< CxxUtils::Array< 1 > > | m_scint_weight { this, "scint_weight", "" } |
|
Constant< CxxUtils::Array< 1 > > | m_correction { this, "correction", "" } |
|
SG::ReadHandleKey< CaloCellContainer > | m_cells_name { this, "cells_name", "AllCalo", "" } |
| Property: The name of the container in which to look to find tile cells. More...
|
|
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...
|
|
Definition at line 34 of file CaloSwGap_g3.h.
◆ base_class
◆ Constant
◆ Context
◆ CaloSwGap_g3()
CaloSwGap_g3::CaloSwGap_g3 |
( |
| ) |
|
|
privatedelete |
◆ context()
Create a Context
object.
This can then be passed to Constant::operator()
.
◆ execute() [1/4]
◆ execute() [2/4]
virtual StatusCode CaloClusterProcessor::execute |
|
inherited |
Execute on a single cluster.
- Parameters
-
cluster | The cluster to process. |
ctx | The event context. |
◆ execute() [3/4]
StatusCode CaloClusterProcessor::execute |
|
inherited |
Execute on an entire collection of clusters.
- Parameters
-
collection | The container of clusters. |
This will iterate over all the clusters in collection
and call execute
on each one individually.
- Parameters
-
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.
65 return StatusCode::SUCCESS;
◆ execute() [4/4]
StatusCode CaloClusterProcessor::execute |
|
finalinherited |
Execute on a single cluster.
- Parameters
-
cluster | The cluster to process. (deprecated) |
Definition at line 63 of file CaloClusterProcessor.cxx.
45 return execute (Gaudi::Hive::currentContext(), cluster);
◆ initialize()
StatusCode CaloSwGap_g3::initialize |
( |
| ) |
|
|
overridevirtual |
◆ makeCorrection()
Implements CaloClusterCorrection.
Definition at line 62 of file CaloSwGap_g3.cxx.
65 float eta = cluster->
eta();
66 float phi = cluster->
phi();
68 float aeta = fabs(eta);
72 if (aeta < etamin_crack || aeta > etamax_crack)
90 for ( ; f_cell!=l_cell; ++f_cell)
94 int inum =
cell->caloDDE()->getSampling();
97 double phic =
cell->phi();
98 double etac =
cell->eta();
99 if (phic-phi < -
pi) phic = phic +
twopi;
100 if (phic-phi >
pi) phic = phic -
twopi;
101 if (etac >= eta-deta && etac <= eta+deta) {
102 if (phic >= phi-dphi && phic <= phi+dphi) {
103 eh_scint +=
cell->e();
111 double granularity = (etamax_crack - etamin_crack)/
correction.size();
112 int ind =
static_cast<int> ((aeta - etamin_crack)/granularity);
115 eh_scint = eh_scint * scint_weight[
ind];
◆ mergeConstants()
Merge our constants into out
with the proper prefix.
- Parameters
-
[out] | out | Object to receive our constants. |
| ctx | Event context. |
◆ setCaloCellContainerName()
StatusCode CaloSwGap_g3::setCaloCellContainerName |
( |
const std::string & |
name | ) |
|
|
overridevirtual |
◆ setenergy()
void CaloClusterCorrection::setenergy |
( |
xAOD::CaloCluster * |
cluster, |
|
|
float |
energy |
|
) |
| const |
|
virtualinherited |
◆ setsample()
void CaloClusterCorrection::setsample |
( |
xAOD::CaloCluster * |
cluster, |
|
|
CaloSampling::CaloSample |
sampling, |
|
|
float |
em, |
|
|
float |
etam, |
|
|
float |
phim, |
|
|
float |
emax, |
|
|
float |
etamax, |
|
|
float |
phimax, |
|
|
float |
etas, |
|
|
float |
phis |
|
) |
| const |
|
virtualinherited |
◆ toolType()
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.
◆ toolVersion()
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.
◆ writeConstants()
Dump method (for debugging)
- Parameters
-
stream | Ostream to which to write. |
name | Name to go in output |
ctx | Event context. |
◆ m_caloMgrKey
◆ m_cells_name
◆ m_correction
◆ m_DBHandle
◆ m_etamax_crack
Constant<float> CaloSwGap_g3::m_etamax_crack { this, "etamax_crack", "" } |
|
private |
◆ m_etamin_crack
Constant<float> CaloSwGap_g3::m_etamin_crack { this, "etamin_crack", "" } |
|
private |
◆ m_impl
◆ m_isdummy
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.
◆ m_order
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.
◆ m_prefix
Prefix for finding our constants within the ToolConstants object.
Definition at line 531 of file ToolWithConstants.h.
◆ m_scint_weight
The documentation for this class was generated from the following files:
virtual double phi() const
The azimuthal angle ( ) of the particle.
bool setPhisize(const CaloSample sampling, const float phiSize)
Set the cluster size in for a given sampling.
Const iterator class for DataVector/DataList.
unsigned int size(unsigned int dim=0) const
Return the size of the array along one dimension.
virtual void setenergy(xAOD::CaloCluster *cluster, float energy) const
Constant< float > m_etamax_crack
float phiBE(const unsigned layer) const
Get the phi in one layer of the EM Calo.
bool setEnergy(const CaloSample sampling, const float e)
Set energy for a given sampling. Returns false if the sample isn't part of the cluster.
Constant< float > m_etamin_crack
bool setEmax(const CaloSample sampling, const float eMax)
Set the Energy of the cell with the highest energy in a particular sampling.
virtual StatusCode initialize() override
Initialize method.
float etaSample(const CaloSample sampling) const
Retrieve barycenter in a given sample.
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
bool setPhimax(const CaloSample sampling, const float phiMax)
Set the phi of the cell with the highest energy in a particular sampling.
(Non-const) Iterator class for DataVector/DataList.
virtual double eta() const
The pseudorapidity ( ) of the particle.
Constant< CxxUtils::Array< 1 > > m_scint_weight
#define CHECK(...)
Evaluate an expression and check for errors.
float phiSample(const CaloSample sampling) const
Retrieve barycenter in a given sample.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
#define REPORT_MESSAGE(LVL)
Report a message.
virtual void makeCorrection(const Context &myctx, xAOD::CaloCluster *) const =0
float eSample(const CaloSample sampling) const
Data object for each calorimeter readout cell.
Constant< CxxUtils::Array< 1 > > m_correction
bool setPhi(const CaloSample sampling, const float phi)
Set in a given sampling. Returns false if the sample isn't part of the cluster.
bool setEtamax(const CaloSample sampling, const float etaMax)
Set the eta of the cell with the highest energy in a particular sampling.
bool setEtasize(const CaloSample sampling, const float etaSize)
Set the cluster size in for a given sampling.
SG::ReadHandleKey< CaloCellContainer > m_cells_name
Property: The name of the container in which to look to find tile cells.
bool setEta(const CaloSample sampling, const float eta)
Set in a given sampling. Returns false if the sample isn't part of the cluster.
bool hasSampling(const CaloSample s) const
Checks if certain smapling contributes to cluster.
StatusCode execute(const EventContext &ctx, xAOD::CaloCluster *cluster) const override
virtual double e() const
The total energy of the particle.