ATLAS Offline Software
Loading...
Searching...
No Matches
LArShapeCopy Class Reference

#include <LArShapeCompleteCnv.h>

Collaboration diagram for LArShapeCopy:

Public Member Functions

void copyOldtoNew (const LArConditionsSubset< LArShapeP > *oldShape, LArConditionsSubset< LArShapeP1 > *newShape)

Detailed Description

Definition at line 39 of file LArShapeCompleteCnv.h.

Member Function Documentation

◆ copyOldtoNew()

void LArShapeCopy::copyOldtoNew ( const LArConditionsSubset< LArShapeP > * oldShape,
LArConditionsSubset< LArShapeP1 > * newShape )

Definition at line 85 of file LArShapeCompleteCnv.cxx.

87{
88 newShape->assign (*oldShape,
89 [] (const LArShapeP& from,
90 LArShapeP1& to)
91 {
92 to.m_vShape.assign (from.m_vShape.begin(),
93 from.m_vShape.end());
94
95 unsigned int nShapeDers = from.m_vShapeDer.size();
96 to.m_vShapeDer.resize (nShapeDers);
97 for (size_t k = 0; k < nShapeDers; k++)
98 to.m_vShapeDer[k] = toFloat (from.m_vShapeDer[k]);
99 });
100}
void assign(const LArConditionsSubset< U > &other, COPIER copier)
Copy from another subset object.
std::vector< double > m_vShapeDer
Definition LArShapeP.h:22
std::vector< double > m_vShape
Definition LArShapeP.h:21
CONT to(RANGE &&r)
Definition ranges.h:39

The documentation for this class was generated from the following files: