ATLAS Offline Software
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
}
LArXTalkWeight.h
LArXTalkWeight::m_vector
std::vector< float > m_vector
Definition:
LArXTalkWeight.h:16
vec
std::vector< size_t > vec
Definition:
CombinationsGeneratorTest.cxx:12
plotIsoValidation.el
el
Definition:
plotIsoValidation.py:197
python.ext.table_printer.table
list table
Definition:
table_printer.py:81
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 Thu Jul 4 2024 21:20:50 for ATLAS Offline Software by
1.8.18