ATLAS Offline Software
CaloHECRetriever.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_CALOHECRETRIEVER_H
6 #define JIVEXML_CALOHECRETRIEVER_H
7 
8 
9 
14 
15 #include "JiveXML/IDataRetriever.h"
17 #include "GaudiKernel/ToolHandle.h"
19 
20 #include "JiveXML/DataType.h"//DataMap typedef
21 #include <string>
22 #include <vector>
23 
24 class IToolSvc;
25 
26 class Identifier;
27 class CaloCellContainer;
28 
29 namespace JiveXML{
30 
51  class CaloHECRetriever : virtual public IDataRetriever,
52  public AthAlgTool {
53 
54  public:
55 
57  CaloHECRetriever(const std::string& type,const std::string& name,const IInterface* parent);
58 
60  virtual StatusCode retrieve(ToolHandle<IFormatTool> &FormatTool);
61  const DataMap getHECData(const CaloCellContainer* cellContainer);
62 
64  virtual std::string dataTypeName() const { return "HEC"; };
65 
66 
69 
70  private:
72  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
73 
75  { this, "ADC2MeVKey", "LArADC2MeV", "SG Key of the LArADC2MeV CDO" };
76 
78  SG::ReadHandleKey<CaloCellContainer> m_sgKey{this, "StoreGateKey", "AllCalo", "Name of the CaloCellContainer"};
79  double m_cellThreshold{};
82  bool m_hec{};
85  std::vector<Identifier::value_type> m_LArChannelsToIgnoreM5;
87  bool m_doBadHEC{};
88  };
89 }
90 #endif
DataType.h
JiveXML::CaloHECRetriever::m_doMaskLArChannelsM5
bool m_doMaskLArChannelsM5
Definition: CaloHECRetriever.h:86
JiveXML::CaloHECRetriever::retrieve
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
Definition: CaloHECRetriever.cxx:70
JiveXML::CaloHECRetriever::CaloHECRetriever
CaloHECRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
Definition: CaloHECRetriever.cxx:31
JiveXML::CaloHECRetriever::m_hec
bool m_hec
Definition: CaloHECRetriever.h:82
JiveXML::CaloHECRetriever::m_cellTimePrec
int m_cellTimePrec
Definition: CaloHECRetriever.h:81
JiveXML::CaloHECRetriever::dataTypeName
virtual std::string dataTypeName() const
Return the name of the data type.
Definition: CaloHECRetriever.h:64
JiveXML::CaloHECRetriever::m_calocell_id
const CaloCell_ID * m_calocell_id
Definition: CaloHECRetriever.h:71
SG::ReadHandleKey< CaloCellContainer >
JiveXML::DataMap
std::map< std::string, DataVect > DataMap
Definition: DataType.h:59
JiveXML::CaloHECRetriever::m_doHECCellDetails
bool m_doHECCellDetails
Definition: CaloHECRetriever.h:83
JiveXML::CaloHECRetriever::m_cellEnergyPrec
int m_cellEnergyPrec
Definition: CaloHECRetriever.h:80
CaloCell_ID.h
JiveXML::CaloHECRetriever::getHECData
const DataMap getHECData(const CaloCellContainer *cellContainer)
Retrieve HEC cell location and details.
Definition: CaloHECRetriever.cxx:95
LArADC2MeV.h
LArOnOffIdMapping.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JiveXML::CaloHECRetriever::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: CaloHECRetriever.h:72
AthAlgTool.h
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
JiveXML::CaloHECRetriever::m_LArChannelsToIgnoreM5
std::vector< Identifier::value_type > m_LArChannelsToIgnoreM5
Definition: CaloHECRetriever.h:85
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
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
JiveXML::CaloHECRetriever
Retrieves all Calo Cluster objects.
Definition: CaloHECRetriever.h:52
CaloCellContainer.h
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
SG::ReadCondHandleKey< LArOnOffIdMapping >
JiveXML::CaloHECRetriever::m_adc2mevKey
SG::ReadCondHandleKey< LArADC2MeV > m_adc2mevKey
Definition: CaloHECRetriever.h:75
JiveXML::CaloHECRetriever::m_sgKey
SG::ReadHandleKey< CaloCellContainer > m_sgKey
for properties
Definition: CaloHECRetriever.h:78
JiveXML::CaloHECRetriever::m_cellThreshold
double m_cellThreshold
Definition: CaloHECRetriever.h:79
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
JiveXML::CaloHECRetriever::initialize
StatusCode initialize()
Default AthAlgTool methods.
Definition: CaloHECRetriever.cxx:55
JiveXML::CaloHECRetriever::m_cellConditionCut
bool m_cellConditionCut
Definition: CaloHECRetriever.h:84
AthAlgTool
Definition: AthAlgTool.h:26
JiveXML::CaloHECRetriever::m_doBadHEC
bool m_doBadHEC
Definition: CaloHECRetriever.h:87
IDataRetriever.h
Identifier
Definition: IdentifierFieldParser.cxx:14