21 declareInterface<ICaloCellMakerTool>(
this);
29 return StatusCode::SUCCESS;
33 const EventContext& ctx)
const
38 shape = readHandleEvtShape.
cptr();
44 return StatusCode::FAILURE;
50 return StatusCode::SUCCESS;
56 for(
auto pCell : *theCells)
59 double eta=pCell->eta();
60 double phi=pCell->phi();
67 double fp_round=(
eta > 0.) ? -5e-3 : 5e-3;
73 float nCells=s->nCells();
75 if(nCells!=0.) rho=s->rho()/nCells;
78 pCell->addEnergy(-ue);
80 return StatusCode::SUCCESS;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
Container class for CaloCell.
const T * at(size_type n) const
Access an element, as an rvalue.
size_type size() const noexcept
Returns the number of elements in the collection.
static const HICaloRange & getRange()
const_pointer_type cptr()
Dereference the pointer.
float getAreaEtaPhi(const CaloCell *theCell)
HIEventShapeContainer_v2 HIEventShapeContainer
Define the latest version of the container.
HIEventShape_v2 HIEventShape
Definition of the latest event info version.