ATLAS Offline Software
Loading...
Searching...
No Matches
LArDAC2uAMCCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
10
11#include "LArDAC2uAMCCnv.h"
13
16{
17 static const pool::Guid p0_guid("00BB980F-D174-4AD7-A5C7-DC66BA71C4D2");
18 // first try the single-float converter
20 if (p)
21 return p;
22 else if( compareClassGuid(p0_guid) ) {
23 // subset from before TP separation
24 MsgStream log(msgSvc(), "LArDAC2uAMCCnv" );
25 log << MSG::DEBUG << "Reading LArDAC2uASubset (original)" << endmsg;
26 std::unique_ptr< LArConditionsSubset<LArDAC2uAP> > subset ( poolReadObject< LArConditionsSubset<LArDAC2uAP> >() );
27 return (createTransient(subset.get()));
28
29 }
30 throw std::runtime_error("Unsupported persistent version of LArDAC2uAMC");
31}
32
35{
36 MsgStream log(msgSvc(), "LArDAC2uAMCCnv" );
37 log << MSG::DEBUG << "LArDAC2uAMCCnv::createTransient orig " << orig << endmsg;
38
40
41 // Copy LArDAC2uAP subset to LArSingleFloat Subset
43 copier.update(orig, result);
44
45 return (result);
46}
47
#define endmsg
AthenaPool converter LArDAC2uAMC.
template class for use for I/O of conditions data
virtual LArConditionsSubset< LArSingleFloatP > * createTransient()
Throws and exception if object is not a LArConditionsSubset<LArSingleFloatP>
LArConditionsSubset< LArSingleFloatP > * createTransientSingleFloat()
void update(const LArConditionsSubset< P > *old, LArConditionsSubset< LArSingleFloatP > *newObj)
virtual bool compareClassGuid(const Guid &clid) const