ATLAS Offline Software
Loading...
Searching...
No Matches
LArCalorimeter
LArRecConditions
src
LArXTalkWeight.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArRecConditions/LArXTalkWeight.h
"
6
#include <cmath>
7
8
LArXTalkWeight::LArXTalkWeight
(
const
std::vector<float>&
vec
,
const
float
factor,
const
std::vector<int>& table){
9
m_vector
.insert(
m_vector
.end(),
vec
.begin(),
vec
.end() );
10
bool
factor1;
11
if
( std::abs(factor-1.0) < 0.001 ) factor1=
true
;
12
else
factor1=
false
;
13
14
if
( !factor1 )
for
(
auto
& el :
m_vector
) el*=factor;
15
m_table
.insert(
m_table
.end(), table.begin(), table.end() );
16
}
vec
std::vector< size_t > vec
Definition
CombinationsGeneratorTest.cxx:9
LArXTalkWeight.h
LArXTalkWeight::m_vector
std::vector< float > m_vector
Definition
LArXTalkWeight.h:16
LArXTalkWeight::m_table
std::vector< int > m_table
Definition
LArXTalkWeight.h:17
LArXTalkWeight::LArXTalkWeight
LArXTalkWeight(const std::vector< float > &vec, const float factor, const std::vector< int > &table)
Definition
LArXTalkWeight.cxx:8
Generated on
for ATLAS Offline Software by
1.14.0