CaloCellMakerTool to re-scale cell energies.
More...
#include <CaloCellEnergyRescaler.h>
CaloCellMakerTool to re-scale cell energies.
Definition at line 21 of file CaloCellEnergyRescaler.h.
◆ CaloCellEnergyRescaler()
| CaloCellEnergyRescaler::CaloCellEnergyRescaler |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~CaloCellEnergyRescaler()
| CaloCellEnergyRescaler::~CaloCellEnergyRescaler |
( |
| ) |
|
|
default |
◆ initialize()
| StatusCode CaloCellEnergyRescaler::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 18 of file CaloCellEnergyRescaler.cxx.
18 {
20 return StatusCode::SUCCESS;
21}
#define ATH_CHECK
Evaluate an expression and check for errors.
SG::ReadCondHandleKey< AthenaAttributeList > m_eneShiftFldr
◆ process()
| StatusCode CaloCellEnergyRescaler::process |
( |
CaloCellContainer * | theCellContainer, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 25 of file CaloCellEnergyRescaler.cxx.
26 {
27
28 SG::ReadCondHandle<AthenaAttributeList> eneShiftHdl(
m_eneShiftFldr,ctx);
29
30
31
32 const coral::Blob&
blob = (**eneShiftHdl)[
"CaloCondBlob16M"].data<coral::Blob>();
35 return StatusCode::SUCCESS;
36 }
37
39 ATH_MSG_DEBUG(
"Database folder has values for " << corrValues->getNChans() <<
" channels and " << corrValues->getNGains() <<
" gains.");
40
41
45 CaloCell* theCell=(*it);
47 if (hash_id<corrValues->getNChans()) {
48 const float&
scale= corrValues->getData(hash_id);
50 }
51 }
52 return StatusCode::SUCCESS;
53}
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
virtual void scaleEnergy(float scale)
scale energy
static CaloCondBlobFlt * getInstance(coral::Blob &blob)
Returns a pointer to a non-const CaloCondBlobFlt.
IdentifierHash calo_hash() const
cell calo hash
DataModel_detail::iterator< DataVector > iterator
◆ m_eneShiftFldr
Definition at line 36 of file CaloCellEnergyRescaler.h.
36{this,"Folder","/CALO/Ofl/CellEnergyCorr","Key (=foldername) of AttrListCollection"};
The documentation for this class was generated from the following files: