ATLAS Offline Software
BadLArRetriever.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JIVEXML_BADLARRETRIEVER_H
6 #define JIVEXML_BADLARRETRIEVER_H
7 
8 #include <string>
9 #include <vector>
10 #include <cstddef>
11 #include <map>
12 
16 
17 #include "JiveXML/IDataRetriever.h"
19 #include "GaudiKernel/ToolHandle.h"
20 
21 class IToolSvc;
22 
23 class Identifier;
24 class CaloCellContainer;
25 
26 namespace JiveXML{
27 
44  class BadLArRetriever : virtual public IDataRetriever,
45  public AthAlgTool {
46 
47  public:
48 
50  BadLArRetriever(const std::string& type,const std::string& name,const IInterface* parent);
51 
53  virtual StatusCode retrieve(ToolHandle<IFormatTool> &FormatTool);
54  const DataMap getBadLArData(const CaloCellContainer* cellContainer);
55 
57  virtual std::string dataTypeName() const { return "BadLAr"; };
58 
59 
62 
63  private:
65  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
66 
68  SG::ReadHandleKey<CaloCellContainer> m_sgKey{this, "StoreGateKey", "AllCalo", "Name of the CaloCellContainer"};
71  bool m_lar;
72  bool m_doBadLAr;
74  };
75 }
76 #endif
JiveXML::BadLArRetriever::m_cellEnergyPrec
int m_cellEnergyPrec
Definition: BadLArRetriever.h:70
JiveXML::BadLArRetriever::m_cellThreshold
double m_cellThreshold
Definition: BadLArRetriever.h:69
JiveXML::BadLArRetriever::getBadLArData
const DataMap getBadLArData(const CaloCellContainer *cellContainer)
Retrieve LAr bad cell location and details.
Definition: BadLArRetriever.cxx:88
JiveXML::BadLArRetriever::m_calocell_id
const CaloCell_ID * m_calocell_id
Definition: BadLArRetriever.h:64
SG::ReadHandleKey< CaloCellContainer >
JiveXML::DataMap
std::map< std::string, DataVect > DataMap
Definition: DataType.h:59
CaloCell_ID.h
JiveXML::BadLArRetriever::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: BadLArRetriever.h:65
LArOnOffIdMapping.h
JiveXML::BadLArRetriever::m_cellConditionCut
bool m_cellConditionCut
Definition: BadLArRetriever.h:73
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
JiveXML::BadLArRetriever::BadLArRetriever
BadLArRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
Definition: BadLArRetriever.cxx:29
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
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
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:21
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
JiveXML::BadLArRetriever
Retrieves all Calo Cluster objects.
Definition: BadLArRetriever.h:45
JiveXML::BadLArRetriever::m_sgKey
SG::ReadHandleKey< CaloCellContainer > m_sgKey
for properties
Definition: BadLArRetriever.h:68
CaloCellContainer.h
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
JiveXML::BadLArRetriever::dataTypeName
virtual std::string dataTypeName() const
Return the name of the data type.
Definition: BadLArRetriever.h:57
JiveXML::BadLArRetriever::m_lar
bool m_lar
Definition: BadLArRetriever.h:71
SG::ReadCondHandleKey< LArOnOffIdMapping >
JiveXML::BadLArRetriever::m_doBadLAr
bool m_doBadLAr
Definition: BadLArRetriever.h:72
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
JiveXML::BadLArRetriever::retrieve
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
Definition: BadLArRetriever.cxx:63
AthAlgTool
Definition: AthAlgTool.h:26
IDataRetriever.h
JiveXML::BadLArRetriever::initialize
StatusCode initialize()
Default AthAlgTool methods.
Definition: BadLArRetriever.cxx:49