ATLAS Offline Software
Loading...
Searching...
No Matches
LArRTMParamExtractor::Looper Class Reference
Collaboration diagram for LArRTMParamExtractor::Looper:

Public Member Functions

 Looper (std::vector< helperParams > *p, const LArOnOffIdMapping *cabling, const LArWFParamTool *t, MsgStream &ms, std::atomic< unsigned > &cnt)
void operator() (const tbb::blocked_range< size_t > &r) const

Private Attributes

std::vector< helperParams > * m_tbbparams
const LArOnOffIdMappingm_cabling
const LArWFParamToolm_tool
MsgStream & m_msg
std::atomic< unsigned > & m_counter

Detailed Description

Definition at line 115 of file LArRTMParamExtractor.h.

Constructor & Destructor Documentation

◆ Looper()

LArRTMParamExtractor::Looper::Looper ( std::vector< helperParams > * p,
const LArOnOffIdMapping * cabling,
const LArWFParamTool * t,
MsgStream & ms,
std::atomic< unsigned > & cnt )
inline

Definition at line 119 of file LArRTMParamExtractor.h.

120 :
121 m_tbbparams(p), m_cabling(cabling), m_tool(t),
122 m_msg(ms), m_counter(cnt) {};
const LArOnOffIdMapping * m_cabling
std::atomic< unsigned > & m_counter
std::vector< helperParams > * m_tbbparams

Member Function Documentation

◆ operator()()

void LArRTMParamExtractor::Looper::operator() ( const tbb::blocked_range< size_t > & r) const

Definition at line 737 of file LArRTMParamExtractor.cxx.

737 {
738
739 for (size_t i=r.begin();i!=r.end();++i) {
740 helperParams& p=m_tbbparams->at(i);
741 StatusCode sc = m_tool->getLArWaveParams(*(p.caliWave),
742 p.chid,
743 (CaloGain::CaloGain)p.gain,
744 p.wfParams,
745 m_cabling,
746 p.omegaScan,
747 p.resOscill0,
748 p.resOscill1
749 );
750
751 p.success=sc.isSuccess() ;
752
753
754 unsigned cnt=(++m_counter);
755 if (cnt % 100 == 0) {
756 m_msg << MSG::INFO << "Processing wavefrom No " << cnt << endmsg;
757 }
758
759 }
760 }
#define endmsg
static Double_t sc
int r
Definition globals.cxx:22
::StatusCode StatusCode
StatusCode definition for legacy code.

Member Data Documentation

◆ m_cabling

const LArOnOffIdMapping* LArRTMParamExtractor::Looper::m_cabling
private

Definition at line 128 of file LArRTMParamExtractor.h.

◆ m_counter

std::atomic<unsigned>& LArRTMParamExtractor::Looper::m_counter
private

Definition at line 131 of file LArRTMParamExtractor.h.

◆ m_msg

MsgStream& LArRTMParamExtractor::Looper::m_msg
private

Definition at line 130 of file LArRTMParamExtractor.h.

◆ m_tbbparams

std::vector<helperParams>* LArRTMParamExtractor::Looper::m_tbbparams
private

Definition at line 127 of file LArRTMParamExtractor.h.

◆ m_tool

const LArWFParamTool* LArRTMParamExtractor::Looper::m_tool
private

Definition at line 129 of file LArRTMParamExtractor.h.


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