ATLAS Offline Software
LArCellBuilderFromLArRawChannelTool.h
Go to the documentation of this file.
1 //Dear emacs, this is -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef LARCELLREC_LARCELLBUILDERFROMLARRAWCHANNELTOOL_H
8 #define LARCELLREC_LARCELLBUILDERFROMLARRAWCHANNELTOOL_H
9 
24 #include "GaudiKernel/ToolHandle.h"
27 
33 #include "AthAllocators/DataPool.h"
36 
37 class CaloCellContainer ;
38 class CaloCell_ID;
39 class CaloCellContainer ;
40 class LArCell;
41 
53  : public extends<AthAlgTool, ICaloCellMakerTool>
54 {
55 public:
59  using base_class::base_class;
64 
74  virtual StatusCode initialize() override;
75 
83  virtual StatusCode process (CaloCellContainer* theCellContainer,
84  const EventContext& ctx) const override;
85 
86 private:
87 
88  SG::ReadHandleKey<LArRawChannelContainer> m_rawChannelsKey{this,"RawChannelsName","LArRawChannels","Name of input container"};
89  Gaudi::Property<bool> m_addDeadOTX{this,"addDeadOTX",true,"Add dummy cells for missing FEBs"};
90  Gaudi::Property<int> m_initialDataPoolSize{this,"InitialCellPoolSize",-1,"Initial size of the DataPool<LArCells> (-1: Use nCells)"};
91 
92  //Internally used variables
93  unsigned m_nTotalCells=0;
94 
95 
96  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"LArCablingKey","LArOnOffIdMap","Key of conditions data object holding cabling"};
97  const LArOnlineID* m_onlineID=nullptr;
98  const CaloCell_ID* m_caloCID=nullptr;
99  SG::ReadCondHandleKey<LArBadFebCont> m_missingFebKey{this,"MissingFebKey","LArBadFeb","Key of conditions data object holding bad-feb info"};
100 
101  SG::ReadCondHandleKey<CaloDetDescrManager> m_caloMgrKey{this,"CaloDetDescrManager", "CaloDetDescrManager"};
102 
103 
104 };
105 
106 
107 #endif
108 
109 
110 
111 
112 
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
LArCellBuilderFromLArRawChannelTool::~LArCellBuilderFromLArRawChannelTool
virtual ~LArCellBuilderFromLArRawChannelTool()=default
Destructor, deletes the MsgService.
LArCellBuilderFromLArRawChannelTool
Building LArCell objects from LArRawChannel.
Definition: LArCellBuilderFromLArRawChannelTool.h:54
SG::ReadHandleKey< LArRawChannelContainer >
LArCellBuilderFromLArRawChannelTool::m_rawChannelsKey
SG::ReadHandleKey< LArRawChannelContainer > m_rawChannelsKey
rdo container name (jO)
Definition: LArCellBuilderFromLArRawChannelTool.h:88
LArCellBuilderFromLArRawChannelTool::process
virtual StatusCode process(CaloCellContainer *theCellContainer, const EventContext &ctx) const override
process method as defined in ICaloCellMaker interface
Definition: LArCellBuilderFromLArRawChannelTool.cxx:74
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
LArBadChannelCont.h
LArCellBuilderFromLArRawChannelTool::m_initialDataPoolSize
Gaudi::Property< int > m_initialDataPoolSize
Initial size of DataPool<LArCell>
Definition: LArCellBuilderFromLArRawChannelTool.h:90
LArOnOffIdMapping.h
LArCellBuilderFromLArRawChannelTool::m_addDeadOTX
Gaudi::Property< bool > m_addDeadOTX
activate addition of missing cells from dead OTX
Definition: LArCellBuilderFromLArRawChannelTool.h:89
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
LArCellBuilderFromLArRawChannelTool::m_onlineID
const LArOnlineID * m_onlineID
Definition: LArCellBuilderFromLArRawChannelTool.h:97
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
LArCellBuilderFromLArRawChannelTool::m_missingFebKey
SG::ReadCondHandleKey< LArBadFebCont > m_missingFebKey
Definition: LArCellBuilderFromLArRawChannelTool.h:99
LArCellBuilderFromLArRawChannelTool::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArCellBuilderFromLArRawChannelTool.h:96
LArCellBuilderFromLArRawChannelTool::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: LArCellBuilderFromLArRawChannelTool.h:101
DataPool.h
ReadCondHandleKey.h
HWIdentifier.h
LArOnlineID
Definition: LArOnlineID.h:20
LArCell
Data object for LAr calorimeter readout cell.
Definition: LArCell.h:53
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
ICaloCellMakerTool.h
SG::ReadCondHandleKey< LArOnOffIdMapping >
LArCellBuilderFromLArRawChannelTool::m_nTotalCells
unsigned m_nTotalCells
Number of cells, set in Initialize()
Definition: LArCellBuilderFromLArRawChannelTool.h:93
LArCellBuilderFromLArRawChannelTool::initialize
virtual StatusCode initialize() override
Initialize method.
Definition: LArCellBuilderFromLArRawChannelTool.cxx:31
LArRawChannelContainer.h
LArOnlineID.h
LArCellBuilderFromLArRawChannelTool::m_caloCID
const CaloCell_ID * m_caloCID
Definition: LArCellBuilderFromLArRawChannelTool.h:98