ATLAS Offline Software
Loading...
Searching...
No Matches
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
16#include "GaudiKernel/ToolHandle.h"
18#include "JiveXML/DataType.h" //DataMap
19
20#include <string>
21#include <vector>
22
23class IToolSvc;
24
25class Identifier;
27
28namespace 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
67 StatusCode initialize();
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"};
81 bool m_lar{};
84 std::vector<Identifier::value_type> m_LArChannelsToIgnoreM5;
86 bool m_doBadLAr{};
87 };
88}
89#endif
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Container class for CaloCell.
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
virtual std::string dataTypeName() const
Return the name of the data type.
SG::ReadHandleKey< CaloCellContainer > m_sgKey
for properties
CaloLArRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
const CaloCell_ID * m_calocell_id
SG::ReadCondHandleKey< LArADC2MeV > m_adc2mevKey
std::vector< Identifier::value_type > m_LArChannelsToIgnoreM5
const DataMap getLArData(const CaloCellContainer *cellContainer)
Retrieve LAr cell location and details.
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
StatusCode initialize()
Default AthAlgTool methods.
Interface for all DataRetriever classes, that extract event data from StoreGate and pass them on to a...
Property holding a SG store/key/clid from which a ReadHandle is made.
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
std::map< std::string, DataVect > DataMap
Definition DataType.h:59