Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
24 m_onlineHelper(nullptr)
45 return StatusCode::FAILURE;
57 return StatusCode::FAILURE;
67 return StatusCode::SUCCESS;
80 return StatusCode::FAILURE;
83 auto larAutoCorrComplete = std::make_unique<LArAutoCorrComplete>();
86 ATH_CHECK( larAutoCorrComplete->initialize() );
107 unsigned int nsamples_AC = (1+((
int)(sqrt(1+8*
AutoCorr.size()))))/2;
109 std::vector<float>
cov;
110 unsigned int ntot = nsamples_AC*(nsamples_AC+1) / 2;
114 for (
unsigned i=0;
i<nsamples_AC;
i++) {
115 for (
unsigned j=
i;j<nsamples_AC;j++,
k++) {
123 int index = i1*nsamples_AC - i1*(i1+1)/2 -(i1+1) + i2;
126 AC =
AC*rmsSampl[
i]*rmsSampl[j];
131 larAutoCorrComplete->set(chid,
gain,
cov);
134 ATH_MSG_INFO (
"Gain " <<
gain <<
": " << nDone <<
" channels done, " << nSkipped <<
" channels skipped (no Elec Noise AC in input)" );
143 return StatusCode::SUCCESS;
LArAutoCorrAlgToDB(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const std::string & key() const
Return the StoreGate ID for the referenced object.
id_iterator channel_end() const
const std::vector< double > autoCorrTotal(const IdentifierHash &hid, int gain, float Nminbias) const
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
Default, invalid implementation of ClassID_traits.
const std::vector< double > samplRMS(const IdentifierHash &hid, int gain, float Nminbias) const
Helper for the Liquid Argon Calorimeter cell identifiers.
StatusCode initialize(bool used=true)
const LArOnlineID_Base * m_onlineHelper
SG::ReadCondHandleKey< LArAutoCorrTotal > m_autocorrKey
std::string m_groupingType
id_iterator channel_begin() const
Returns an iterator pointing to a channel identifier collection.