Tool to shift cell time values.
More...
#include <CaloCellTimeCorrTool.h>
Tool to shift cell time values.
Definition at line 20 of file CaloCellTimeCorrTool.h.
◆ CaloCellTimeCorrTool()
| CaloCellTimeCorrTool::CaloCellTimeCorrTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~CaloCellTimeCorrTool()
| CaloCellTimeCorrTool::~CaloCellTimeCorrTool |
( |
| ) |
|
|
default |
◆ initialize()
| StatusCode CaloCellTimeCorrTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 18 of file CaloCellTimeCorrTool.cxx.
18 {
20 return StatusCode::SUCCESS;
21}
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ process()
| StatusCode CaloCellTimeCorrTool::process |
( |
CaloCellContainer * | theCellContainer, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 25 of file CaloCellTimeCorrTool.cxx.
26 {
27
28 SG::ReadCondHandle<AthenaAttributeList> timeShiftHdl(
m_timeShiftFldr,ctx);
29
30
31
32
33 const coral::Blob&
blob = (**timeShiftHdl)[
"CaloCondBlob16M"].data<coral::Blob>();
36 return StatusCode::SUCCESS;
37 }
38
40 ATH_MSG_DEBUG(
"Database folder has values for " << corrValues->getNChans() <<
" channels and " << corrValues->getNGains() <<
" gains.");
41
45 CaloCell* theCell=(*it);
47 if (hash_id<corrValues->getNChans()) {
48 const float& shift= corrValues->getData(hash_id);
50 }
51 }
52 return StatusCode::SUCCESS;
53}
void addTime(float delta)
add time
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
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_timeShiftFldr
Definition at line 35 of file CaloCellTimeCorrTool.h.
35{this,"Folder","/CALO/Ofl/CellTimeCorr","Key (=foldername) of AttrListCollection"};
The documentation for this class was generated from the following files: