From 664cce46dcab890283993d14c9d91636453149dc Mon Sep 17 00:00:00 2001 From: christos <christos@cern.ch> Date: Fri, 20 Mar 2020 20:37:13 +0000 Subject: [PATCH] auto_ptr to unique_ptr --- Calorimeter/CaloLocalHadCalib/src/GetLCDeadMaterial.cxx | 2 +- Control/AthenaExamples/AthExThinning/src/AthExDecayCnv.cxx | 2 +- .../AthExThinning/src/AthExElephantinoCnv.cxx | 2 +- .../AthenaExamples/AthExThinning/src/AthExFatObjectCnv.cxx | 2 +- Event/EventBookkeeperAthenaPool/src/EventBookkeeperCnv.cxx | 4 ++-- .../src/EventBookkeeperCollectionCnv.cxx | 4 ++-- Event/EventBookkeeperAthenaPool/src/SkimDecisionCnv.cxx | 2 +- .../src/SkimDecisionCollectionCnv.cxx | 2 +- .../LArCnv/LArCondAthenaPool/src/LArAutoCorrCompleteCnv.cxx | 4 ++-- .../LArCnv/LArCondAthenaPool/src/LArAutoCorrMCCnv.cxx | 4 ++-- .../LArCondAthenaPool/src/LArCaliWaveContainerCnv.cxx | 6 +++--- .../LArCnv/LArCondAthenaPool/src/LArDAC2uACompleteCnv.cxx | 2 +- .../LArCnv/LArCondAthenaPool/src/LArDAC2uAMCCnv.cxx | 2 +- .../LArCondAthenaPool/src/LArDSPThresholdsCompleteCnv.cxx | 2 +- .../LArCondAthenaPool/src/LArMphysOverMcalCompleteCnv.cxx | 4 ++-- .../LArCnv/LArCondAthenaPool/src/LArMphysOverMcalMCCnv.cxx | 4 ++-- .../LArCnv/LArCondAthenaPool/src/LArOFCBinCompleteCnv.cxx | 2 +- .../LArCnv/LArCondAthenaPool/src/LArOFCCompleteCnv.cxx | 4 ++-- .../LArCnv/LArCondAthenaPool/src/LArPedestalCompleteCnv.cxx | 6 +++--- .../LArCnv/LArCondAthenaPool/src/LArPedestalMCCnv.cxx | 2 +- .../LArCondAthenaPool/src/LArPhysWaveContainerCnv.cxx | 4 ++-- .../LArCnv/LArCondAthenaPool/src/LArRampCompleteCnv.cxx | 4 ++-- .../LArCnv/LArCondAthenaPool/src/LArRampMCCnv.cxx | 4 ++-- .../LArCnv/LArCondAthenaPool/src/LArShape32MCCnv.cxx | 4 ++-- .../LArCnv/LArCondAthenaPool/src/LArShapeCompleteCnv.cxx | 2 +- .../LArCnv/LArCondAthenaPool/src/LAruA2MeVCompleteCnv.cxx | 2 +- .../LArCnv/LArCondAthenaPool/src/LAruA2MeVMCCnv.cxx | 2 +- 27 files changed, 42 insertions(+), 42 deletions(-) diff --git a/Calorimeter/CaloLocalHadCalib/src/GetLCDeadMaterial.cxx b/Calorimeter/CaloLocalHadCalib/src/GetLCDeadMaterial.cxx index 4d0c8539a2a..d43c728382d 100644 --- a/Calorimeter/CaloLocalHadCalib/src/GetLCDeadMaterial.cxx +++ b/Calorimeter/CaloLocalHadCalib/src/GetLCDeadMaterial.cxx @@ -142,7 +142,7 @@ StatusCode GetLCDeadMaterial::initialize() } // pointer to the chain and data in it - std::auto_ptr<CaloHadDMCoeffData> dmData (new CaloHadDMCoeffData(pChain)); + std::unique_ptr<CaloHadDMCoeffData> dmData (new CaloHadDMCoeffData(pChain)); if(m_ClassificationType == "particleid") { ATH_MSG_INFO( "Particle ID em fraction will be used to classify clusters:" ); m_isSingleParticle = false; diff --git a/Control/AthenaExamples/AthExThinning/src/AthExDecayCnv.cxx b/Control/AthenaExamples/AthExThinning/src/AthExDecayCnv.cxx index d0bc318797c..8a4c56d223f 100644 --- a/Control/AthenaExamples/AthExThinning/src/AthExDecayCnv.cxx +++ b/Control/AthenaExamples/AthExThinning/src/AthExDecayCnv.cxx @@ -67,7 +67,7 @@ AthExDecay* AthExDecayCnv::createTransient() if ( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr<AthExDecay_p1> persObj( poolReadObject<AthExDecay_p1>() ); + std::unique_ptr<AthExDecay_p1> persObj( poolReadObject<AthExDecay_p1>() ); AthExDecayCnv_p1 cnv; transObj = cnv.createTransient( persObj.get(), msg ); diff --git a/Control/AthenaExamples/AthExThinning/src/AthExElephantinoCnv.cxx b/Control/AthenaExamples/AthExThinning/src/AthExElephantinoCnv.cxx index 02f636f1a3c..613fc6ca26c 100644 --- a/Control/AthenaExamples/AthExThinning/src/AthExElephantinoCnv.cxx +++ b/Control/AthenaExamples/AthExThinning/src/AthExElephantinoCnv.cxx @@ -67,7 +67,7 @@ AthExElephantino* AthExElephantinoCnv::createTransient() if ( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr<AthExElephantino_p1> persObj( poolReadObject<AthExElephantino_p1>() ); + std::unique_ptr<AthExElephantino_p1> persObj( poolReadObject<AthExElephantino_p1>() ); AthExElephantinoCnv_p1 cnv; transObj = cnv.createTransient( persObj.get(), msg ); diff --git a/Control/AthenaExamples/AthExThinning/src/AthExFatObjectCnv.cxx b/Control/AthenaExamples/AthExThinning/src/AthExFatObjectCnv.cxx index 1bb7a147a37..23d78ab0139 100644 --- a/Control/AthenaExamples/AthExThinning/src/AthExFatObjectCnv.cxx +++ b/Control/AthenaExamples/AthExThinning/src/AthExFatObjectCnv.cxx @@ -67,7 +67,7 @@ AthExFatObject* AthExFatObjectCnv::createTransient() if ( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr<AthExFatObject_p1> persObj( poolReadObject<AthExFatObject_p1>() ); + std::unique_ptr<AthExFatObject_p1> persObj( poolReadObject<AthExFatObject_p1>() ); AthExFatObjectCnv_p1 cnv; transObj = cnv.createTransient( persObj.get(), msg ); diff --git a/Event/EventBookkeeperAthenaPool/src/EventBookkeeperCnv.cxx b/Event/EventBookkeeperAthenaPool/src/EventBookkeeperCnv.cxx index 11311511609..3d261c8b561 100644 --- a/Event/EventBookkeeperAthenaPool/src/EventBookkeeperCnv.cxx +++ b/Event/EventBookkeeperAthenaPool/src/EventBookkeeperCnv.cxx @@ -23,12 +23,12 @@ EventBookkeeper* EventBookkeeperCnv::createTransient() { static pool::Guid p2_guid("EACBE9F1-84F1-4A51-9303-A39619FE965A"); if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< EventBookkeeper_p1 > col_vect( poolReadObject< EventBookkeeper_p1 >() ); + std::unique_ptr< EventBookkeeper_p1 > col_vect( poolReadObject< EventBookkeeper_p1 >() ); return m_TPConverterP1.createTransient( col_vect.get(), log ); } else if( compareClassGuid(p2_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< EventBookkeeper_p2 > col_vect( poolReadObject< EventBookkeeper_p2 >() ); + std::unique_ptr< EventBookkeeper_p2 > col_vect( poolReadObject< EventBookkeeper_p2 >() ); return m_TPConverter.createTransient( col_vect.get(), log ); } else { diff --git a/Event/EventBookkeeperAthenaPool/src/EventBookkeeperCollectionCnv.cxx b/Event/EventBookkeeperAthenaPool/src/EventBookkeeperCollectionCnv.cxx index 0cbe9fc45b2..1846a5e27c7 100644 --- a/Event/EventBookkeeperAthenaPool/src/EventBookkeeperCollectionCnv.cxx +++ b/Event/EventBookkeeperAthenaPool/src/EventBookkeeperCollectionCnv.cxx @@ -24,12 +24,12 @@ EventBookkeeperCollection* EventBookkeeperCollectionCnv::createTransient() { static pool::Guid p2_guid("4CB34AE0-ECE5-404B-8CB7-B2E20F509DBE"); if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< EventBookkeeperCollection_p1 > col_vect( poolReadObject< EventBookkeeperCollection_p1 >() ); + std::unique_ptr< EventBookkeeperCollection_p1 > col_vect( poolReadObject< EventBookkeeperCollection_p1 >() ); return m_TPConverterP1.createTransient( col_vect.get(), log ); } else if( compareClassGuid(p2_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< EventBookkeeperCollection_p2 > col_vect( poolReadObject< EventBookkeeperCollection_p2 >() ); + std::unique_ptr< EventBookkeeperCollection_p2 > col_vect( poolReadObject< EventBookkeeperCollection_p2 >() ); return m_TPConverter.createTransient( col_vect.get(), log ); } else { diff --git a/Event/EventBookkeeperAthenaPool/src/SkimDecisionCnv.cxx b/Event/EventBookkeeperAthenaPool/src/SkimDecisionCnv.cxx index c7d780d9934..e06c9b06520 100644 --- a/Event/EventBookkeeperAthenaPool/src/SkimDecisionCnv.cxx +++ b/Event/EventBookkeeperAthenaPool/src/SkimDecisionCnv.cxx @@ -23,7 +23,7 @@ SkimDecision* SkimDecisionCnv::createTransient() { static pool::Guid p1_guid("61CEDFF0-46DD-42BD-B43A-12F850D3752E"); if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< SkimDecision_p1 > col_vect( poolReadObject< SkimDecision_p1 >() ); + std::unique_ptr< SkimDecision_p1 > col_vect( poolReadObject< SkimDecision_p1 >() ); return m_TPConverter.createTransient( col_vect.get(), log ); } else { diff --git a/Event/EventBookkeeperAthenaPool/src/SkimDecisionCollectionCnv.cxx b/Event/EventBookkeeperAthenaPool/src/SkimDecisionCollectionCnv.cxx index 0baf9819864..c6fec0d6594 100644 --- a/Event/EventBookkeeperAthenaPool/src/SkimDecisionCollectionCnv.cxx +++ b/Event/EventBookkeeperAthenaPool/src/SkimDecisionCollectionCnv.cxx @@ -23,7 +23,7 @@ SkimDecisionCollection* SkimDecisionCollectionCnv::createTransient() { static pool::Guid p1_guid("5705559E-F062-4F15-A220-78A8542EFBF3"); if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< SkimDecisionCollection_p1 > col_vect( poolReadObject< SkimDecisionCollection_p1 >() ); + std::unique_ptr< SkimDecisionCollection_p1 > col_vect( poolReadObject< SkimDecisionCollection_p1 >() ); return m_TPConverter.createTransient( col_vect.get(), log ); } else { diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArAutoCorrCompleteCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArAutoCorrCompleteCnv.cxx index 9c032a76b9a..c5fa6575866 100755 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArAutoCorrCompleteCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArAutoCorrCompleteCnv.cxx @@ -30,7 +30,7 @@ LArAutoCorrCompleteCnv::createTransient () static pool::Guid p0_guid("4E7E36E9-2121-4327-88C5-8A516D6D6D2A"); if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< LArAutoCorrSubset_p1 > col_vect( poolReadObject< LArAutoCorrSubset_p1 >() ); + std::unique_ptr< LArAutoCorrSubset_p1 > col_vect( poolReadObject< LArAutoCorrSubset_p1 >() ); MsgStream log(msgSvc(), "LArAutoCorrCompleteCnv" ); //log << MSG::INFO << "Reading LArAutoCorrSubset_p1" << endmsg; return TPconverter.createTransient( col_vect.get(), log ); @@ -41,7 +41,7 @@ LArAutoCorrCompleteCnv::createTransient () MsgStream log(msgSvc(), "LArAutoCorrCompleteCnv" ); log << MSG::DEBUG << "Reading LArAutoCorrSubset (original)" << endmsg; - std::auto_ptr< LArConditionsSubset<LArAutoCorrP> > subset ( poolReadObject< LArConditionsSubset<LArAutoCorrP> >() ); + std::unique_ptr< LArConditionsSubset<LArAutoCorrP> > subset ( poolReadObject< LArConditionsSubset<LArAutoCorrP> >() ); // Here we must convert from LArAutoCorrP to LArAutoCorrP1 log << MSG::DEBUG << "subset ptr " << subset.get() << endmsg; diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArAutoCorrMCCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArAutoCorrMCCnv.cxx index 8e41ecb2663..055aceb7586 100755 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArAutoCorrMCCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArAutoCorrMCCnv.cxx @@ -31,7 +31,7 @@ LArAutoCorrMCCnv::createTransient () static pool::Guid p0_guid("4E7E36E9-2121-4327-88C5-8A516D6D6D2A"); if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< LArAutoCorrSubset_p1 > col_vect( poolReadObject< LArAutoCorrSubset_p1 >() ); + std::unique_ptr< LArAutoCorrSubset_p1 > col_vect( poolReadObject< LArAutoCorrSubset_p1 >() ); MsgStream log(msgSvc(), "LArAutoCorrMCCnv" ); //log << MSG::INFO << "Reading LArAutoCorrSubset_p1" << endmsg; return TPconverter.createTransient( col_vect.get(), log ); @@ -42,7 +42,7 @@ LArAutoCorrMCCnv::createTransient () MsgStream log(msgSvc(), "LArAutoCorrMCCnv" ); log << MSG::INFO << "Reading LArAutoCorrSubset (original)" << endmsg; - std::auto_ptr< LArConditionsSubset<LArAutoCorrP> > subset ( poolReadObject< LArConditionsSubset<LArAutoCorrP> >() ); + std::unique_ptr< LArConditionsSubset<LArAutoCorrP> > subset ( poolReadObject< LArConditionsSubset<LArAutoCorrP> >() ); // Here we must convert from LArAutoCorrP to LArAutoCorrP1 log << MSG::INFO << "subset ptr " << subset.get() << endmsg; diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArCaliWaveContainerCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArCaliWaveContainerCnv.cxx index b4fe90b2196..aa4ddcb8f68 100644 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArCaliWaveContainerCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArCaliWaveContainerCnv.cxx @@ -37,7 +37,7 @@ LArCaliWaveContainerCnv::createTransient () if( compareClassGuid(p2_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< LArCaliWaveSubset_p2 > col_vect( poolReadObject< LArCaliWaveSubset_p2 >() ); + std::unique_ptr< LArCaliWaveSubset_p2 > col_vect( poolReadObject< LArCaliWaveSubset_p2 >() ); log << MSG::DEBUG << "READING LArCaliWaveSubset_p2" << endmsg; LArCaliWaveTransType* transObj = TPconverter2.createTransient( col_vect.get(), log ); log << MSG::DEBUG << "READING LArCaliWaveSubset_p2 Success !" << endmsg; @@ -45,7 +45,7 @@ LArCaliWaveContainerCnv::createTransient () } else if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< LArCaliWaveSubset_p1 > col_vect( poolReadObject< LArCaliWaveSubset_p1 >() ); + std::unique_ptr< LArCaliWaveSubset_p1 > col_vect( poolReadObject< LArCaliWaveSubset_p1 >() ); log << MSG::DEBUG << "READING LArCaliWaveSubset_p1" << endmsg; LArCaliWaveTransType* transObj = TPconverter1.createTransient( col_vect.get(), log ); log << MSG::DEBUG << "READING LArCaliWaveSubset_p1 Success !" << endmsg; @@ -55,7 +55,7 @@ LArCaliWaveContainerCnv::createTransient () MsgStream log(msgSvc(), "LArCaliWaveContainerCnv" ); log << MSG::DEBUG << " READING LArCaliWaveSubset (before TP split)" << endmsg; - std::auto_ptr< LArConditionsSubset<LArCaliWaveVec> > subset ( poolReadObject< LArConditionsSubset<LArCaliWaveVec> >() ); + std::unique_ptr< LArConditionsSubset<LArCaliWaveVec> > subset ( poolReadObject< LArConditionsSubset<LArCaliWaveVec> >() ); return (createTransient(subset.get())); } diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArDAC2uACompleteCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArDAC2uACompleteCnv.cxx index b91936cbc88..34c0064cfa9 100755 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArDAC2uACompleteCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArDAC2uACompleteCnv.cxx @@ -23,7 +23,7 @@ LArDAC2uACompleteCnv::createTransient () // subset from before TP separation MsgStream log(msgSvc(), "LArDAC2uACompleteCnv" ); log << MSG::DEBUG << "Reading LArDAC2uASubset (original)" << endmsg; - std::auto_ptr< LArConditionsSubset<LArDAC2uAP> > subset ( poolReadObject< LArConditionsSubset<LArDAC2uAP> >() ); + std::unique_ptr< LArConditionsSubset<LArDAC2uAP> > subset ( poolReadObject< LArConditionsSubset<LArDAC2uAP> >() ); return (createTransient(subset.get())); } diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArDAC2uAMCCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArDAC2uAMCCnv.cxx index 896dd895ebe..e9ce20f6f68 100755 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArDAC2uAMCCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArDAC2uAMCCnv.cxx @@ -23,7 +23,7 @@ LArDAC2uAMCCnv::createTransient () // subset from before TP separation MsgStream log(msgSvc(), "LArDAC2uAMCCnv" ); log << MSG::DEBUG << "Reading LArDAC2uASubset (original)" << endmsg; - std::auto_ptr< LArConditionsSubset<LArDAC2uAP> > subset ( poolReadObject< LArConditionsSubset<LArDAC2uAP> >() ); + std::unique_ptr< LArConditionsSubset<LArDAC2uAP> > subset ( poolReadObject< LArConditionsSubset<LArDAC2uAP> >() ); return (createTransient(subset.get())); } diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArDSPThresholdsCompleteCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArDSPThresholdsCompleteCnv.cxx index 54b05c150e8..e0b60833a6d 100644 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArDSPThresholdsCompleteCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArDSPThresholdsCompleteCnv.cxx @@ -27,7 +27,7 @@ LArDSPThresholdsCompleteCnv::createTransient () { static pool::Guid p0_guid("09607438-09CC-4E40-A1E2-23F0B021DF3D"); if( compareClassGuid(p0_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< LArDSPThresholdsSubset_p1 > col_vect( poolReadObject< LArDSPThresholdsSubset_p1 >() ); + std::unique_ptr< LArDSPThresholdsSubset_p1 > col_vect( poolReadObject< LArDSPThresholdsSubset_p1 >() ); MsgStream log(msgSvc(), "LArDSPThresholdsCompleteCnv" ); //log << MSG::INFO << "Reading LArDSPThresholdsSubset_p1" << endmsg; return TPconverter.createTransient( col_vect.get(), log ); diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArMphysOverMcalCompleteCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArMphysOverMcalCompleteCnv.cxx index 8f38b2a7f30..fe4ca0be90f 100644 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArMphysOverMcalCompleteCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArMphysOverMcalCompleteCnv.cxx @@ -26,7 +26,7 @@ LArMphysOverMcalCompleteCnv::createTransient () return p; else if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< LArMphysOverMcalSubset_p1 > col_vect( poolReadObject< LArMphysOverMcalSubset_p1 >() ); + std::unique_ptr< LArMphysOverMcalSubset_p1 > col_vect( poolReadObject< LArMphysOverMcalSubset_p1 >() ); MsgStream log(msgSvc(), "LArMphysOverMcalCompleteCnv" ); //log << MSG::INFO << "Reading LArMphysOverMcalSubset_p1" << endmsg; return TPconverter.createTransient( col_vect.get(), log ); @@ -37,7 +37,7 @@ LArMphysOverMcalCompleteCnv::createTransient () MsgStream log(msgSvc(), "LArMphysOverMcalCompleteCnv" ); log << MSG::DEBUG << "Reading LArMphysOverMcalSubset (original)" << endmsg; - std::auto_ptr< LArConditionsSubset<LArMphysOverMcalP> > subset ( poolReadObject< LArConditionsSubset<LArMphysOverMcalP> >() ); + std::unique_ptr< LArConditionsSubset<LArMphysOverMcalP> > subset ( poolReadObject< LArConditionsSubset<LArMphysOverMcalP> >() ); // Here we must convert from LArMphysOverMcalP to LArMphysOverMcalP1 log << MSG::DEBUG << "subset ptr " << subset.get() << endmsg; diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArMphysOverMcalMCCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArMphysOverMcalMCCnv.cxx index 1320e39c176..802411d7786 100644 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArMphysOverMcalMCCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArMphysOverMcalMCCnv.cxx @@ -26,7 +26,7 @@ LArMphysOverMcalMCCnv::createTransient () return p; else if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< LArMphysOverMcalSubset_p1 > col_vect( poolReadObject< LArMphysOverMcalSubset_p1 >() ); + std::unique_ptr< LArMphysOverMcalSubset_p1 > col_vect( poolReadObject< LArMphysOverMcalSubset_p1 >() ); MsgStream log(msgSvc(), "LArMphysOverMcalMCCnv" ); //log << MSG::INFO << "Reading LArMphysOverMcalSubset_p1" << endmsg; return TPconverter.createTransient( col_vect.get(), log ); @@ -36,7 +36,7 @@ LArMphysOverMcalMCCnv::createTransient () MsgStream log(msgSvc(), "LArMphysOverMcalMCCnv" ); log << MSG::DEBUG << "Reading LArMphysOverMcalSubset (original)" << endmsg; - std::auto_ptr< LArConditionsSubset<LArMphysOverMcalP> > subset ( poolReadObject< LArConditionsSubset<LArMphysOverMcalP> >() ); + std::unique_ptr< LArConditionsSubset<LArMphysOverMcalP> > subset ( poolReadObject< LArConditionsSubset<LArMphysOverMcalP> >() ); // Here we must convert from LArMphysOverMcalP to LArMphysOverMcalP1 return (createTransient(subset.get())); diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArOFCBinCompleteCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArOFCBinCompleteCnv.cxx index fa7c6f4103d..094bcea2dfd 100644 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArOFCBinCompleteCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArOFCBinCompleteCnv.cxx @@ -22,7 +22,7 @@ LArOFCBinTransType* LArOFCBinCompleteCnv::createTransient () { static pool::Guid p1_guid("E7E2E993-4AF2-4782-9B8B-7668434CBAEC"); if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr<LArOFCBinPersType> col_vect( poolReadObject<LArOFCBinPersType>() ); + std::unique_ptr<LArOFCBinPersType> col_vect( poolReadObject<LArOFCBinPersType>() ); MsgStream log(msgSvc(), "LArOFCBinCompleteCnv" ); //log << MSG::INFO << "Reading LArOFCBinSubset_p1" << endmsg; return m_TPconverter.createTransient( col_vect.get(), log ); diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArOFCCompleteCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArOFCCompleteCnv.cxx index bb66fd3ab6b..beda74b599d 100755 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArOFCCompleteCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArOFCCompleteCnv.cxx @@ -30,7 +30,7 @@ LArOFCCompleteCnv::createTransient () { if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< LArOFCSubset_p1 > col_vect( poolReadObject< LArOFCSubset_p1 >() ); + std::unique_ptr< LArOFCSubset_p1 > col_vect( poolReadObject< LArOFCSubset_p1 >() ); MsgStream log(msgSvc(), "LArOFCCompleteCnv" ); //log << MSG::INFO << "Reading LArOFCSubset_p1" << endmsg; return TPconverter.createTransient( col_vect.get(), log ); @@ -41,7 +41,7 @@ LArOFCCompleteCnv::createTransient () { MsgStream log(msgSvc(), "LArOFCCompleteCnv" ); log << MSG::DEBUG << "Reading LArOFCSubset (original)" << endmsg; - std::auto_ptr< LArConditionsSubset<LArOFCP> > subset ( poolReadObject< LArConditionsSubset<LArOFCP> >() ); + std::unique_ptr< LArConditionsSubset<LArOFCP> > subset ( poolReadObject< LArConditionsSubset<LArOFCP> >() ); // Here we must convert from LArOFCP to LArOFCP1 log << MSG::DEBUG << "subset ptr " << subset.get() << endmsg; diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArPedestalCompleteCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArPedestalCompleteCnv.cxx index 3dc53da3899..99c3145c8df 100755 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArPedestalCompleteCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArPedestalCompleteCnv.cxx @@ -32,14 +32,14 @@ LArPedestalCompleteCnv::createTransient () if (compareClassGuid(p2_guid)) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< LArPedestalSubset_p2 > col_vect( poolReadObject< LArPedestalSubset_p2 >() ); + std::unique_ptr< LArPedestalSubset_p2 > col_vect( poolReadObject< LArPedestalSubset_p2 >() ); MsgStream log(msgSvc(), "LArPedestalCompleteCnv" ); //log << MSG::INFO << "Reading LArPedestalSubset_p1" << endmsg; return TPconverter2.createTransient( col_vect.get(), log ); } else if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< LArPedestalSubset_p1 > col_vect( poolReadObject< LArPedestalSubset_p1 >() ); + std::unique_ptr< LArPedestalSubset_p1 > col_vect( poolReadObject< LArPedestalSubset_p1 >() ); MsgStream log(msgSvc(), "LArPedestalCompleteCnv" ); //log << MSG::INFO << "Reading LArPedestalSubset_p1" << endmsg; return TPconverter1.createTransient( col_vect.get(), log ); @@ -50,7 +50,7 @@ LArPedestalCompleteCnv::createTransient () MsgStream log(msgSvc(), "LArPedestalCompleteCnv" ); log << MSG::DEBUG << "Reading LArPedestalSubset (original)" << endmsg; - std::auto_ptr< LArConditionsSubset<LArPedestalP> > subset ( poolReadObject< LArConditionsSubset<LArPedestalP> >() ); + std::unique_ptr< LArConditionsSubset<LArPedestalP> > subset ( poolReadObject< LArConditionsSubset<LArPedestalP> >() ); // Here we must convert from LArPedestalP to LArPedestalP1 log << MSG::DEBUG << "subset ptr " << subset.get() << endmsg; diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArPedestalMCCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArPedestalMCCnv.cxx index 55e8969f0c2..dadac30ee43 100644 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArPedestalMCCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArPedestalMCCnv.cxx @@ -31,7 +31,7 @@ LArPedestalMCCnv::createTransient () static pool::Guid p0_guid("C147EFC8-5283-4DAE-AD20-0E2CB79E54B6"); if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< LArPedestalMC_p1 > col_vect( poolReadObject< LArPedestalMC_p1 >() ); + std::unique_ptr< LArPedestalMC_p1 > col_vect( poolReadObject< LArPedestalMC_p1 >() ); MsgStream log(msgSvc(), "LArPedestalMCCnv" ); //log << MSG::INFO << "Reading LArPedestalMC_p1" << endmsg; return TPconverter.createTransient( col_vect.get(), log ); diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArPhysWaveContainerCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArPhysWaveContainerCnv.cxx index c1a00bcc9a2..2e8afdc5473 100644 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArPhysWaveContainerCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArPhysWaveContainerCnv.cxx @@ -33,7 +33,7 @@ LArPhysWaveContainerCnv::createTransient () static pool::Guid p0_guid("C1108D27-6D30-41E8-892D-2AB127B868C9"); if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< LArPhysWaveSubset_p1 > col_vect( poolReadObject< LArPhysWaveSubset_p1 >() ); + std::unique_ptr< LArPhysWaveSubset_p1 > col_vect( poolReadObject< LArPhysWaveSubset_p1 >() ); log << MSG::DEBUG << "READING LArPhysWaveSubset_p1" << endmsg; LArPhysWaveTransType* transObj = TPconverter1.createTransient( col_vect.get(), log ); log << MSG::DEBUG << "READING LArPhysWaveSubset_p1 Success !" << endmsg; @@ -43,7 +43,7 @@ LArPhysWaveContainerCnv::createTransient () MsgStream log(msgSvc(), "LArPhysWaveContainerCnv" ); log << MSG::DEBUG << " READING LArPhysWaveSubset (before TP split)" << endmsg; - std::auto_ptr< LArConditionsSubset<LArPhysWave> > subset ( poolReadObject< LArConditionsSubset<LArPhysWave> >() ); + std::unique_ptr< LArConditionsSubset<LArPhysWave> > subset ( poolReadObject< LArConditionsSubset<LArPhysWave> >() ); return (createTransient(subset.get())); } diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArRampCompleteCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArRampCompleteCnv.cxx index d80ed57fc6f..235cf0b1eb9 100755 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArRampCompleteCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArRampCompleteCnv.cxx @@ -30,7 +30,7 @@ LArRampCompleteCnv::createTransient () static pool::Guid p0_guid("4019776D-D528-4401-9CBD-7956C4B00607"); if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< LArRampSubset_p1 > col_vect( poolReadObject< LArRampSubset_p1 >() ); + std::unique_ptr< LArRampSubset_p1 > col_vect( poolReadObject< LArRampSubset_p1 >() ); MsgStream log(msgSvc(), "LArRampCompleteCnv" ); //log << MSG::INFO << "Reading LArRampSubset_p1" << endmsg; return TPconverter.createTransient( col_vect.get(), log ); @@ -41,7 +41,7 @@ LArRampCompleteCnv::createTransient () MsgStream log(msgSvc(), "LArRampCompleteCnv" ); log << MSG::DEBUG << "Reading LArRampSubset (original)" << endmsg; - std::auto_ptr< LArConditionsSubset<LArRampP> > subset ( poolReadObject< LArConditionsSubset<LArRampP> >() ); + std::unique_ptr< LArConditionsSubset<LArRampP> > subset ( poolReadObject< LArConditionsSubset<LArRampP> >() ); // Here we must convert from LArRampP to LArRampP1 log << MSG::DEBUG << "subset ptr " << subset.get() << endmsg; diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArRampMCCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArRampMCCnv.cxx index c0ac3ae5964..32ef0728b14 100755 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArRampMCCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArRampMCCnv.cxx @@ -31,7 +31,7 @@ LArRampMCCnv::createTransient () static pool::Guid p0_guid("4019776D-D528-4401-9CBD-7956C4B00607"); if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< LArRampSubset_p1 > col_vect( poolReadObject< LArRampSubset_p1 >() ); + std::unique_ptr< LArRampSubset_p1 > col_vect( poolReadObject< LArRampSubset_p1 >() ); MsgStream log(msgSvc(), "LArRampMCCnv" ); //log << MSG::INFO << "Reading LArRampSubset_p1" << endmsg; return TPconverter.createTransient( col_vect.get(), log ); @@ -42,7 +42,7 @@ LArRampMCCnv::createTransient () MsgStream log(msgSvc(), "LArRampMCCnv" ); log << MSG::INFO << "Reading LArRampSubset (original)" << endmsg; - std::auto_ptr< LArConditionsSubset<LArRampP> > subset ( poolReadObject< LArConditionsSubset<LArRampP> >() ); + std::unique_ptr< LArConditionsSubset<LArRampP> > subset ( poolReadObject< LArConditionsSubset<LArRampP> >() ); // Here we must convert from LArRampP to LArRampP1 log << MSG::INFO << "subset ptr " << subset.get() << endmsg; diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArShape32MCCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArShape32MCCnv.cxx index 943de18e0f0..570f2b0e593 100755 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArShape32MCCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArShape32MCCnv.cxx @@ -53,7 +53,7 @@ LArShape32MCCnv::createTransient () MsgStream log(msgSvc(), "LArShape32MCCnv" ); if( compareClassGuid(p1_guid) ) { // using auto_ptr ensures deletion of the persistent object - std::auto_ptr< LArShapeSubset_p1 > col_vect( poolReadObject< LArShapeSubset_p1 >() ); + std::unique_ptr< LArShapeSubset_p1 > col_vect( poolReadObject< LArShapeSubset_p1 >() ); // log << MSG::DEBUG << "Reading LArShapeSubset_p1" << endmsg; return TPconverter.createTransient( col_vect.get(), log ); @@ -62,7 +62,7 @@ LArShape32MCCnv::createTransient () // subset from before TP separation log << MSG::DEBUG << "Reading LArShapeSubset (original)" << endmsg; - std::auto_ptr< LArConditionsSubset<LArShapeP> > subset ( poolReadObject< LArConditionsSubset<LArShapeP> >() ); + std::unique_ptr< LArConditionsSubset<LArShapeP> > subset ( poolReadObject< LArConditionsSubset<LArShapeP> >() ); // Here we must convert from LArShapeP to LArShapeP1 log << MSG::VERBOSE << "subset ptr " << subset.get() << endmsg; diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArShapeCompleteCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArShapeCompleteCnv.cxx index 5e5af769e53..42e63138863 100755 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArShapeCompleteCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LArShapeCompleteCnv.cxx @@ -51,7 +51,7 @@ LArShapeCompleteCnv::createTransient () MsgStream log(msgSvc(), "LArShapeCompleteCnv" ); if( compareClassGuid(p2_guid) ) { - std::auto_ptr< LArShapeSubset_p2 > col_vect( poolReadObject< LArShapeSubset_p2 >() ); + std::unique_ptr< LArShapeSubset_p2 > col_vect( poolReadObject< LArShapeSubset_p2 >() ); log << MSG::DEBUG << "Reading LArShapeSubset_p1" << endmsg; return TPconverter2.createTransient( col_vect.get(), log ); } diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LAruA2MeVCompleteCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LAruA2MeVCompleteCnv.cxx index fa9d1b5bd2a..f916a5b0c53 100755 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LAruA2MeVCompleteCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LAruA2MeVCompleteCnv.cxx @@ -23,7 +23,7 @@ LAruA2MeVCompleteCnv::createTransient () // subset from before TP separation MsgStream log(msgSvc(), "LAruA2MeVCompleteCnv" ); log << MSG::DEBUG << "Reading LAruA2MeVSubset (original)" << endmsg; - std::auto_ptr< LArConditionsSubset<LAruA2MeVP> > subset ( poolReadObject< LArConditionsSubset<LAruA2MeVP> >() ); + std::unique_ptr< LArConditionsSubset<LAruA2MeVP> > subset ( poolReadObject< LArConditionsSubset<LAruA2MeVP> >() ); return (createTransient(subset.get())); } diff --git a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LAruA2MeVMCCnv.cxx b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LAruA2MeVMCCnv.cxx index c319d9ed343..33f42d4d2d3 100755 --- a/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LAruA2MeVMCCnv.cxx +++ b/LArCalorimeter/LArCnv/LArCondAthenaPool/src/LAruA2MeVMCCnv.cxx @@ -23,7 +23,7 @@ LAruA2MeVMCCnv::createTransient () // subset from before TP separation MsgStream log(msgSvc(), "LAruA2MeVMCCnv" ); log << MSG::DEBUG << "Reading LAruA2MeVSubset (original)" << endmsg; - std::auto_ptr< LArConditionsSubset<LAruA2MeVP> > subset ( poolReadObject< LArConditionsSubset<LAruA2MeVP> >() ); + std::unique_ptr< LArConditionsSubset<LAruA2MeVP> > subset ( poolReadObject< LArConditionsSubset<LAruA2MeVP> >() ); return (createTransient(subset.get())); } -- GitLab