22float toFloat (
double x)
24 if (std::abs (
x) > std::numeric_limits<float>::max()) {
26 return std::numeric_limits<float>::max();
28 return - std::numeric_limits<float>::max();
38 MsgStream log(msgSvc(),
"LArShapeCompleteCnv" );
48 static const pool::Guid p2_guid(
"5139AF4A-5947-421A-A775-B2D1134145C7");
49 static const pool::Guid p1_guid(
"95B61750-4C45-412D-B4D4-9758E9DB40D1");
50 static const pool::Guid p0_guid(
"055CF2F5-08D0-4EAA-B154-8CE5B1A599E7");
52 MsgStream log(msgSvc(),
"LArShapeCompleteCnv" );
55 log << MSG::DEBUG <<
"Reading LArShapeSubset_p1" <<
endmsg;
56 return TPconverter2.createTransientConst( col_vect.get(), log );
59 log << MSG::ERROR <<
"Sorry if you really want to read LArShapeSubset_p1 you will need to provide a legacy converter" <<
endmsg;
62 log << MSG::ERROR <<
"Sorry if you really want to read the very old LArShapeSubset you will need to provide a legacy converter" <<
endmsg;
64 throw std::runtime_error(
"Unsupported persistent version of LArShapeCompleteCnv");
88 newShape->
assign (*oldShape,
92 to.m_vShape.assign (from.
m_vShape.begin(),
96 to.m_vShapeDer.resize (nShapeDers);
97 for (
size_t k = 0; k < nShapeDers; k++)
static const LArCaliWaveSubsetCnv_p2 TPconverter2
static const LArCaliWaveSubsetCnv_p1 TPconverter1
AthenaPool converter LArShapeComplete.
LArConditionsSubset< LArShapeP2 > LArShapeTransType2
LArShapeSubset_p2 LArShapePersType2
template class for use for I/O of conditions data
void assign(const LArConditionsSubset< U > &other, COPIER copier)
Copy from another subset object.
virtual LArShapeTransType2 * createTransient()
method to be implemented by the developer.
virtual LArShapePersType2 * createPersistent(LArShapeTransType2 *transObj)
method to be implemented by the developer.
void copyOldtoNew(const LArConditionsSubset< LArShapeP > *oldShape, LArConditionsSubset< LArShapeP1 > *newShape)
c-struct reproducing the structure of the persistent data
c-struct reproducing the structure of the persistent data
std::vector< double > m_vShapeDer
std::vector< double > m_vShape
persistent class container of LArConditionsSubset for LArShape data.
virtual bool compareClassGuid(const Guid &clid) const