8 #include "CaloGeoHelpers/CaloSampling.h"
25 declareInterface<CaloTowerCollectionProcessor>(
this);
35 if ( cellWeights ==
nullptr ) {
36 ATH_MSG_ERROR(
"Tower calibrator needs valid pointer to LCW weight lookup");
37 return StatusCode::FAILURE;
45 for (
auto pClus : *pClusCont ) {
47 for (
auto fCell(pClus->cell_begin()); fCell != pClus->cell_end(); ++fCell ) {
51 double weight(fCell.weight());
53 weight *= accumulateWeight(wght);
57 pClus->eta(),pClus->phi(),(
size_t)fCell->caloDDE()->calo_hash(),
weight,wght.size(),fCell.weight(),
weight/
std::max(fCell.weight(),1
e-08),
62 pClus->eta(),pClus->phi(),(
size_t)fCell->caloDDE()->calo_hash(),
weight,wght.size(),fCell.weight(),
weight/fCell.weight()) );
63 pClus->reweightCell(fCell,
weight);
67 double rawE(pClus->e());
68 double rawEta(pClus->eta());
69 double rawPhi(pClus->phi());
70 double rawM(pClus->m());
74 pClus->setRawEta(rawEta);
82 volatile double pt1(pc1->pt());
83 volatile double pt2(pc2->pt());
89 return StatusCode::SUCCESS;