ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCellRec
src
LArCelldeadOTXTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef LARCELLREC_LArCelldeadOTXTool_H
6
#define LARCELLREC_LArCelldeadOTXTool_H
7
8
9
#include "
CaloInterface/ICaloCellMakerTool.h
"
10
#include "
LArRawEvent/LArRawSCContainer.h
"
11
#include "
StoreGate/ReadHandleKey.h
"
12
#include "
StoreGate/ReadCondHandleKey.h
"
13
#include "
AthenaBaseComps/AthAlgTool.h
"
14
#include "
LArRecConditions/LArBadChannelCont.h
"
15
#include "
LArRecConditions/LArDeadOTXCorrFactors.h
"
16
17
class
CaloCellContainer
;
18
19
class
LArCelldeadOTXTool
:
public
extends<AthAlgTool, ICaloCellMakerTool> {
20
public
:
21
using
base_class::base_class;
22
23
~LArCelldeadOTXTool
() =
default
;
24
virtual
StatusCode
initialize
() override final;
25
virtual StatusCode
finalize
() override final;
26
//Implements the ICaloCellMaker interface
27
virtual StatusCode
process
(
CaloCellContainer
* cellCollection,
const
EventContext& ctx)
const
override final;
28
29
private
:
30
SG
::ReadHandleKey<
LArRawSCContainer
>
m_SCKey
{
this
,
"keySC"
,
"SC_ET"
,
"Key for SuperCells container"
};
31
SG::ReadCondHandleKey<LArDeadOTXCorrFactors>
m_factors
{
this
,
"SCFactors"
,
"LArDeadOTXCorrFactors"
};
32
Gaudi::Property<int>
m_scCut
{
this
,
"SCEneCut"
,70,
"Do not use super-cells with values below this cut"
};
33
Gaudi::Property<bool>
m_testMode
{
this
,
"TestMode"
,
false
};
34
35
mutable
std::unordered_map<int,std::pair<float,int> > m_testMap
ATLAS_THREAD_SAFE
;
//Only used in testMode + mtx-protected
36
mutable
std::mutex
m_mtx
;
37
38
mutable
std::atomic<int>
m_nWarnings
{0};
39
40
};
41
42
#endif
AthAlgTool.h
ICaloCellMakerTool.h
LArBadChannelCont.h
LArDeadOTXCorrFactors.h
LArRawSCContainer.h
ReadCondHandleKey.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CaloCellContainer
Container class for CaloCell.
Definition
CaloCellContainer.h:55
LArCelldeadOTXTool
Definition
LArCelldeadOTXTool.h:19
LArCelldeadOTXTool::m_mtx
std::mutex m_mtx
Definition
LArCelldeadOTXTool.h:36
LArCelldeadOTXTool::m_SCKey
SG::ReadHandleKey< LArRawSCContainer > m_SCKey
Definition
LArCelldeadOTXTool.h:30
LArCelldeadOTXTool::ATLAS_THREAD_SAFE
std::unordered_map< int, std::pair< float, int > > m_testMap ATLAS_THREAD_SAFE
Definition
LArCelldeadOTXTool.h:35
LArCelldeadOTXTool::m_testMode
Gaudi::Property< bool > m_testMode
Definition
LArCelldeadOTXTool.h:33
LArCelldeadOTXTool::finalize
virtual StatusCode finalize() override final
Definition
LArCelldeadOTXTool.cxx:114
LArCelldeadOTXTool::process
virtual StatusCode process(CaloCellContainer *cellCollection, const EventContext &ctx) const override final
Definition
LArCelldeadOTXTool.cxx:24
LArCelldeadOTXTool::initialize
virtual StatusCode initialize() override final
Definition
LArCelldeadOTXTool.cxx:11
LArCelldeadOTXTool::m_nWarnings
std::atomic< int > m_nWarnings
Definition
LArCelldeadOTXTool.h:38
LArCelldeadOTXTool::m_scCut
Gaudi::Property< int > m_scCut
Definition
LArCelldeadOTXTool.h:32
LArCelldeadOTXTool::m_factors
SG::ReadCondHandleKey< LArDeadOTXCorrFactors > m_factors
Definition
LArCelldeadOTXTool.h:31
LArCelldeadOTXTool::~LArCelldeadOTXTool
~LArCelldeadOTXTool()=default
LArRawSCContainer
Container class for LArRawSC.
Definition
LArRawSCContainer.h:17
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
const
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0