ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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  :
122  m_msg(ms), m_counter(cnt) {};

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  }

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:
beamspotman.r
def r
Definition: beamspotman.py:676
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
ReadCellNoiseFromCool.cabling
cabling
Definition: ReadCellNoiseFromCool.py:154
LArWFParamTool::getLArWaveParams
StatusCode getLArWaveParams(const LArCaliWave &larCaliWave, const HWIdentifier chid, const CaloGain::CaloGain gain, LArWFParams &wfParams, const LArOnOffIdMapping *cabling, std::optional< LArCaliWave > &omegaScan, std::optional< LArCaliWave > &resOscill0, std::optional< LArCaliWave > &resOscill1) const
Definition: LArWFParamTool.cxx:197
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
LArRTMParamExtractor::Looper::m_tool
const LArWFParamTool * m_tool
Definition: LArRTMParamExtractor.h:129
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
LArRTMParamExtractor::Looper::m_cabling
const LArOnOffIdMapping * m_cabling
Definition: LArRTMParamExtractor.h:128
lumiFormat.i
int i
Definition: lumiFormat.py:92
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArRTMParamExtractor::Looper::m_tbbparams
std::vector< helperParams > * m_tbbparams
Definition: LArRTMParamExtractor.h:127
CaloGain::CaloGain
CaloGain
Definition: CaloGain.h:11
LArRTMParamExtractor::Looper::m_msg
MsgStream & m_msg
Definition: LArRTMParamExtractor.h:130
trigbs_pickEvents.cnt
cnt
Definition: trigbs_pickEvents.py:71
LArRTMParamExtractor::Looper::m_counter
std::atomic< unsigned > & m_counter
Definition: LArRTMParamExtractor.h:131