ATLAS Offline Software
Loading...
Searching...
No Matches
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 *********************************
13void 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
LArVectorProxy AutoCorrRef_t
virtual AutoCorrRef_t autoCorr(const HWIdentifier &CellID, int gain) const
void set(const HWIdentifier &CellID, int gain, const std::vector< float > &vAutoCorr)
c-struct reproducing the structure of the persistent data
void setPdata(const HWIdentifier id, const LArAutoCorrP1 &payload, unsigned int gain=0)
ConstReference get(const HWIdentifier id, unsigned int gain=0) const