|
ATLAS Offline Software
|
Go to the documentation of this file.
85 return StatusCode::SUCCESS;
90 if(wkey.
empty())
return StatusCode::SUCCESS;
92 if(
wh.isValid())
return StatusCode::SUCCESS;
93 std::map<std::string, const CondAttrListCollection *> listMap;
94 for(
auto rkey : rkeys) {
95 if(rkey.get().empty())
continue;
100 listMap[rkey.get().key()] = *rh;
102 if (listMap.empty())
return StatusCode::SUCCESS;
103 if(!
obj)
obj = std::make_unique<T>();
104 obj->makeTransient(listMap);
106 ATH_MSG_DEBUG(
"recorded new " << wkey.
key() <<
" with range " <<
wh.getRange() <<
" into Conditions Store");
107 return StatusCode::SUCCESS;
121 if(!writeHandleDerRunPars.isValid()) {
124 ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readHandleDerRunPars.
fullKey() <<
" = " << readHandleDerRunPars->
size());
125 writeHandleDerRunPars.addDependency(readHandleDerRunPars);
126 auto writeCdoDerRunPars = std::make_unique<L1CaloDerivedRunParsContainer>();
127 std::map<std::string, const CondAttrListCollection *> listMap;
129 writeCdoDerRunPars->makeTransient(listMap);
130 if (timingRegime.empty()) {
131 timingRegime = std::cbegin(*writeCdoDerRunPars)->timingRegime();
133 CHECK(writeHandleDerRunPars.record(std::move(writeCdoDerRunPars)));
144 if(!writeHandlePprChanStrategy.isValid()) {
147 ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readHandlePprChanStrategy.
fullKey() <<
" = " << readHandlePprChanStrategy->
size());
148 writeHandlePprChanStrategy.addDependency(readHandlePprChanStrategy);
149 auto writeCdoPprChanStrategy = std::make_unique<L1CaloPprChanStrategyContainer>();
150 std::map<std::string, const CondAttrListCollection *> listMap;
152 writeCdoPprChanStrategy->makeTransient(listMap);
154 for(
const auto&
it: *writeCdoPprChanStrategy){
155 if (
it.timingRegime() == timingRegime){
160 CHECK(writeHandlePprChanStrategy.record(std::move(writeCdoPprChanStrategy)));
179 if (timingRegime ==
"") timingRegime=
"Physics";
182 if (timingRegime ==
"Physics") {
184 }
else if (timingRegime ==
"Calib1") {
186 }
else if (timingRegime ==
"Calib2") {
189 ATH_MSG_ERROR(
"Bad timing regime " << timingRegime <<
"; must be one of Physics, Calib1, Calib2" );
190 return StatusCode::FAILURE;
198 std::map <L1CaloPprConditionsContainerRun2::eCoolFolders, std::string> folderKeyMap;
202 auto obj = std::make_unique<L1CaloPprConditionsContainerRun2>(folderKeyMap);
207 return StatusCode::FAILURE;
213 auto obj = std::make_unique<L1CaloPprConditionsContainerRun2>(folderKeyMap);
220 return StatusCode::SUCCESS;
SG::WriteCondHandleKey< L1CaloPprChanCalibContainer > m_pprChanCalibContainer
SG::WriteCondHandleKey< L1CaloPprChanDefaultsContainer > m_pprChanDefaultsContainer
SG::WriteCondHandleKey< L1CaloReadoutConfigContainerJSON > m_readoutConfigContainerJSON
const DataObjID & fullKey() const
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
SG::ReadCondHandleKey< CondAttrListCollection > m_readoutConfigJSON
SG::ReadCondHandleKey< CondAttrListCollection > m_pprChanStrategy
SG::WriteCondHandleKey< L1CaloPprDisabledChannelContainerRun2 > m_pprDisabledChannelContainer
const std::string & key() const
Return the StoreGate ID for the referenced object.
bool empty() const
Test if the key is blank.
Gaudi::Property< std::string > m_strategy
SG::WriteCondHandleKey< L1CaloPprChanStrategyContainer > m_pprChanStrategyContainer
Gaudi::Property< bool > m_useCalib1Regime
SG::WriteCondHandleKey< L1CaloPpmDeadChannelsContainer > m_ppmDeadChannelsContainer
SG::WriteCondHandleKey< L1CaloPprConditionsContainerRun2 > m_pprConditionsContainer
Gaudi::Property< std::string > m_timingRegime
SG::WriteCondHandleKey< L1CaloDerivedRunParsContainer > m_derivedRunParsContainer
Gaudi::Property< bool > m_useCalib2Regime
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadCondHandleKey< CondAttrListCollection > m_derivedRunPars
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_calib2Keys
virtual StatusCode execute() override
#define CHECK(...)
Evaluate an expression and check for errors.
SG::ReadCondHandleKey< CondAttrListCollection > m_runParameters
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_physicsKeys
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_calib1Keys
StatusCode updateCond(SG::WriteCondHandleKey< T > &wkey, std::vector< std::reference_wrapper< const SG::ReadCondHandleKey< CondAttrListCollection >>> rkeys, std::unique_ptr< T > obj=nullptr)
Gaudi::Property< bool > m_usePhysicsRegime
L1CaloCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteCondHandleKey< L1CaloDisabledTowersContainer > m_disabledTowersContainer
StatusCode initialize(bool used=true)
SG::ReadCondHandleKey< CondAttrListCollection > m_readoutConfig
size_type size() const
number of Chan/AttributeList pairs
SG::WriteCondHandleKey< L1CaloReadoutConfigContainer > m_readoutConfigContainer
SG::ReadCondHandleKey< CondAttrListCollection > m_ppmFineTimeRefs
SG::ReadCondHandleKey< CondAttrListCollection > m_disabledTowers
SG::WriteCondHandleKey< L1CaloRunParametersContainer > m_runParametersContainer
virtual StatusCode initialize() override
SG::ReadCondHandleKey< CondAttrListCollection > m_pprChanDefaults
SG::ReadCondHandleKey< CondAttrListCollection > m_ppmDeadChannels
SG::WriteCondHandleKey< L1CaloPpmFineTimeRefsContainer > m_ppmFineTimeRefsContainer