Skip to content
Snippets Groups Projects
Commit f7a1acaa authored by Walter Lampl's avatar Walter Lampl
Browse files

Implement review comments (copyright, ...) + fix flake8 complain

parent 89dfb6ed
No related branches found
No related tags found
Loading
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
from ByteStreamCnvSvc.ByteStreamConfig import ByteStreamReadCfg
from LArByteStream.LArByteStreamConf import LArRawDataReadingAlg
......
/*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
#include "LArRawDataReadingAlg.h"
#include "LArIdentifier/LArOnlineID.h"
#include "ByteStreamCnvSvcBase/IROBDataProviderSvc.h"
......@@ -42,10 +46,6 @@ LArRawDataReadingAlg::LArRawDataReadingAlg(const std::string& name, ISvcLocator*
return StatusCode::SUCCESS;
}
StatusCode LArRawDataReadingAlg::finalize() {
return StatusCode::SUCCESS;
}
StatusCode LArRawDataReadingAlg::execute(const EventContext& ctx) const {
LArRawChannelContainer* rawChannels=nullptr;
LArDigitContainer* digits=nullptr;
......@@ -55,21 +55,21 @@ StatusCode LArRawDataReadingAlg::execute(const EventContext& ctx) const {
SG::WriteHandle<LArRawChannelContainer> rawChannelsHdl(m_rawChannelKey,ctx);
ATH_CHECK(rawChannelsHdl.record(std::make_unique<LArRawChannelContainer>()));
rawChannels=rawChannelsHdl.ptr();
rawChannels->reserve(182468);
rawChannels->reserve(182468); //Total number of LAr readout channels
}
if (m_doDigits) {
SG::WriteHandle<LArDigitContainer> digitsHdl(m_digitKey,ctx);
ATH_CHECK(digitsHdl.record(std::make_unique<LArDigitContainer>()));
digits=digitsHdl.ptr();
digits->reserve(1000);
digits->reserve(1000); //Approximate number of Digits above threshold
}
if (m_doFebHeaders) {
SG::WriteHandle<LArFebHeaderContainer> febHeadersHdl(m_febHeaderKey,ctx);
ATH_CHECK(febHeadersHdl.record(std::make_unique<LArFebHeaderContainer>()));
febHeaders=febHeadersHdl.ptr();
febHeaders->reserve(1524);
febHeaders->reserve(1524); //Total number of LAr Front End Boards
}
//Get full events and filter out LAr ROBs
......
......@@ -26,7 +26,6 @@ class LArRawDataReadingAlg : public AthReentrantAlgorithm {
StatusCode initialize() override;
StatusCode execute(const EventContext& ctx) const override;
StatusCode finalize() override;
private:
//Event output:
......
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
from LArROD.LArRODConf import LArRawChannelBuilderAlg
from LArRecUtils.LArADC2MeVCondAlgConfig import LArADC2MeVCondAlgCfg
from LArConfiguration.LArElecCalibDBConfig import LArElecCalibDbCfg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment