ATLAS Offline Software
Loading...
Searching...
No Matches
LArXTalkWeight.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LARRECCONDITIONS_LARXTALKWEIGHT_H
6#define LARRECCONDITIONS_LARXTALKWEIGHT_H
7
8#include <vector>
9
11 public :
12 LArXTalkWeight(const std::vector<float>& vec, const float factor, const std::vector<int>& table);
13 float get_xtalk(const int eta) const;
14 float get_xtalk(const int region, const int eta) const;
15 private:
16 std::vector<float> m_vector;
17 std::vector<int> m_table;
18};
19
20inline float LArXTalkWeight::get_xtalk(const int eta) const {
21 return m_vector.at(eta);
22}
23inline float LArXTalkWeight::get_xtalk(const int region, const int eta) const{
24 if ( m_table.empty() ) return 0.;
25 const int eta2 = eta+m_table.at(region);
26 return m_vector.at(eta2);
27}
28
30CLASS_DEF( LArXTalkWeight , 154494079, 1)
31#include "AthenaKernel/CondCont.h"
33#endif
Scalar eta() const
pseudorapidity method
std::vector< size_t > vec
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Hold mapping of ranges to condition objects.
Definition CondCont.h:889
std::vector< float > m_vector
std::vector< int > m_table
float get_xtalk(const int eta) const
LArXTalkWeight(const std::vector< float > &vec, const float factor, const std::vector< int > &table)