ATLAS Offline Software
CaloLArRetriever.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 JIVEXML_CALOLARRETRIEVER_H
6 #define JIVEXML_CALOLARRETRIEVER_H
7 
8 
13 
14 #include "JiveXML/IDataRetriever.h"
16 #include "GaudiKernel/ToolHandle.h"
18 #include "JiveXML/DataType.h" //DataMap
19 
20 #include <string>
21 #include <vector>
22 
23 class IToolSvc;
24 
25 class Identifier;
26 class CaloCellContainer;
27 
28 namespace JiveXML{
29 
50  class CaloLArRetriever : virtual public IDataRetriever,
51  public AthAlgTool {
52 
53  public:
54 
56  CaloLArRetriever(const std::string& type,const std::string& name,const IInterface* parent);
57 
59  virtual StatusCode retrieve(ToolHandle<IFormatTool> &FormatTool);
60  const DataMap getLArData(const CaloCellContainer* cellContainer);
61 
63  virtual std::string dataTypeName() const { return "LAr"; };
64 
65 
68 
69  private:
71  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
72 
74  { this, "ADC2MeVKey", "LArADC2MeV", "SG Key of the LArADC2MeV CDO" };
75 
77  SG::ReadHandleKey<CaloCellContainer> m_sgKey{this, "StoreGateKey", "AllCalo", "Name of the CaloCellContainer"};
78  double m_cellThreshold{};
81  bool m_lar{};
84  std::vector<Identifier::value_type> m_LArChannelsToIgnoreM5;
86  bool m_doBadLAr{};
87  };
88 }
89 #endif
DataType.h
JiveXML::CaloLArRetriever::CaloLArRetriever
CaloLArRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
Definition: CaloLArRetriever.cxx:31
JiveXML::CaloLArRetriever::m_calocell_id
const CaloCell_ID * m_calocell_id
Definition: CaloLArRetriever.h:70
JiveXML::CaloLArRetriever::retrieve
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
Definition: CaloLArRetriever.cxx:71
JiveXML::CaloLArRetriever::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: CaloLArRetriever.h:71
JiveXML::CaloLArRetriever::initialize
StatusCode initialize()
Default AthAlgTool methods.
Definition: CaloLArRetriever.cxx:56
JiveXML::CaloLArRetriever::m_doMaskLArChannelsM5
bool m_doMaskLArChannelsM5
Definition: CaloLArRetriever.h:85
SG::ReadHandleKey< CaloCellContainer >
JiveXML::DataMap
std::map< std::string, DataVect > DataMap
Definition: DataType.h:59
JiveXML::CaloLArRetriever::m_cellConditionCut
bool m_cellConditionCut
Definition: CaloLArRetriever.h:83
CaloCell_ID.h
LArADC2MeV.h
LArOnOffIdMapping.h
JiveXML::CaloLArRetriever::m_lar
bool m_lar
Definition: CaloLArRetriever.h:81
JiveXML::CaloLArRetriever::m_doLArCellDetails
bool m_doLArCellDetails
Definition: CaloLArRetriever.h:82
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JiveXML::CaloLArRetriever::m_sgKey
SG::ReadHandleKey< CaloCellContainer > m_sgKey
for properties
Definition: CaloLArRetriever.h:77
JiveXML::CaloLArRetriever::m_cellEnergyPrec
int m_cellEnergyPrec
Definition: CaloLArRetriever.h:79
AthAlgTool.h
JiveXML::CaloLArRetriever::dataTypeName
virtual std::string dataTypeName() const
Return the name of the data type.
Definition: CaloLArRetriever.h:63
test_pyathena.parent
parent
Definition: test_pyathena.py:15
JiveXML::IDataRetriever
Interface for all DataRetriever classes, that extract event data from StoreGate and pass them on to a...
Definition: IDataRetriever.h:25
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
JiveXML
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
Definition: BadLArRetriever.cxx:22
ReadCondHandleKey.h
JiveXML::CaloLArRetriever::m_cellThreshold
double m_cellThreshold
Definition: CaloLArRetriever.h:78
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CaloCellContainer.h
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
SG::ReadCondHandleKey< LArOnOffIdMapping >
JiveXML::CaloLArRetriever::m_cellTimePrec
int m_cellTimePrec
Definition: CaloLArRetriever.h:80
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
JiveXML::CaloLArRetriever::m_adc2mevKey
SG::ReadCondHandleKey< LArADC2MeV > m_adc2mevKey
Definition: CaloLArRetriever.h:74
JiveXML::CaloLArRetriever::m_doBadLAr
bool m_doBadLAr
Definition: CaloLArRetriever.h:86
JiveXML::CaloLArRetriever
Retrieves all Calo Cluster objects.
Definition: CaloLArRetriever.h:51
JiveXML::CaloLArRetriever::m_LArChannelsToIgnoreM5
std::vector< Identifier::value_type > m_LArChannelsToIgnoreM5
Definition: CaloLArRetriever.h:84
AthAlgTool
Definition: AthAlgTool.h:26
JiveXML::CaloLArRetriever::getLArData
const DataMap getLArData(const CaloCellContainer *cellContainer)
Retrieve LAr cell location and details.
Definition: CaloLArRetriever.cxx:96
IDataRetriever.h
Identifier
Definition: IdentifierFieldParser.cxx:14