|
ATLAS Offline Software
|
Go to the documentation of this file.
29 if (
sc!=StatusCode::SUCCESS) {
31 return StatusCode::FAILURE;
37 if (
sc!=StatusCode::SUCCESS) {
43 if (
sc!=StatusCode::SUCCESS) {
49 if (
sc!=StatusCode::SUCCESS) {
55 if (
sc!=StatusCode::SUCCESS) {
61 if (
sc!=StatusCode::SUCCESS) {
67 if (
sc!=StatusCode::SUCCESS) {
73 if (
sc!=StatusCode::SUCCESS) {
79 if (
sc!=StatusCode::SUCCESS) {
85 if (
sc!=StatusCode::SUCCESS) {
95 return StatusCode::SUCCESS;
105 if (
m_contKey.
key().empty())
return StatusCode::SUCCESS;
107 const EventContext& ctx = Gaudi::Hive::currentContext();
113 if (!Hdl.isValid()) {
115 return StatusCode::SUCCESS;
118 accuDigitContainer = Hdl.cptr();
121 if (accuDigitContainer) {
123 if(accuDigitContainer->
empty()) {
125 return StatusCode::SUCCESS;
135 unsigned int trueMaxSample =
digit->nsample();
140 ATH_MSG_WARNING(
"The number of samples in data is larger than the one specified by JO: " << trueMaxSample <<
" > " <<
m_Nsamples <<
" --> only " <<
m_Nsamples <<
" will be available in the ntuple " );
148 const std::vector<uint64_t> sampleSquare =
digit->sampleSquare();
149 const std::vector<uint64_t> sampleSum =
digit->sampleSum();
150 for(
unsigned i=0;
i<trueMaxSample;
i++) {
154 std::vector<float>
cov;
156 for(
unsigned i=0;
i<trueMaxSample-1;
i++) {
162 if (
sc!=StatusCode::SUCCESS) {
168 return StatusCode::SUCCESS;
NTuple::Array< long > m_sumsq
virtual StatusCode execute() override final
LArAccumulatedDigits2Ntuple(const std::string &name, ISvcLocator *pSvcLocator)
NTuple::Array< float > m_covr
Container class for LArAccumulatedDigit.
Gaudi::Property< int > m_normalize
NTuple::Item< long > m_EventNum
NTuple::Item< float > m_rms
const std::string & key() const
Return the StoreGate ID for the referenced object.
virtual StatusCode initialize() override final
NTuple::Item< long > m_IEvent
Data class for ADC samples and autocorr preprocessed by the DSP.
NTuple::Item< float > m_mean
::StatusCode StatusCode
StatusCode definition for legacy code.
NTuple::Item< long > m_Ntrigger
NTuple::Item< long > m_ntNsamples
SG::ReadHandleKey< LArAccumulatedDigitContainer > m_contKey
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Gaudi::Property< unsigned int > m_Nsamples
~LArAccumulatedDigits2Ntuple()
bool fillFromIdentifier(const HWIdentifier &id)
NTuple::Array< long > m_sum
#define ATH_MSG_WARNING(x)
size_type size() const noexcept
Returns the number of elements in the collection.
bool empty() const noexcept
Returns true if the collection is empty.