ATLAS Offline Software
Public Member Functions | List of all members
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 }

The documentation for this class was generated from the following files:
LArShapeP::m_vShape
std::vector< double > m_vShape
Definition: LArShapeP.h:20
LArShapeP1
c-struct reproducing the structure of the persistent data
Definition: LArShapeP1.h:16
CxxUtils::to
CONT to(RANGE &&r)
Definition: ranges.h:32
LArShapeP::m_vShapeDer
std::vector< double > m_vShapeDer
Definition: LArShapeP.h:22
LArShapeP
c-struct reproducing the structure of the persistent data
Definition: LArShapeP.h:16
LArConditionsSubset::assign
void assign(const LArConditionsSubset< U > &other, COPIER copier)
Copy from another subset object.
Definition: LArConditionsSubset.h:339
fitman.k
k
Definition: fitman.py:528