ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | Private Attributes | List of all members
CaloSwGap_v3 Class Reference

EM calorimeter gap corrections. More...

#include <CaloSwGap_v3.h>

Inheritance diagram for CaloSwGap_v3:
Collaboration diagram for CaloSwGap_v3:

Public Types

enum  {
  EMB1 = 0, EMB2 = 1, EME1 = 2, EME2 = 3,
  COMBINED2 = 4, CLUSTER = 5, NREGIONS = 6
}
 Region codes for m_region below. More...
 
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 StatusCode initialize () override
 Standard Gaudi initialize method. More...
 
virtual void makeTheCorrection (const Context &myctx, xAOD::CaloCluster *cluster, const CaloDetDescrElement *elt, float eta, float adj_eta, float phi, float adj_phi, CaloSampling::CaloSample samp) const override
 Virtual function for the correction-specific code. More...
 
virtual StatusCode setCaloCellContainerName (const std::string &name) override
 Change the name of the CaloCellContainer used by this tool. More...
 
virtual bool isGoodPhi (float eta, float phi) const
 
 CaloClusterCorrectionCommon (const std::string &type, const std::string &name, const IInterface *parent)
 Inherit constructor. More...
 
virtual void makeCorrection (const Context &myctx, xAOD::CaloCluster *cluster) const override
 Perform the correction. 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...
 

Static Public Member Functions

static float energy_interpolation (float energy, const TableBuilder &builder, const CaloRec::Array< 1 > &energies, int energy_degree)
 Many of the corrections use the same method for doing the final interpolation in energy. More...
 

Public Attributes

list CaloSwGap_v3_ele55
 Gap energy correction for versions 12.x.x and later (calculated with 11.0.41 runs) SP: since May/06 it is cluster size dependent and includes the scintillator. More...
 
list CaloSwGap_v3_ele35
 
list CaloSwGap_v3_ele37
 
list CaloSwGap_v3_gam55
 
list CaloSwGap_v3_gam35
 
list CaloSwGap_v3_gam37
 

Protected Attributes

SG::ReadCondHandleKey< CaloDetDescrManagerm_caloMgrKey {this,"CaloDetDescrManager", "CaloDetDescrManager"}
 

Private Member Functions

const CaloClusterCorr::DDHelperddhelper (const CaloDetDescrManager *dd_man) const
 Retrieve the detector description helper, creating it if needed. More...
 

Private Attributes

Constant< float > m_etamin_crack { this, "etamin_crack", "Lower end of range over which this correction is defined." }
 Calibration constants: The range over which this correction is defined. More...
 
Constant< float > m_etamax_crack { this, "etamax_crack", "Upper end of range over which this correction is defined." }
 
Constant< int > m_degree { this, "degree", "Interpolation degree." }
 Calibration constant: The interpolation degree. More...
 
Constant< CxxUtils::Array< 2 > > m_correctionGoodPhi { this, "correctionGoodPhi", "" }
 Calibration constant: The tabulated array of correction weights, A and alpha. More...
 
Constant< CxxUtils::Array< 2 > > m_correctionBadPhi { this, "correctionBadPhi", "" }
 
Constant< bool > m_use_raw_eta { this, "use_raw_eta", "If true, tabulated values are in terms of raw (local) eta." }
 Calibration constant: If true, tabulated values are in terms of raw (local) eta. More...
 
Constant< bool > m_use_raw_eta_boundaries { this, "use_raw_eta_boundaries", "" }
 
SG::ReadHandleKey< CaloCellContainerm_cells_name { this, "cells_name", "AllCalo", "The name of the container in which to look to find tile cells." }
 Property: The name of the container in which to look to find tile cells. More...
 
Constant< int > m_region { this, "region", "Calorimeter region" }
 Calibration constant: The calorimeter region for which this correction is intended. More...
 
CxxUtils::CachedUniquePtr< const CaloClusterCorr::DDHelperm_ddhelper
 Helper for detector description lookup. More...
 
SG::ReadCondHandleKey< CaloRec::ToolConstantsm_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...
 

Detailed Description

EM calorimeter gap corrections.

This tool attempts to correct for the energy lost in dead material in the gap between the barrel and end cryostats. In addition to the energy in the EM calorimeter, we also use energy deposited in scintillators between the cryostats. The correction is of the form

\[ E' = A(E_c + \alpha E_s), \]

where \(E_c\) is the measured energy in the EM calorimeter, and \(E_s\) is the measured energy in the scintillator. The coefficients \(A\) and \(\alpha\) are \(\eta\)-dependent. The total scale \(A\) is determined by fitting a polynomial to the \(E_{\rm meas}/E_{\rm true}\) curve outside the gap region, and interpolating over the gap. The weight \(\alpha\) is found by requiring that the RMS of \(E'\) be a minimum.

The resulting weights do not vary a lot with energy in the range studied (50 to 200 GeV). Thus, we combine together all the energies when determining the correction; the resulting correction is then energy-independent. The residual energy dependence will be folded into subsequent corrections.

Definition at line 51 of file CaloSwGap_v3.h.

Member Typedef Documentation

◆ base_class

typedef ToolWithConstants CaloUtils::ToolWithConstants< CaloClusterProcessor >::base_class
inherited

Shorthand for derived classes.

Definition at line 443 of file ToolWithConstants.h.

◆ Constant

using CaloUtils::ToolWithConstants< CaloClusterProcessor >::Constant = ToolConstant<T>
inherited

Alias for the Constant type.

Definition at line 456 of file ToolWithConstants.h.

◆ Context

Convenient alias for the Context type.

Definition at line 451 of file ToolWithConstants.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited

Region codes for m_region below.

This is used to decide how to report the position of the cluster. Note: This numbering is also used in the job options files.

Enumerator
EMB1 
EMB2 
EME1 
EME2 
COMBINED2 
CLUSTER 
NREGIONS 

Definition at line 100 of file CaloClusterCorrectionCommon.h.

100  {
101  // Barrel, sampling 1.
102  EMB1 = 0,
103 
104  // Barrel, sampling 2.
105  EMB2 = 1,
106 
107  // Endcap, sampling 1.
108  EME1 = 2,
109 
110  // Endcap, sampling 2.
111  EME2 = 3,
112 
113  // Average of barrel and endcap in sampling 2.
114  COMBINED2 = 4,
115 
116  // Overall cluster position.
117  CLUSTER = 5,
118 
119  // Number of different region codes.
120  NREGIONS = 6
121  };

Member Function Documentation

◆ CaloClusterCorrectionCommon()

CaloClusterCorrectionCommon::CaloClusterCorrectionCommon

Inherit constructor.

Definition at line 46 of file CaloClusterCorrectionCommon.cxx.

412 {
413 }

◆ context()

Context CaloUtils::ToolWithConstants< CaloClusterProcessor >::context ( const EventContext &  ctx) const
inherited

Create a Context object.

This can then be passed to Constant::operator().

◆ ddhelper()

const CaloClusterCorr::DDHelper & CaloClusterCorrectionCommon::ddhelper ( const CaloDetDescrManager dd_man) const
privateinherited

Retrieve the detector description helper, creating it if needed.

Definition at line 640 of file CaloClusterCorrectionCommon.cxx.

641 {
643  if (!ddhelper) {
644  auto newhelper = std::make_unique<const CaloClusterCorr::DDHelper> (dd_man);
645  ddhelper = m_ddhelper.set (std::move (newhelper));
646  }
647  return *ddhelper;
648 }

◆ energy_interpolation()

float CaloClusterCorrectionCommon::energy_interpolation ( float  energy,
const TableBuilder builder,
const CaloRec::Array< 1 > &  energies,
int  energy_degree 
)
staticinherited

Many of the corrections use the same method for doing the final interpolation in energy.

Perform energy interpolation.

We factor out this common code here. builder is used to construct the interpolation table; energy is the energy value for the interpolation. energies is the list of energies at which we have tabulated values, and energy_degree is the degree of the polynomial interpolation in energy.

Parameters
energyThe energy value for the interpolation.
builderHelper to construct the interpolation table.
energiesThe energy interpolation table.
energy_degreeThe polynomial interpolation degree for the energy interpolation.

Many of the corrections use the same method for doing the final interpolation in energy. We factor out this common code here.

Definition at line 575 of file CaloClusterCorrectionCommon.cxx.

581 {
582  // Calculate the correction for each energy.
583  unsigned int n_energies = energies.size();
584  unsigned int shape[] = {n_energies, 2};
585  CaloRec::WritableArrayData<2> corrtab (shape);
586 
587  // If we're outside the range of the table, we'll just be using the
588  // value at the end (no extrapolation). We only need to calculate
589  // that one point in that case.
590  unsigned int beg = 0;
591  unsigned int end = n_energies;
592  if (energy <= energies[0])
593  end = 1;
594  else if (energy >= energies[n_energies-1])
595  beg = n_energies-1;
596 
597  // Build the table.
598  int n_good = 0;
599  for (unsigned int i=beg; i<end; i++)
600  docalc (i, builder, energies, corrtab, n_good);
601 
602  // If we only evaluated one point, but it wasn't good, keep
603  // searching until we find a good one.
604  while (n_good == 0 && beg > 0) {
605  --beg;
606  docalc (beg, builder, energies, corrtab, n_good);
607  }
608  while (n_good == 0 && end < n_energies) {
609  docalc (end, builder, energies, corrtab, n_good);
610  ++end;
611  }
612 
613  // Now interpolate in energy.
614  // But if we're outside of the range of the table, just use the value
615  // at the end (don't extrapolate).
616  if (n_good == 0) {
617  // No good energies --- return a null correction.
618  return 0;
619  }
620  else if (n_good == 1) {
621  // Only one good energy --- nothing to do but to use it.
622  return corrtab[0][1];
623  }
624  else if (energy <= corrtab[0][0]) {
625  // Off the low end of the table --- return the first value.
626  return corrtab[0][1];
627  }
628  else if (energy >= corrtab[n_good-1][0]) {
629  // Off the high end of the table --- return the last value.
630  return corrtab[n_good-1][1];
631  }
632 
633  // Do the interpolation.
634  return interpolate (corrtab, energy, energy_degree,
635  1, CaloRec::Array<1>(), n_good);
636 }

◆ execute() [1/4]

StatusCode CaloClusterCorrection::execute ( const EventContext &  ctx,
xAOD::CaloCluster cluster 
) const
overrideinherited

Definition at line 53 of file CaloClusterCorrection.cxx.

55 {
56  this->makeCorrection (context(ctx), cluster);
57 
58 #if 0
59  ATH_MSG_DEBUG( " ...... e, et " << cluster->e() << " " << cluster->et() << endmsg);
60  ATH_MSG_DEBUG( " ...... eta, etaBE, etaSmp " << cluster->eta() << " " << cluster->etaBE(2)
61  << " " << cluster->etaSample(CaloSampling::EMB1)
62  << " " << cluster->etaSample(CaloSampling::EMB2)
63  << " " << cluster->etaSample(CaloSampling::EMB3) << endmsg);
64  ATH_MSG_DEBUG( " ...... phi, phiBE, phiSmp " << cluster->phi() << " " << cluster->phiBE(2)
65  << " " << cluster->phiSample(CaloSampling::EMB1)
66  << " " << cluster->phiSample(CaloSampling::EMB2)
67  << " " << cluster->phiSample(CaloSampling::EMB3) << endmsg);
68 #endif
69 
70  return StatusCode::SUCCESS;
71 }

◆ execute() [2/4]

virtual StatusCode CaloClusterProcessor::execute
inherited

Execute on a single cluster.

Parameters
clusterThe cluster to process.
ctxThe event context.

◆ execute() [3/4]

StatusCode CaloClusterProcessor::execute
inherited

Execute on an entire collection of clusters.

Parameters
collectionThe container of clusters.

This will iterate over all the clusters in collection and call execute on each one individually.

Parameters
collectionThe container of clusters.
ctxThe 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.

59 {
60  xAOD::CaloClusterContainer::iterator beg = collection->begin();
61  xAOD::CaloClusterContainer::iterator end = collection->end();
62  for (; beg != end; ++beg) {
63  CHECK( execute (ctx, *beg) );
64  }
65  return StatusCode::SUCCESS;
66 }

◆ execute() [4/4]

StatusCode CaloClusterProcessor::execute
finalinherited

Execute on a single cluster.

Parameters
clusterThe cluster to process. (deprecated)

Definition at line 63 of file CaloClusterProcessor.cxx.

44 {
45  return execute (Gaudi::Hive::currentContext(), cluster);
46 }

◆ initialize()

StatusCode CaloSwGap_v3::initialize ( )
overridevirtual

Standard Gaudi initialize method.

Reimplemented from CaloClusterCorrection.

Definition at line 43 of file CaloSwGap_v3.cxx.

44 {
47  return StatusCode::SUCCESS;
48 }

◆ isGoodPhi()

bool CaloSwGap_v3::isGoodPhi ( float  eta,
float  phi 
) const
virtual

Definition at line 181 of file CaloSwGap_v3.cxx.

181  {
182 
183  // get position of missing TG3 cells
184  const int NBad = 8;
185  int emptyTGEtaPosind[NBad] = {3,12,23,30,35,44,53,60};
186  float emptyTGEtaPos[NBad];
187  int emptyTGEtaNegind[NBad] = {4,13,20,28,37,45,54,61};
188  float emptyTGEtaNeg[NBad];
189 
190  int Nmodules = 64;
191  float modSize = twopi / Nmodules;
192  float offset = modSize/2.;
193 
194  for(int i=0;i<NBad;i++){
195  float shift = (emptyTGEtaPosind[i]-1)*modSize;
196  if(shift>pi) shift-=twopi;
197  emptyTGEtaPos[i] = offset + shift;
198 
199  shift = (emptyTGEtaNegind[i]-1)*modSize;
200  if(shift>pi) shift-=twopi;
201  emptyTGEtaNeg[i] = offset + shift;
202  }
203 
204  // now test whether the current position matches
205  // the bad TG3 cells position
206 
207  if(eta>0){
208  for(int ipos=0;ipos<NBad;ipos++){
209  float min = emptyTGEtaPos[ipos]-0.05;
210  float max = emptyTGEtaPos[ipos]+0.05;
211  if(phi>min && phi<max) {
212  return false;
213  }
214  }
215  }
216  if(eta<0){
217  for(int ipos=0;ipos<NBad;ipos++){
218  float min = emptyTGEtaNeg[ipos]-0.05;
219  float max = emptyTGEtaNeg[ipos]+0.05;
220  if(phi>min && phi<max) {
221  return false;
222  }
223  }
224  }
225 
226  return true;
227 
228 }

◆ makeCorrection()

void CaloClusterCorrectionCommon::makeCorrection ( const Context myctx,
xAOD::CaloCluster cluster 
) const
overridevirtualinherited

Perform the correction.

Called by the tool

Parameters
myctxToolWithConstants context.
clusterThe cluster to correct. It is updated in place.

Called by the tool.

Parameters
myctxToolWithConstants context.
clusterThe cluster to correct. It is updated in place.

Does the following:

  • Checks whether the cluster is present in the given calorimeter and sampling. If not, do nothing.
  • Computes quantities to pass to makeTheCorrection.
  • Calls makeTheCorrection.

Implements CaloClusterCorrection.

Definition at line 436 of file CaloClusterCorrectionCommon.cxx.

438 {
439  int region = m_region (myctx);
440 
441  SG::ReadCondHandle<CaloDetDescrManager> caloMgrHandle{m_caloMgrKey, myctx.ctx()};
442  const CaloDetDescrManager* dd_man = *caloMgrHandle;
443 
444  // This causes a lot of overhead (mostly from the MsgStream ctor).
445  // Comment out when not needed.
446  //MsgStream log( msgSvc(), name() );
447  //log << MSG::DEBUG << "Entering makeCorrection" << endmsg;
448  //log << MSG::DEBUG << "e, eta, phi, etasize, phisize" << " " << cluster->e() << " " << cluster->eta() << " " << cluster->phi()
449  // << " " << cluster->etasize(CaloSampling::EMB2) << " " << cluster->phisize(CaloSampling::EMB2) << endmsg;
450  //log << MSG::DEBUG << "B / E " << cluster->inBarrel() << " " << cluster->inEndcap() << endmsg;
451  //log << MSG::DEBUG << "region " << region << endmsg;
452 
453  float eta;
454  float phi;
456 
457  // Find the proper @f$\eta@f$ and @f$\phi@f$ measures of the cluster.
458  // Also set up the sampling code @c samp.
459  switch (region) {
460  case EMB1:
461  case EMB2:
462  case EME1:
463  case EME2:
464  // Return immediately if we can tell we're in the wrong region.
465  if (barrel_p (region)) {
466  if (!cluster->inBarrel()) return;
467  }
468  else {
469  if (!cluster->inEndcap()) return;
470  }
471 
472  switch (region) {
473  case EMB1:
474  samp = CaloSampling::EMB1;
475  break;
476  case EMB2:
477  samp = CaloSampling::EMB2;
478  break;
479  case EME1:
480  samp = CaloSampling::EME1;
481  break;
482  case EME2:
483  samp = CaloSampling::EME2;
484  break;
485  }
486 
487  eta = cluster->etaSample (samp);
488  phi = cluster->phiSample (samp);
489  break;
490 
491  case COMBINED2:
492  eta = cluster->etaBE (2);
493  phi = cluster->phiBE (2);
494  break;
495 
496  case CLUSTER:
497  eta = cluster->eta();
498  phi = cluster->phi();
499  break;
500 
501  default:
502  abort();
503  }
504 
505  // Give up if one of them is an error flag.
506  if (std::abs (phi) > 900 || std::abs (eta) > 900)
507  return;
508 
509  // Sometimes unnormalized @f$\phi@f$ values still come through.
510  // Make sure this is in the proper range before calling the correction.
512 
513  // Look up the DD element.
514  // Give up if we can't find one.
515  const CaloDetDescrElement* elt = ddhelper(dd_man).find_dd_elt (dd_man,
516  region,
517  cluster,
518  eta, phi);
519  if (!elt)
520  return;
521 
522  // Compute the adjusted eta and phi --- the coordinates shifted
523  // from the actual to the nominal coordinate system.
524  float adj_eta = eta - elt->eta() + elt->eta_raw();
525  float adj_phi = CaloPhiRange::fix (phi - elt->phi() + elt->phi_raw());
526 
527  // Call the actual correction.
528  makeTheCorrection (myctx, cluster, elt, eta, adj_eta, phi, adj_phi, samp);
529 }

◆ makeTheCorrection()

void CaloSwGap_v3::makeTheCorrection ( const Context myctx,
xAOD::CaloCluster cluster,
const CaloDetDescrElement elt,
float  eta,
float  adj_eta,
float  phi,
float  adj_phi,
CaloSampling::CaloSample  samp 
) const
overridevirtual

Virtual function for the correction-specific code.

Parameters
myctxToolWithConstants context.
ctxThe event context.
clusterThe cluster to correct. It is updated in place.
eltThe detector description element corresponding to the cluster location.
etaThe \(\eta\) coordinate of the cluster, in this sampling.
adj_etaThe \(\eta\) adjusted for any shift between the actual and nominal coordinates. (This is shifted back to the nominal coordinate system.)
phiThe \(\phi\) coordinate of the cluster, in this sampling.
adj_phiThe \(\phi\) adjusted for any shift between the actual and nominal coordinates. (This is shifted back to the nominal coordinate system.)
sampThe calorimeter sampling we're examining. This is a sampling code as defined by CaloSampling::CaloSample; i.e., it has both the calorimeter region and sampling encoded.
myctxToolWithConstants context.
clusterThe cluster to correct. It is updated in place.
eltThe detector description element corresponding to the cluster location.
etaThe \(\eta\) coordinate of the cluster, in this sampling.
adj_etaThe \(\eta\) adjusted for any shift between the actual and nominal coordinates. (This is shifted back to the nominal coordinate system.)
phiThe \(\phi\) coordinate of the cluster, in this sampling.
adj_phiThe \(\phi\) adjusted for any shift between the actual and nominal coordinates. (This is shifted back to the nominal coordinate system.)
sampThe calorimeter sampling we're examining. This is a sampling code as defined by CaloSampling::CaloSample; i.e., it has both the calorimeter region and sampling encoded.

Implements CaloClusterCorrectionCommon.

Definition at line 71 of file CaloSwGap_v3.cxx.

79 {
80 #if 0
81  float the_aeta;
82  float the_phi;
83  if (m_use_raw_eta){
84  the_aeta = std::abs (adj_eta);
85  the_phi = adj_phi;
86  }else{
87  the_aeta = std::abs (eta);
88  the_phi = phi;
89  }
90 #endif
91  float the_aeta_boundaries;
92  if (m_use_raw_eta_boundaries(myctx))
93  the_aeta_boundaries = std::abs (adj_eta);
94  else
95  the_aeta_boundaries = std::abs (eta);
96 
97  if (the_aeta_boundaries < m_etamin_crack(myctx) ||
98  the_aeta_boundaries > m_etamax_crack(myctx))
99  {
100  return; // no correction required
101  }
102 
103  // use cluster positions from now on
104  float eta_clus = cluster->eta();
105  float phi_clus = cluster->phi();
106 
108 
109  // Add up the tile scintillator energy in the region around the cluster.
110  double eh_scint = 0;
111  if(cc.isValid())
112  {
114  cc->beginConstCalo(CaloCell_ID::TILE);
116  cc->endConstCalo(CaloCell_ID::TILE);
117 
118  for ( ; f_cell!=l_cell; ++f_cell)
119  {
120  const CaloCell* cell = (*f_cell) ;
121 
122  if (CaloCell_ID::TileGap3 == cell->caloDDE()->getSampling()) {
123  double phic = cell->phi();
124  double etac = cell->eta();
125 
126  float diffeta = etac-eta_clus;
127  float diffphi = phic-phi_clus;
128  if (diffphi < -pi) diffphi += twopi;
129  if (diffphi > pi) diffphi -= twopi;
130 
131  if(fabs(diffeta)<deta && fabs(diffphi)<dphi){
132  eh_scint += cell->e();
133  }
134  }
135  }
136  }
137 
138 
139  // Find the correction weights: depends on phi position
140  float a = 0.;
141  float alpha = 0.;
142  float offset = 0.;
143 
144  if(isGoodPhi(eta_clus,phi_clus)){
145  const int degree = m_degree (myctx);
146  const CxxUtils::Array<2> correctionGoodPhi = m_correctionGoodPhi(myctx);
147  a = interpolate (correctionGoodPhi, fabs(eta_clus), degree, 1);
148  alpha = interpolate (correctionGoodPhi, fabs(eta_clus), degree, 2);
149  offset = interpolate (correctionGoodPhi, fabs(eta_clus), degree, 3);
150  }
151  else{
152  const int degree = m_degree (myctx);
153  const CxxUtils::Array<2> correctionBadPhi = m_correctionBadPhi(myctx);
154  a = interpolate (correctionBadPhi, fabs(eta_clus), degree, 1);
155  alpha = interpolate (correctionBadPhi, fabs(eta_clus), degree, 2);
156  offset = interpolate (correctionBadPhi, fabs(eta_clus), degree, 3);
157  }
158 
159 
160  // The correction is a weighted sum of calorimeter and scintillator energies.
161  float ec = cluster->e();
162 
163  // Sampling energies don't include scintillator contribution.
164  setenergy (cluster, a*(ec + offset));
165  cluster->setE (a*(ec + alpha*eh_scint + offset));
166 }

◆ mergeConstants()

virtual StatusCode CaloUtils::ToolWithConstants< CaloClusterProcessor >::mergeConstants ( CaloRec::ToolConstants out,
const EventContext &  ctx 
) const
overridevirtualinherited

Merge our constants into out with the proper prefix.

Parameters
[out]outObject to receive our constants.
ctxEvent context.

◆ setCaloCellContainerName()

StatusCode CaloSwGap_v3::setCaloCellContainerName ( const std::string &  name)
overridevirtual

Change the name of the CaloCellContainer used by this tool.

Parameters
nameThe new container name.

Implements ISetCaloCellContainerName.

Definition at line 174 of file CaloSwGap_v3.cxx.

176 {
177  return this->setProperty (StringProperty ("cells_name", name));
178 }

◆ setenergy()

void CaloClusterCorrection::setenergy ( xAOD::CaloCluster cluster,
float  energy 
) const
virtualinherited

Definition at line 94 of file CaloClusterCorrection.cxx.

95 {
96  if (cluster->e() == 0) {
97  if (energy != 0)
98  REPORT_MESSAGE (MSG::WARNING)
99  << "Attempt to rescale zero-energy cluster to energy " << energy
100  << " ignored.";
101  return;
102  }
103 
104  float correction = energy/cluster->e();
105  cluster->setE(energy);
106 
107  // also correct individual sampling energies:
108 
109  for (int iSample=CaloSampling::PreSamplerB;
110  iSample < CaloSampling::Unknown;
111  ++iSample)
112  {
113  CaloSampling::CaloSample sampling=static_cast<CaloSampling::CaloSample>(iSample);
114  if (cluster->hasSampling (sampling)) {
115  double e = cluster->eSample(sampling);
116  cluster->setEnergy(sampling,e*correction) ;
117  }
118  }
119 }

◆ 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

Definition at line 74 of file CaloClusterCorrection.cxx.

79 {
80  cluster->setEnergy(sampling, em);
81  cluster->setEta(sampling, etam);
82  cluster->setPhi(sampling, phim);
83 
84  cluster->setEmax(sampling,emax);
85  cluster->setEtamax(sampling,etamax);
86  cluster->setPhimax(sampling,phimax);
87 
88  cluster->setEtasize(sampling, etas);
89  cluster->setPhisize(sampling, phis);
90 }

◆ toolType()

virtual const std::string& CaloUtils::ToolWithConstants< CaloClusterProcessor >::toolType ( ) const
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.

◆ toolVersion()

virtual int CaloUtils::ToolWithConstants< CaloClusterProcessor >::toolVersion ( ) const
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.

◆ writeConstants()

virtual void CaloUtils::ToolWithConstants< CaloClusterProcessor >::writeConstants ( std::ostream &  stream,
const std::string &  name,
const EventContext &  ctx 
) const
virtualinherited

Dump method (for debugging)

Parameters
streamOstream to which to write.
nameName to go in output
ctxEvent context.

Member Data Documentation

◆ CaloSwGap_v3_ele35

list CaloSwGap_v3.CaloSwGap_v3_ele35
Initial value:
= [
# escale wgapSci eoffset
[ 1.437500, 1.1745, 0.9115, 1903.38 ],
[ 1.462500, 1.2119, 1.0519, 1949.33 ],
[ 1.487500, 1.2003, 1.0679, 2402.09 ],
[ 1.512500, 0.9087, 1.0533, 4849.28 ],
[ 1.537500, 0.9067, 0.9731, 2600.90 ]
]

Definition at line 38 of file CaloSwGap_v3.py.

◆ CaloSwGap_v3_ele37

list CaloSwGap_v3.CaloSwGap_v3_ele37
Initial value:
= [
# escale wgapSci eoffset
[ 1.437500, 1.1546, 0.9099, 1771.53 ],
[ 1.462500, 1.1984, 1.0602, 1611.72 ],
[ 1.487500, 1.1767, 1.0181, 2359.71 ],
[ 1.512500, 0.9048, 1.0079, 4507.59 ],
[ 1.537500, 0.9095, 0.9669, 1751.92 ]
]

Definition at line 47 of file CaloSwGap_v3.py.

◆ CaloSwGap_v3_ele55

list CaloSwGap_v3.CaloSwGap_v3_ele55
Initial value:
= [
# escale wgapSci eoffset
[ 1.437500, 1.1498, 0.9545, 2972.83 ],
[ 1.462500, 1.2299, 1.0339, 1624.10 ],
[ 1.487500, 1.0880, 1.0825, 3795.40 ],
[ 1.512500, 0.9159, 1.0438, 4195.66 ],
[ 1.537500, 0.9117, 0.9788, 1253.47 ]
]

Gap energy correction for versions 12.x.x and later (calculated with 11.0.41 runs) SP: since May/06 it is cluster size dependent and includes the scintillator.

Definition at line 29 of file CaloSwGap_v3.py.

◆ CaloSwGap_v3_gam35

list CaloSwGap_v3.CaloSwGap_v3_gam35
Initial value:
= [
# escale wgapSci eoffset
[ 1.437500, 1.1555, 1.1208, 911.61 ],
[ 1.462500, 1.2645, 1.1105, 623.80 ],
[ 1.487500, 1.1801, 1.1676, 3272.09 ],
[ 1.512500, 1.0255, 1.0583, 1261.91 ],
[ 1.537500, 1.0463, 1.0175, 0.00 ]
]

Definition at line 65 of file CaloSwGap_v3.py.

◆ CaloSwGap_v3_gam37

list CaloSwGap_v3.CaloSwGap_v3_gam37
Initial value:
= [
# escale wgapSci eoffset
[ 1.437500, 1.1384, 1.1418, 1355.28 ],
[ 1.462500, 1.2120, 1.1211, 1894.89 ],
[ 1.487500, 1.1407, 1.2279, 2662.74 ],
[ 1.512500, 1.0316, 1.0785, 464.67 ],
[ 1.537500, 1.0368, 1.0009, 104.17 ]
]

Definition at line 74 of file CaloSwGap_v3.py.

◆ CaloSwGap_v3_gam55

list CaloSwGap_v3.CaloSwGap_v3_gam55
Initial value:
= [
# escale wgapSci eoffset
[ 1.437500, 1.1379, 1.1252, 1402.07 ],
[ 1.462500, 1.1900, 1.1362, 531.62 ],
[ 1.487500, 1.1673, 1.0685, 3112.60 ],
[ 1.512500, 1.0159, 1.0766, 677.68 ],
[ 1.537500, 1.0263, 1.0011, 0.00 ]
]

Definition at line 56 of file CaloSwGap_v3.py.

◆ m_caloMgrKey

SG::ReadCondHandleKey<CaloDetDescrManager> CaloClusterCorrection::m_caloMgrKey {this,"CaloDetDescrManager", "CaloDetDescrManager"}
protectedinherited

Definition at line 119 of file CaloClusterCorrection.h.

◆ m_cells_name

SG::ReadHandleKey<CaloCellContainer> CaloSwGap_v3::m_cells_name { this, "cells_name", "AllCalo", "The name of the container in which to look to find tile cells." }
private

Property: The name of the container in which to look to find tile cells.

Definition at line 132 of file CaloSwGap_v3.h.

◆ m_correctionBadPhi

Constant<CxxUtils::Array<2> > CaloSwGap_v3::m_correctionBadPhi { this, "correctionBadPhi", "" }
private

Definition at line 121 of file CaloSwGap_v3.h.

◆ m_correctionGoodPhi

Constant<CxxUtils::Array<2> > CaloSwGap_v3::m_correctionGoodPhi { this, "correctionGoodPhi", "" }
private

Calibration constant: The tabulated array of correction weights, A and alpha.

Definition at line 119 of file CaloSwGap_v3.h.

◆ m_DBHandle

Handle to a ToolConstants conditions object.

Definition at line 527 of file ToolWithConstants.h.

◆ m_ddhelper

CxxUtils::CachedUniquePtr<const CaloClusterCorr::DDHelper> CaloClusterCorrectionCommon::m_ddhelper
privateinherited

Helper for detector description lookup.

Definition at line 165 of file CaloClusterCorrectionCommon.h.

◆ m_degree

Constant<int> CaloSwGap_v3::m_degree { this, "degree", "Interpolation degree." }
private

Calibration constant: The interpolation degree.

Definition at line 114 of file CaloSwGap_v3.h.

◆ m_etamax_crack

Constant<float> CaloSwGap_v3::m_etamax_crack { this, "etamax_crack", "Upper end of range over which this correction is defined." }
private

Definition at line 110 of file CaloSwGap_v3.h.

◆ m_etamin_crack

Constant<float> CaloSwGap_v3::m_etamin_crack { this, "etamin_crack", "Lower end of range over which this correction is defined." }
private

Calibration constants: The range over which this correction is defined.

Definition at line 108 of file CaloSwGap_v3.h.

◆ m_impl

ToolWithConstantsImpl CaloUtils::ToolWithConstants< CaloClusterProcessor >::m_impl
privateinherited

Internal implementation object.

Definition at line 535 of file ToolWithConstants.h.

◆ m_isdummy

Constant<bool> CaloUtils::ToolWithConstants< CaloClusterProcessor >::m_isdummy
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.

◆ m_order

Constant<int> CaloUtils::ToolWithConstants< CaloClusterProcessor >::m_order
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.

◆ m_prefix

StringProperty CaloUtils::ToolWithConstants< CaloClusterProcessor >::m_prefix
privateinherited

Prefix for finding our constants within the ToolConstants object.

Definition at line 531 of file ToolWithConstants.h.

◆ m_region

Constant<int> CaloClusterCorrectionCommon::m_region { this, "region", "Calorimeter region" }
privateinherited

Calibration constant: The calorimeter region for which this correction is intended.

This should be one of the constants above. This affects the meaning of the eta and phi arguments passed to makeTheCorrection, as well as the samp argument.

Definition at line 161 of file CaloClusterCorrectionCommon.h.

◆ m_use_raw_eta

Constant<bool> CaloSwGap_v3::m_use_raw_eta { this, "use_raw_eta", "If true, tabulated values are in terms of raw (local) eta." }
private

Calibration constant: If true, tabulated values are in terms of raw (local) eta.

Definition at line 126 of file CaloSwGap_v3.h.

◆ m_use_raw_eta_boundaries

Constant<bool> CaloSwGap_v3::m_use_raw_eta_boundaries { this, "use_raw_eta_boundaries", "" }
private

Definition at line 128 of file CaloSwGap_v3.h.


The documentation for this class was generated from the following files:
xAOD::CaloCluster_v1::phi
virtual double phi() const
The azimuthal angle ( ) of the particle.
Definition: CaloCluster_v1.cxx:256
CaloClusterCorrectionCommon::ddhelper
const CaloClusterCorr::DDHelper & ddhelper(const CaloDetDescrManager *dd_man) const
Retrieve the detector description helper, creating it if needed.
Definition: CaloClusterCorrectionCommon.cxx:640
GetLCDefs::Unknown
@ Unknown
Definition: GetLCDefs.h:21
xAOD::CaloCluster_v1::setPhisize
bool setPhisize(const CaloSample sampling, const float phiSize)
Set the cluster size in for a given sampling.
Definition: CaloCluster_v1.cxx:624
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
CaloClusterCorr::DDHelper::find_dd_elt
const CaloDetDescrElement * find_dd_elt(const CaloDetDescrManager *dd_mgr, int region, const xAOD::CaloCluster *cluster, float eta, float phi) const
Find the detector descriptor element for a given position, correcting for DD edge bugs.
Definition: CaloClusterCorrectionCommon.cxx:165
constants.EMB1
int EMB1
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:53
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
max
#define max(a, b)
Definition: cfImp.cxx:41
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
CaloSwGap_v3::m_etamax_crack
Constant< float > m_etamax_crack
Definition: CaloSwGap_v3.h:111
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
CxxUtils::Array::size
unsigned int size(unsigned int dim=0) const
Return the size of the array along one dimension.
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloClusterCorr::DDHelper
Definition: CaloClusterCorrectionCommon.cxx:84
CaloSwGap_v3::m_correctionGoodPhi
Constant< CxxUtils::Array< 2 > > m_correctionGoodPhi
Calibration constant: The tabulated array of correction weights, A and alpha.
Definition: CaloSwGap_v3.h:120
CaloClusterCorrectionCommon::m_ddhelper
CxxUtils::CachedUniquePtr< const CaloClusterCorr::DDHelper > m_ddhelper
Helper for detector description lookup.
Definition: CaloClusterCorrectionCommon.h:165
CaloClusterCorrection::setenergy
virtual void setenergy(xAOD::CaloCluster *cluster, float energy) const
Definition: CaloClusterCorrection.cxx:94
xAOD::CaloCluster_v1::et
double et() const
Definition: CaloCluster_v1.h:856
xAOD::CaloCluster_v1::phiBE
float phiBE(const unsigned layer) const
Get the phi in one layer of the EM Calo.
Definition: CaloCluster_v1.cxx:680
CaloClusterCorrectionCommon::EMB2
@ EMB2
Definition: CaloClusterCorrectionCommon.h:105
xAOD::CaloCluster_v1::setEnergy
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.
Definition: CaloCluster_v1.cxx:526
CaloCell_ID_FCS::TileGap3
@ TileGap3
Definition: FastCaloSim_CaloCell_ID.h:36
CaloClusterCorrectionCommon::NREGIONS
@ NREGIONS
Definition: CaloClusterCorrectionCommon.h:120
xAOD::CaloCluster_v1::setEmax
bool setEmax(const CaloSample sampling, const float eMax)
Set the Energy of the cell with the highest energy in a particular sampling.
Definition: CaloCluster_v1.cxx:571
CaloSwGap_v3::m_cells_name
SG::ReadHandleKey< CaloCellContainer > m_cells_name
Property: The name of the container in which to look to find tile cells.
Definition: CaloSwGap_v3.h:133
pi
#define pi
Definition: TileMuonFitter.cxx:65
CaloClusterCorrection::initialize
virtual StatusCode initialize() override
Initialize method.
Definition: CaloClusterCorrection.cxx:47
CaloDetDescrElement::eta_raw
float eta_raw() const
cell eta_raw
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:350
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
CaloSwGap_v3::m_use_raw_eta_boundaries
Constant< bool > m_use_raw_eta_boundaries
Definition: CaloSwGap_v3.h:129
xAOD::CaloCluster_v1::etaSample
float etaSample(const CaloSample sampling) const
Retrieve barycenter in a given sample.
Definition: CaloCluster_v1.cxx:532
tools.zlumi_mc_cf.correction
def correction(mu, runmode, campaign, run=None)
Definition: zlumi_mc_cf.py:4
xAOD::CaloCluster_v1::etaBE
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
Definition: CaloCluster_v1.cxx:644
xAOD::CaloCluster_v1::setE
void setE(flt_t)
Definition: CaloCluster_v1.cxx:375
CaloSwGap_v3::m_correctionBadPhi
Constant< CxxUtils::Array< 2 > > m_correctionBadPhi
Definition: CaloSwGap_v3.h:122
xAOD::CaloCluster_v1::setPhimax
bool setPhimax(const CaloSample sampling, const float phiMax)
Set the phi of the cell with the highest energy in a particular sampling.
Definition: CaloCluster_v1.cxx:597
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
xAOD::CaloCluster_v1::inEndcap
bool inEndcap() const
Returns true if at least one clustered cell in the endcap.
Definition: CaloCluster_v1.h:901
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
constants.EMB2
int EMB2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:54
DataModel_detail::iterator
(Non-const) Iterator class for DataVector/DataList.
Definition: DVLIterator.h:184
xAOD::CaloCluster_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition: CaloCluster_v1.cxx:251
lumiFormat.i
int i
Definition: lumiFormat.py:92
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
createSimpleDistributions.builder
builder
Definition: createSimpleDistributions.py:52
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
CaloSwGap_v3::m_degree
Constant< int > m_degree
Calibration constant: The interpolation degree.
Definition: CaloSwGap_v3.h:115
CaloSwGap_v3::isGoodPhi
virtual bool isGoodPhi(float eta, float phi) const
Definition: CaloSwGap_v3.cxx:181
CxxUtils::Array
Read-only multidimensional array.
Definition: Control/CxxUtils/CxxUtils/Array.h:138
xAOD::CaloCluster_v1::inBarrel
bool inBarrel() const
Returns true if at least one clustered cell in the barrel.
Definition: CaloCluster_v1.h:896
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CaloClusterCorrectionCommon::COMBINED2
@ COMBINED2
Definition: CaloClusterCorrectionCommon.h:114
constants.EME1
int EME1
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:55
CxxUtils::WritableArrayData
Definition: Control/CxxUtils/CxxUtils/Array.h:778
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
CaloCell_Base_ID::TILE
@ TILE
Definition: CaloCell_Base_ID.h:46
xAOD::CaloCluster_v1::phiSample
float phiSample(const CaloSample sampling) const
Retrieve barycenter in a given sample.
Definition: CaloCluster_v1.cxx:547
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
CaloPhiRange::fix
static double fix(double phi)
Definition: CaloPhiRange.cxx:14
min
#define min(a, b)
Definition: cfImp.cxx:40
twopi
constexpr double twopi
Definition: VertexPointEstimator.cxx:16
WriteBchToCool.beg
beg
Definition: WriteBchToCool.py:69
CaloClusterCorrectionCommon::makeTheCorrection
virtual void makeTheCorrection(const Context &myctx, xAOD::CaloCluster *cluster, const CaloDetDescrElement *elt, float eta, float adj_eta, float phi, float adj_phi, CaloSampling::CaloSample samp) const =0
Virtual function for the correction-specific code.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
CaloUtils::ToolWithConstants< CaloClusterProcessor >::context
Context context(const EventContext &ctx) const
Create a Context object.
CaloClusterCorrection::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: CaloClusterCorrection.h:119
REPORT_MESSAGE
#define REPORT_MESSAGE(LVL)
Report a message.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:365
CaloClusterCorrection::makeCorrection
virtual void makeCorrection(const Context &myctx, xAOD::CaloCluster *) const =0
CaloSwGap_v3::m_etamin_crack
Constant< float > m_etamin_crack
Calibration constants: The range over which this correction is defined.
Definition: CaloSwGap_v3.h:109
CaloSwGap_v3::m_use_raw_eta
Constant< bool > m_use_raw_eta
Calibration constant: If true, tabulated values are in terms of raw (local) eta.
Definition: CaloSwGap_v3.h:127
xAOD::CaloCluster_v1::eSample
float eSample(const CaloSample sampling) const
Definition: CaloCluster_v1.cxx:521
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
a
TList * a
Definition: liststreamerinfos.cxx:10
CaloClusterCorrectionCommon::EMB1
@ EMB1
Definition: CaloClusterCorrectionCommon.h:102
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:473
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
CaloCell_ID_FCS::PreSamplerB
@ PreSamplerB
Definition: FastCaloSim_CaloCell_ID.h:19
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CaloClusterCorr::interpolate
float interpolate(const CaloRec::Array< 2 > &a, float x, unsigned int degree, unsigned int ycol=1, const CaloRec::Array< 1 > &regions=CaloRec::Array< 1 >(), int n_points=-1, bool fixZero=false)
Polynomial interpolation in a table.
Definition: interpolate.cxx:75
convertTimingResiduals.offset
offset
Definition: convertTimingResiduals.py:71
xAOD::CaloCluster_v1::setPhi
bool setPhi(const CaloSample sampling, const float phi)
Set in a given sampling. Returns false if the sample isn't part of the cluster.
Definition: CaloCluster_v1.cxx:556
CaloClusterCorrectionCommon::EME1
@ EME1
Definition: CaloClusterCorrectionCommon.h:108
xAOD::CaloCluster_v1::setEtamax
bool setEtamax(const CaloSample sampling, const float etaMax)
Set the eta of the cell with the highest energy in a particular sampling.
Definition: CaloCluster_v1.cxx:584
CaloDetDescrElement::eta
float eta() const
cell eta
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:344
CaloDetDescrElement::phi
float phi() const
cell phi
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:346
xAOD::CaloCluster_v1::setEtasize
bool setEtasize(const CaloSample sampling, const float etaSize)
Set the cluster size in for a given sampling.
Definition: CaloCluster_v1.cxx:611
CaloClusterCorrection
Definition: CaloClusterCorrection.h:55
xAOD::CaloCluster_v1::setEta
bool setEta(const CaloSample sampling, const float eta)
Set in a given sampling. Returns false if the sample isn't part of the cluster.
Definition: CaloCluster_v1.cxx:541
xAOD::CaloCluster_v1::hasSampling
bool hasSampling(const CaloSample s) const
Checks if certain smapling contributes to cluster.
Definition: CaloCluster_v1.h:890
CaloClusterCorrection::execute
StatusCode execute(const EventContext &ctx, xAOD::CaloCluster *cluster) const override
Definition: CaloClusterCorrection.cxx:53
CaloCell_ID_FCS::EMB3
@ EMB3
Definition: FastCaloSim_CaloCell_ID.h:22
xAOD::CaloCluster_v1::e
virtual double e() const
The total energy of the particle.
Definition: CaloCluster_v1.cxx:265
EgEfficiencyCorr_testFixedInput.etas
list etas
Definition: EgEfficiencyCorr_testFixedInput.py:9
python.SystemOfUnits.degree
tuple degree
Definition: SystemOfUnits.py:106
constants.EME2
int EME2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:56
CaloClusterCorrectionCommon::CLUSTER
@ CLUSTER
Definition: CaloClusterCorrectionCommon.h:117
python.handimod.cc
int cc
Definition: handimod.py:523
CaloClusterCorrectionCommon::EME2
@ EME2
Definition: CaloClusterCorrectionCommon.h:111
CaloDetDescrElement::phi_raw
float phi_raw() const
cell phi_raw
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:352
CaloClusterCorrectionCommon::m_region
Constant< int > m_region
Calibration constant: The calorimeter region for which this correction is intended.
Definition: CaloClusterCorrectionCommon.h:162