ATLAS Offline Software
Loading...
Searching...
No Matches
LArDigitRetriever.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef JIVEXML_LARDIGITRETRIEVER_H
6#define JIVEXML_LARDIGITRETRIEVER_H
7
8
9
15
18#include "GaudiKernel/ToolHandle.h"
20#include <string>
21#include <vector>
22#include <cstddef>
23#include <map>
24class IToolSvc;
25
26class Identifier;
28
29namespace JiveXML{
30
52 class LArDigitRetriever : virtual public IDataRetriever,
53 public AthAlgTool {
54
55 public:
56
58 LArDigitRetriever(const std::string& type,const std::string& name,const IInterface* parent);
59
61 virtual StatusCode retrieve(ToolHandle<IFormatTool> &FormatTool);
62 const DataMap getLArDigitData(const CaloCellContainer* cellContainer,
63 const std::string& datatype,
64 CaloCell_ID::SUBCALO calotype);
65
67 virtual std::string dataTypeName() const { return "LArDigit"; };
68
70 StatusCode initialize();
71
72 private:
75
76 SG::ReadHandleKey<CaloCellContainer> m_sgKey{this, "StoreGateKey", "AllCalo", "Name of the CaloCellContainer"};
77 SG::ReadHandleKey<LArDigitContainer> m_sgKeyLArDigit_raw{this, "StoreGateKey", "FREE", "Name of the LArDigitContainer"}; // can also be: "HIGH" (for raw data)
78 SG::ReadHandleKey<LArDigitContainer> m_sgKeyLArDigit_esd{this, "StoreGateKey", "LArDigitContainer_Thinned", "Name of the LArDigitContainer"}; // used for DPD/ESD
79 SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
80
82 { this, "ADC2MeVKey", "LArADC2MeV", "SG Key of the LArADC2MeV CDO" };
83
85
86 bool m_lar;
87 bool m_hec;
88 bool m_fcal;
98
99 std::vector<Identifier::value_type> m_LArChannelsToIgnoreM5;
101
103 };
104}
105#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
CaloCell_Base_ID::SUBCALO SUBCALO
Definition CaloCell_ID.h:50
Interface for all DataRetriever classes, that extract event data from StoreGate and pass them on to a...
LArDigitRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
SG::ReadCondHandleKey< LArADC2MeV > m_adc2mevKey
const CaloCell_ID * m_calocell_id
std::vector< Identifier::value_type > m_LArChannelsToIgnoreM5
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
virtual std::string dataTypeName() const
Return the name of the data type.
StatusCode initialize()
Default AthAlgTool methods.
const DataMap getLArDigitData(const CaloCellContainer *cellContainer, const std::string &datatype, CaloCell_ID::SUBCALO calotype)
Retrieve Tile cell location and details.
SG::ReadHandleKey< CaloCellContainer > m_sgKey
SG::ReadHandleKey< LArDigitContainer > m_sgKeyLArDigit_esd
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
SG::ReadHandleKey< LArDigitContainer > m_sgKeyLArDigit_raw
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
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
Definition DataType.h:58