ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArOnlDbPrep
src
LArDSPThresholdFillInline.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef LARDSPTHRESHOLDSFILLINGINLINE_H
6
#define LARDSPTHRESHOLDSFILLINGINLINE_H
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
#include "GaudiKernel/ToolHandle.h"
10
#include "
CaloIdentifier/CaloCellGroup.h
"
11
#include "
LArRecConditions/LArBadChannelMask.h
"
12
#include "
LArRecConditions/LArBadChannelCont.h
"
13
#include "
LArCabling/LArOnOffIdMapping.h
"
14
#include "
StoreGate/ReadCondHandleKey.h
"
15
#include "
CaloConditions/CaloNoise.h
"
16
#include "
CaloDetDescr/CaloDetDescrManager.h
"
17
18
class
LArOnlineID
;
19
20
class
LArDSPThresholdFillInline
:
public
AthReentrantAlgorithm
{
21
public
:
22
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
23
virtual
~LArDSPThresholdFillInline
();
24
virtual
StatusCode
initialize
()
override
;
25
virtual
StatusCode
execute
(
const
EventContext&)
const override
{
return
StatusCode::SUCCESS;}
26
virtual
StatusCode
stop
()
override
;
27
28
private
:
29
SG::ReadCondHandleKey<LArOnOffIdMapping>
m_cablingKey
{
this
,
"CablingKey"
,
"LArOnOffIdMap"
,
"SG Key of LArOnOffIdMapping object"
};
30
SG::ReadCondHandleKey<CaloDetDescrManager>
m_caloMgrKey
{
this
,
"CaloDetDescrManager"
,
"CaloDetDescrManager"
,
"SG Key for CaloDetDescrManager in the Condition Store"
};
31
32
const
LArOnlineID
*
m_onlineID
=
nullptr
;
33
34
StringProperty
m_nameOfSet
{
this
,
"NameOfSet"
,
""
};
35
StringProperty
m_key
{
this
,
"Key"
,
"DSPThresholds"
};
36
StringProperty
m_mode
{
this
,
"mode"
,
"fixed"
,
37
"Select how to set thresholds. Allowed values are 'fixed','group' and 'noise'"
};
38
39
// For mode 'group'
40
StringArrayProperty
m_cellGroupStr
{
this
,
"ThresholdsPerCellGroup"
, {} };
41
42
// For mode 'fixed'
43
FloatProperty
m_tqThrsh
{
this
,
"tQThreshold"
, 250 };
44
FloatProperty
m_samplesThrsh
{
this
,
"samplesThreshold"
, 1000 };
45
46
// For mode 'Noise'
47
FloatProperty
m_sigmaNoiseSamples
{
this
,
"sigmaNoiseSamples"
, 0 };
48
FloatProperty
m_sigmaNoiseQt
{
this
,
"sigmaNoiseQt"
, 0 };
49
BooleanProperty
m_usePileupNoiseSamples
{
this
,
"usePileupNoiseSamples"
,
false
};
50
BooleanProperty
m_usePileupNoiseQt
{
this
,
"usePileupNoiseQt"
,
false
};
51
52
// For channel masking
53
BooleanProperty
m_maskBadChannels
{
this
,
"MaskBadChannels"
,
false
};
54
FloatProperty
m_maskedtqThrsh
{
this
,
"MaskedtQThreshold"
,
static_cast<
float
>
(0x7fffffff) };
55
FloatProperty
m_maskedsamplesThrsh
{
this
,
"MaskedsamplesThreshold"
,
static_cast<
float
>
(0x7fffffff) };
56
57
BooleanProperty
m_dump
{
this
,
"Dump"
,
false
};
58
StringProperty
m_outFileName
{
this
,
"OutFile"
,
"out.txt"
};
59
BooleanProperty
m_fill
{
this
,
"Fill"
,
true
};
60
61
SG::ReadCondHandleKey<CaloNoise>
m_totalNoiseKey
62
{
this
,
"TotalNoiseKey"
,
"totalNoise"
,
"SG key for total noise"
};
63
SG::ReadCondHandleKey<CaloNoise>
m_elecNoiseKey
64
{
this
,
"ElecNoiseKey"
,
"electronicNoise"
,
"SG key for electronic noise"
};
65
67
LArBadChannelMask
m_bcMask
;
68
SG::ReadCondHandleKey<LArBadChannelCont>
m_bcContKey
{
this
,
"BadChanKey"
,
"LArBadChannel"
,
"SG key for LArBadChan object"
};
69
Gaudi::Property<std::vector<std::string> >
m_problemsToMask
{
this
,
"ProblemsToMask"
,{},
"Bad-Channel categories to mask"
};
70
Gaudi::Property<float>
m_scaleIW
{
this
,
"ScaleIW"
,0.,
"if >0 scale EMEC IW, HEC thresholds with this factor"
};
71
72
73
enum
mode_t
{
74
FIXED
,
GROUP
,
NOISE
75
};
76
77
mode_t
m_workmode
{
FIXED
};
78
79
CaloCellGroupList
m_thrPerCell
;
80
};
81
82
#endif
AthReentrantAlgorithm.h
CaloCellGroup.h
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloNoise.h
LArBadChannelCont.h
LArBadChannelMask.h
LArOnOffIdMapping.h
ReadCondHandleKey.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
CaloCellGroupList
Definition
CaloCellGroup.h:59
LArBadChannelMask
Definition
LArBadChannelMask.h:18
LArDSPThresholdFillInline
Definition
LArDSPThresholdFillInline.h:20
LArDSPThresholdFillInline::m_scaleIW
Gaudi::Property< float > m_scaleIW
Definition
LArDSPThresholdFillInline.h:70
LArDSPThresholdFillInline::~LArDSPThresholdFillInline
virtual ~LArDSPThresholdFillInline()
LArDSPThresholdFillInline::mode_t
mode_t
Definition
LArDSPThresholdFillInline.h:73
LArDSPThresholdFillInline::NOISE
@ NOISE
Definition
LArDSPThresholdFillInline.h:74
LArDSPThresholdFillInline::FIXED
@ FIXED
Definition
LArDSPThresholdFillInline.h:74
LArDSPThresholdFillInline::GROUP
@ GROUP
Definition
LArDSPThresholdFillInline.h:74
LArDSPThresholdFillInline::m_fill
BooleanProperty m_fill
Definition
LArDSPThresholdFillInline.h:59
LArDSPThresholdFillInline::m_maskedsamplesThrsh
FloatProperty m_maskedsamplesThrsh
Definition
LArDSPThresholdFillInline.h:55
LArDSPThresholdFillInline::m_cellGroupStr
StringArrayProperty m_cellGroupStr
Definition
LArDSPThresholdFillInline.h:40
LArDSPThresholdFillInline::m_totalNoiseKey
SG::ReadCondHandleKey< CaloNoise > m_totalNoiseKey
Definition
LArDSPThresholdFillInline.h:62
LArDSPThresholdFillInline::m_elecNoiseKey
SG::ReadCondHandleKey< CaloNoise > m_elecNoiseKey
Definition
LArDSPThresholdFillInline.h:64
LArDSPThresholdFillInline::m_tqThrsh
FloatProperty m_tqThrsh
Definition
LArDSPThresholdFillInline.h:43
LArDSPThresholdFillInline::m_bcMask
LArBadChannelMask m_bcMask
Handle to bad-channel mask.
Definition
LArDSPThresholdFillInline.h:67
LArDSPThresholdFillInline::m_mode
StringProperty m_mode
Definition
LArDSPThresholdFillInline.h:36
LArDSPThresholdFillInline::m_onlineID
const LArOnlineID * m_onlineID
Definition
LArDSPThresholdFillInline.h:32
LArDSPThresholdFillInline::m_problemsToMask
Gaudi::Property< std::vector< std::string > > m_problemsToMask
Definition
LArDSPThresholdFillInline.h:69
LArDSPThresholdFillInline::m_bcContKey
SG::ReadCondHandleKey< LArBadChannelCont > m_bcContKey
Definition
LArDSPThresholdFillInline.h:68
LArDSPThresholdFillInline::m_usePileupNoiseQt
BooleanProperty m_usePileupNoiseQt
Definition
LArDSPThresholdFillInline.h:50
LArDSPThresholdFillInline::execute
virtual StatusCode execute(const EventContext &) const override
Definition
LArDSPThresholdFillInline.h:25
LArDSPThresholdFillInline::m_outFileName
StringProperty m_outFileName
Definition
LArDSPThresholdFillInline.h:58
LArDSPThresholdFillInline::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition
LArDSPThresholdFillInline.h:30
LArDSPThresholdFillInline::stop
virtual StatusCode stop() override
Definition
LArDSPThresholdFillInline.cxx:81
LArDSPThresholdFillInline::m_samplesThrsh
FloatProperty m_samplesThrsh
Definition
LArDSPThresholdFillInline.h:44
LArDSPThresholdFillInline::m_key
StringProperty m_key
Definition
LArDSPThresholdFillInline.h:35
LArDSPThresholdFillInline::initialize
virtual StatusCode initialize() override
Definition
LArDSPThresholdFillInline.cxx:27
LArDSPThresholdFillInline::m_usePileupNoiseSamples
BooleanProperty m_usePileupNoiseSamples
Definition
LArDSPThresholdFillInline.h:49
LArDSPThresholdFillInline::m_nameOfSet
StringProperty m_nameOfSet
Definition
LArDSPThresholdFillInline.h:34
LArDSPThresholdFillInline::m_sigmaNoiseQt
FloatProperty m_sigmaNoiseQt
Definition
LArDSPThresholdFillInline.h:48
LArDSPThresholdFillInline::m_thrPerCell
CaloCellGroupList m_thrPerCell
Definition
LArDSPThresholdFillInline.h:79
LArDSPThresholdFillInline::m_maskedtqThrsh
FloatProperty m_maskedtqThrsh
Definition
LArDSPThresholdFillInline.h:54
LArDSPThresholdFillInline::m_maskBadChannels
BooleanProperty m_maskBadChannels
Definition
LArDSPThresholdFillInline.h:53
LArDSPThresholdFillInline::m_sigmaNoiseSamples
FloatProperty m_sigmaNoiseSamples
Definition
LArDSPThresholdFillInline.h:47
LArDSPThresholdFillInline::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition
LArDSPThresholdFillInline.h:29
LArDSPThresholdFillInline::m_dump
BooleanProperty m_dump
Definition
LArDSPThresholdFillInline.h:57
LArDSPThresholdFillInline::m_workmode
mode_t m_workmode
Definition
LArDSPThresholdFillInline.h:77
LArOnlineID
Definition
LArOnlineID.h:21
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
Generated on
for ATLAS Offline Software by
1.17.0