ATLAS Offline Software
LArCalorimeter
LArRecConditions
LArRecConditions
LArXTalkWeightGlobal.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_LARXTALKWEIGHTGLOBAL_H
6
#define LARRECCONDITIONS_LARXTALKWEIGHTGLOBAL_H
7
8
#include <vector>
9
#include "
LArRecConditions/LArXTalkWeight.h
"
10
11
class
LArXTalkWeightGlobal
{
12
public :
13
enum
XTALK_TYPE
{
STRIP
=0,
STRIP_EC
,
MIDDLEBACK
,
MIDDLEBACK_ECOW
,
MIDDLEBACK_ECIW
,
STRIPMIDDLE
,
STRIPMIDDLE_EC
,
TWOSTRIP
,
TWOSTRIP_EC
,
MIDDLE1
,
MIDDLE2
,
MIDDLE1_EC
,
MIDDLE2_EC
};
14
LArXTalkWeightGlobal
(
const
std::vector<const LArXTalkWeight*>&);
15
inline
float
get_xtalk
(
const
XTALK_TYPE
,
const
int
eta
)
const
;
16
inline
float
get_xtalk
(
const
XTALK_TYPE
,
const
int
region,
const
int
eta
)
const
;
17
private
:
18
std::vector<const LArXTalkWeight*>
m_vector
;
19
};
20
21
float
LArXTalkWeightGlobal::get_xtalk
(
const
XTALK_TYPE
type
,
const
int
eta
)
const
{
22
return
m_vector
.at(
type
)->get_xtalk(
eta
);
23
}
24
float
LArXTalkWeightGlobal::get_xtalk
(
const
XTALK_TYPE
type
,
const
int
region,
const
int
eta
)
const
{
25
return
m_vector
.at(
type
)->get_xtalk(region,
eta
);
26
}
27
28
#include "
AthenaKernel/CLASS_DEF.h
"
29
CLASS_DEF
(
LArXTalkWeightGlobal
, 156852140 , 1)
30
#include "AthenaKernel/CondCont.h"
31
CLASS_DEF
(
CondCont<LArXTalkWeightGlobal>
, 245834740, 1)
32
#endif
LArXTalkWeightGlobal::get_xtalk
float get_xtalk(const XTALK_TYPE, const int eta) const
Definition:
LArXTalkWeightGlobal.h:21
LArXTalkWeightGlobal::STRIPMIDDLE_EC
@ STRIPMIDDLE_EC
Definition:
LArXTalkWeightGlobal.h:13
LArXTalkWeightGlobal::STRIP
@ STRIP
Definition:
LArXTalkWeightGlobal.h:13
LArXTalkWeight.h
LArXTalkWeightGlobal
Definition:
LArXTalkWeightGlobal.h:11
eta
Scalar eta() const
pseudorapidity method
Definition:
AmgMatrixBasePlugin.h:83
LArXTalkWeightGlobal::STRIPMIDDLE
@ STRIPMIDDLE
Definition:
LArXTalkWeightGlobal.h:13
LArXTalkWeightGlobal::MIDDLEBACK_ECIW
@ MIDDLEBACK_ECIW
Definition:
LArXTalkWeightGlobal.h:13
LArXTalkWeightGlobal::MIDDLE2_EC
@ MIDDLE2_EC
Definition:
LArXTalkWeightGlobal.h:13
LArXTalkWeightGlobal::MIDDLE2
@ MIDDLE2
Definition:
LArXTalkWeightGlobal.h:13
LArXTalkWeightGlobal::STRIP_EC
@ STRIP_EC
Definition:
LArXTalkWeightGlobal.h:13
LArXTalkWeightGlobal::MIDDLE1_EC
@ MIDDLE1_EC
Definition:
LArXTalkWeightGlobal.h:13
LArXTalkWeightGlobal::TWOSTRIP_EC
@ TWOSTRIP_EC
Definition:
LArXTalkWeightGlobal.h:13
LArXTalkWeightGlobal::MIDDLEBACK
@ MIDDLEBACK
Definition:
LArXTalkWeightGlobal.h:13
LArXTalkWeightGlobal::MIDDLEBACK_ECOW
@ MIDDLEBACK_ECOW
Definition:
LArXTalkWeightGlobal.h:13
LArXTalkWeightGlobal::m_vector
std::vector< const LArXTalkWeight * > m_vector
Definition:
LArXTalkWeightGlobal.h:18
LArXTalkWeightGlobal::LArXTalkWeightGlobal
LArXTalkWeightGlobal(const std::vector< const LArXTalkWeight * > &)
Definition:
LArXTalkWeightGlobal.cxx:7
CondCont< LArXTalkWeightGlobal >
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition:
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
LArXTalkWeightGlobal::XTALK_TYPE
XTALK_TYPE
Definition:
LArXTalkWeightGlobal.h:13
LArXTalkWeightGlobal::MIDDLE1
@ MIDDLE1
Definition:
LArXTalkWeightGlobal.h:13
CLASS_DEF.h
macros to associate a CLID to a type
LArXTalkWeightGlobal::TWOSTRIP
@ TWOSTRIP
Definition:
LArXTalkWeightGlobal.h:13
Generated on Sun Dec 22 2024 21:13:50 for ATLAS Offline Software by
1.8.18