|
ATLAS Offline Software
|
Go to the documentation of this file.
34 NTuple::Array<float>
cov;
35 NTuple::Item<long>
gain, cellIndex;
37 if (
sc!=StatusCode::SUCCESS) {
39 return StatusCode::FAILURE;
42 sc=
m_nt->addItem(
"cellIndex",cellIndex,0,200000);
43 if (
sc!=StatusCode::SUCCESS) {
45 return StatusCode::FAILURE;
49 if (
sc!=StatusCode::SUCCESS) {
51 return StatusCode::FAILURE;
64 larAutoCorr = larComplete;
71 if(larAutoCorr==
nullptr){
72 ATH_MSG_ERROR(
"Unable to retrieve ILArAutoCorr with key " <<
m_objKey.
key() <<
" neither from DetectorStore neither from conditions" );
73 return StatusCode::FAILURE;
76 unsigned cellCounter=0;
77 unsigned cellZeroCounter=0;
86 cellIndex = cellCounter;
91 if (
sc!=StatusCode::SUCCESS) {
93 return StatusCode::FAILURE;
96 }
else { ++cellZeroCounter;}
100 ATH_MSG_INFO(
"LArAutoCorr2Ntuple has finished, " << cellCounter <<
"records written, " << cellZeroCounter <<
" zero length vectors" );
101 return StatusCode::SUCCESS;
virtual StatusCode stop()
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const std::string & key() const
Return the StoreGate ID for the referenced object.
virtual AutoCorrRef_t autoCorr(const HWIdentifier &CellID, int gain) const =0
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
This class defines the interface for accessing AutoCorrelation parameters for each channel @stereotyp...
This class implements the ILArAutoCorr interface.
id_range channel_range() const
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode initialize()
LArAutoCorr2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadCondHandleKey< ILArAutoCorr > m_objKey
StatusCode initialize(bool used=true)
const LArOnlineID_Base * m_onlineId
bool fillFromIdentifier(const HWIdentifier &id)
Proxy for accessing a range of float values like a vector.