ATLAS Offline Software
Public Member Functions | List of all members
LArPedestalCopy Class Reference

#include <LArPedestalCompleteCnv.h>

Collaboration diagram for LArPedestalCopy:

Public Member Functions

void copyOldtoNew (const LArConditionsSubset< LArPedestalP > *oldPedestal, LArConditionsSubset< LArPedestalP1 > *newPedestal)
 

Detailed Description

Definition at line 37 of file LArPedestalCompleteCnv.h.

Member Function Documentation

◆ copyOldtoNew()

void LArPedestalCopy::copyOldtoNew ( const LArConditionsSubset< LArPedestalP > *  oldPedestal,
LArConditionsSubset< LArPedestalP1 > *  newPedestal 
)

Definition at line 83 of file LArPedestalCompleteCnv.cxx.

85 {
86  newPedestal->assign (*oldPedestal,
87  [] (const LArPedestalP& from,
89  {
90  to.m_Pedestal = from.m_vPedestal.empty() ? 0 : from.m_vPedestal[0];
91  to.m_PedestalRMS = from.m_vPedestalRMS.empty() ? 0 : from.m_vPedestalRMS[0];
92  });
93 }

The documentation for this class was generated from the following files:
LArPedestalP1
Definition: LArPedestalP1.h:12
LArPedestalP::m_vPedestalRMS
std::vector< float > m_vPedestalRMS
Definition: LArPedestalP.h:17
LArPedestalP::m_vPedestal
std::vector< float > m_vPedestal
Definition: LArPedestalP.h:16
LArPedestalP
Definition: LArPedestalP.h:11
CxxUtils::to
CONT to(RANGE &&r)
Definition: ranges.h:39
LArConditionsSubset::assign
void assign(const LArConditionsSubset< U > &other, COPIER copier)
Copy from another subset object.
Definition: LArConditionsSubset.h:339