ATLAS Offline Software
Loading...
Searching...
No Matches
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
6#include <cmath>
7
8LArXTalkWeight::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}
std::vector< size_t > vec
std::vector< float > m_vector
std::vector< int > m_table
LArXTalkWeight(const std::vector< float > &vec, const float factor, const std::vector< int > &table)