ATLAS Offline Software
LArAutoCorrComplete.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
9 
11 
12 // Fill transient object in ATHENA *********************************
13 void LArAutoCorrComplete::set(const HWIdentifier& CellID, int gain,
14  const std::vector<float>& vAutoCorr ) {
15 
16 // std::cout<<" cell id "<< CellID<<" gain "<< gain<<" size "<<
17 // vAutoCorr.size()<<std::endl;
18 
20  t.m_vAutoCorr.reserve(vAutoCorr.size());
21  for (unsigned int i = 0; i < vAutoCorr.size(); ++i) {
22  t.m_vAutoCorr.push_back(vAutoCorr[i]);
23  }
24  setPdata(CellID, t, (unsigned int)gain);
25 
26 }
27 
28 //retrieve AutoCorr *****************************************************
30  const LArAutoCorrP1& t = get(CellID,gain) ;
31  return t.m_vAutoCorr;
32 }
33 
34 
35 
36 
37 
LArConditionsContainer< LArAutoCorrP1 >::setPdata
void setPdata(const HWIdentifier id, const LArAutoCorrP1 &payload, unsigned int gain=0)
put payload in persistent data
CaloCondBlobAlgs_fillNoiseFromASCII.gain
gain
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:110
LArAutoCorrP1
c-struct reproducing the structure of the persistent data
Definition: LArAutoCorrP1.h:25
LArAutoCorrComplete::set
void set(const HWIdentifier &CellID, int gain, const std::vector< float > &vAutoCorr)
Definition: LArAutoCorrComplete.cxx:13
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
HWIdentifier
Definition: HWIdentifier.h:13
LArConditionsContainer
Definition: LArAutoCorrSym.h:14
LArAutoCorrComplete::LArAutoCorrComplete
LArAutoCorrComplete()
Definition: LArAutoCorrComplete.cxx:8
lumiFormat.i
int i
Definition: lumiFormat.py:85
LArConditionsContainer< LArAutoCorrP1 >::get
ConstReference get(const HWIdentifier id, unsigned int gain=0) const
get data with online identifier
LArAutoCorrComplete.h
LArAutoCorrComplete::~LArAutoCorrComplete
virtual ~LArAutoCorrComplete()
Definition: LArAutoCorrComplete.cxx:10
LArAutoCorrComplete::autoCorr
virtual AutoCorrRef_t autoCorr(const HWIdentifier &CellID, int gain) const
Definition: LArAutoCorrComplete.cxx:29
LArVectorProxy
Proxy for accessing a range of float values like a vector.
Definition: LArVectorProxy.h:38