ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloCnv
CaloJiveXML
src
LArDigitRetriever.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 JIVEXML_LARDIGITRETRIEVER_H
6
#define JIVEXML_LARDIGITRETRIEVER_H
7
8
9
10
#include "
CaloEvent/CaloCellContainer.h
"
11
#include "
CaloIdentifier/CaloCell_ID.h
"
12
#include "
LArRawEvent/LArDigitContainer.h
"
13
#include "
LArCabling/LArOnOffIdMapping.h
"
14
#include "
LArRawConditions/LArADC2MeV.h
"
15
16
#include "
JiveXML/IDataRetriever.h
"
17
#include "
AthenaBaseComps/AthAlgTool.h
"
18
#include "GaudiKernel/ToolHandle.h"
19
#include "
StoreGate/ReadCondHandleKey.h
"
20
#include <string>
21
#include <vector>
22
#include <cstddef>
23
#include <map>
24
class
IToolSvc;
25
26
class
Identifier
;
27
class
CaloCellContainer
;
28
29
namespace
JiveXML
{
30
52
class
LArDigitRetriever
:
public
extends<AthAlgTool,IDataRetriever> {
53
54
public
:
55
56
using
base_class::base_class;
57
59
virtual
StatusCode
retrieve
(ToolHandle<IFormatTool> &FormatTool)
override
;
60
const
DataMap
getLArDigitData
(
const
CaloCellContainer
* cellContainer,
61
const
std::string& datatype,
62
CaloCell_ID::SUBCALO
calotype);
63
65
virtual
std::string
dataTypeName
()
const override
{
return
"LArDigit"
; };
66
68
virtual
StatusCode
initialize
()
override
;
69
70
private
:
71
void
calcEMLayerSub
(
Identifier
&);
72
void
calcHECLayerSub
(
Identifier
&);
73
74
SG::ReadHandleKey<CaloCellContainer>
m_sgKey
{
this
,
"StoreGateKey"
,
"AllCalo"
,
"Name of the CaloCellContainer"
};
75
SG::ReadHandleKey<LArDigitContainer>
m_sgKeyLArDigit_raw
{
this
,
"StoreGateKey"
,
"FREE"
,
"Name of the LArDigitContainer"
};
// can also be: "HIGH" (for raw data)
76
SG::ReadHandleKey<LArDigitContainer>
m_sgKeyLArDigit_esd
{
this
,
"StoreGateKey"
,
"LArDigitContainer_Thinned"
,
"Name of the LArDigitContainer"
};
// used for DPD/ESD
77
SG::ReadCondHandleKey<LArOnOffIdMapping>
m_cablingKey
{
this
,
"CablingKey"
,
"LArOnOffIdMap"
,
"SG Key of LArOnOffIdMapping object"
};
78
79
SG::ReadCondHandleKey<LArADC2MeV>
m_adc2mevKey
80
{
this
,
"ADC2MeVKey"
,
"LArADC2MeV"
,
"SG Key of the LArADC2MeV CDO"
};
81
82
const
CaloCell_ID
*
m_calocell_id
{};
83
84
Gaudi::Property<bool>
m_lar
{
this
,
"RetrieveLAr"
,
true
};
85
Gaudi::Property<bool>
m_hec
{
this
,
"RetrieveHEC"
,
true
};
86
Gaudi::Property<bool>
m_fcal
{
this
,
"RetrieveFCAL"
,
true
};
87
Gaudi::Property<bool>
m_doLArDigit
{
this
,
"DoLArDigit"
,
false
};
88
Gaudi::Property<bool>
m_doHECDigit
{
this
,
"DoHECDigit"
,
false
};
89
Gaudi::Property<bool>
m_doFCalDigit
{
this
,
"DoFCalDigit"
,
false
};
90
Gaudi::Property<bool>
m_cellConditionCut
{
this
,
"CellConditionCut"
,
false
};
91
Gaudi::Property<int>
m_cellEnergyPrec
{
this
,
"CellEnergyPrec"
, 3};
92
Gaudi::Property<int>
m_cellTimePrec
{
this
,
"CellTimePrec"
, 3};
93
Gaudi::Property<double>
m_cellThreshold
{
this
,
"CellThreshold"
, 50.};
94
Gaudi::Property<std::vector<Identifier::value_type>>
m_LArChannelsToIgnoreM5
{
this
,
"LArChannelsToIgnoreM5"
, {}};
95
Gaudi::Property<bool>
m_doMaskLArChannelsM5
{
this
,
"DoMaskLArChannelsM5"
,
false
};
96
97
bool
m_doDigit
{
false
};
98
bool
m_inputdpd
{
false
};
99
DataVect
m_sub
;
100
};
101
}
102
#endif
AthAlgTool.h
CaloCellContainer.h
CaloCell_ID.h
IDataRetriever.h
LArADC2MeV.h
LArDigitContainer.h
LArOnOffIdMapping.h
ReadCondHandleKey.h
CaloCellContainer
Container class for CaloCell.
Definition
CaloCellContainer.h:55
CaloCell_ID
Helper class for offline cell identifiers.
Definition
CaloCell_ID.h:34
CaloCell_ID::SUBCALO
CaloCell_Base_ID::SUBCALO SUBCALO
Definition
CaloCell_ID.h:50
JiveXML::LArDigitRetriever
Retrieves all Tile Calo Cell objects.
Definition
LArDigitRetriever.h:52
JiveXML::LArDigitRetriever::m_cellConditionCut
Gaudi::Property< bool > m_cellConditionCut
Definition
LArDigitRetriever.h:90
JiveXML::LArDigitRetriever::m_lar
Gaudi::Property< bool > m_lar
Definition
LArDigitRetriever.h:84
JiveXML::LArDigitRetriever::m_doLArDigit
Gaudi::Property< bool > m_doLArDigit
Definition
LArDigitRetriever.h:87
JiveXML::LArDigitRetriever::m_cellThreshold
Gaudi::Property< double > m_cellThreshold
Definition
LArDigitRetriever.h:93
JiveXML::LArDigitRetriever::m_adc2mevKey
SG::ReadCondHandleKey< LArADC2MeV > m_adc2mevKey
Definition
LArDigitRetriever.h:80
JiveXML::LArDigitRetriever::m_calocell_id
const CaloCell_ID * m_calocell_id
Definition
LArDigitRetriever.h:82
JiveXML::LArDigitRetriever::initialize
virtual StatusCode initialize() override
Default AthAlgTool methods.
Definition
LArDigitRetriever.cxx:31
JiveXML::LArDigitRetriever::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition
LArDigitRetriever.h:77
JiveXML::LArDigitRetriever::dataTypeName
virtual std::string dataTypeName() const override
Return the name of the data type.
Definition
LArDigitRetriever.h:65
JiveXML::LArDigitRetriever::m_doHECDigit
Gaudi::Property< bool > m_doHECDigit
Definition
LArDigitRetriever.h:88
JiveXML::LArDigitRetriever::calcHECLayerSub
void calcHECLayerSub(Identifier &)
Definition
LArDigitRetriever.cxx:461
JiveXML::LArDigitRetriever::calcEMLayerSub
void calcEMLayerSub(Identifier &)
Definition
LArDigitRetriever.cxx:451
JiveXML::LArDigitRetriever::m_hec
Gaudi::Property< bool > m_hec
Definition
LArDigitRetriever.h:85
JiveXML::LArDigitRetriever::m_fcal
Gaudi::Property< bool > m_fcal
Definition
LArDigitRetriever.h:86
JiveXML::LArDigitRetriever::getLArDigitData
const DataMap getLArDigitData(const CaloCellContainer *cellContainer, const std::string &datatype, CaloCell_ID::SUBCALO calotype)
Retrieve Tile cell location and details.
Definition
LArDigitRetriever.cxx:90
JiveXML::LArDigitRetriever::m_doFCalDigit
Gaudi::Property< bool > m_doFCalDigit
Definition
LArDigitRetriever.h:89
JiveXML::LArDigitRetriever::m_sgKey
SG::ReadHandleKey< CaloCellContainer > m_sgKey
Definition
LArDigitRetriever.h:74
JiveXML::LArDigitRetriever::m_doMaskLArChannelsM5
Gaudi::Property< bool > m_doMaskLArChannelsM5
Definition
LArDigitRetriever.h:95
JiveXML::LArDigitRetriever::retrieve
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool) override
Retrieve all the data.
Definition
LArDigitRetriever.cxx:48
JiveXML::LArDigitRetriever::m_cellTimePrec
Gaudi::Property< int > m_cellTimePrec
Definition
LArDigitRetriever.h:92
JiveXML::LArDigitRetriever::m_LArChannelsToIgnoreM5
Gaudi::Property< std::vector< Identifier::value_type > > m_LArChannelsToIgnoreM5
Definition
LArDigitRetriever.h:94
JiveXML::LArDigitRetriever::m_cellEnergyPrec
Gaudi::Property< int > m_cellEnergyPrec
Definition
LArDigitRetriever.h:91
JiveXML::LArDigitRetriever::m_sgKeyLArDigit_esd
SG::ReadHandleKey< LArDigitContainer > m_sgKeyLArDigit_esd
Definition
LArDigitRetriever.h:76
JiveXML::LArDigitRetriever::m_sgKeyLArDigit_raw
SG::ReadHandleKey< LArDigitContainer > m_sgKeyLArDigit_raw
Definition
LArDigitRetriever.h:75
JiveXML::LArDigitRetriever::m_sub
DataVect m_sub
Definition
LArDigitRetriever.h:99
JiveXML::LArDigitRetriever::m_inputdpd
bool m_inputdpd
Definition
LArDigitRetriever.h:98
JiveXML::LArDigitRetriever::m_doDigit
bool m_doDigit
Definition
LArDigitRetriever.h:97
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
Identifier
Definition
IdentifierFieldParser.cxx:14
JiveXML
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
Definition
BadLArRetriever.cxx:22
JiveXML::DataMap
std::map< std::string, DataVect > DataMap
Definition
DataType.h:59
JiveXML::DataVect
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
Definition
DataType.h:58
Generated on
for ATLAS Offline Software by
1.17.0