ATLAS Offline Software
LArSCSimpleMaker.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARROD_LARSCSIMPLEMAKER_H
6 #define LARROD_LARSCSIMPLEMAKER_H
7 // +======================================================================+
8 // + +
9 // + Author ........: Denis Oliveira Damazio +
10 // + Institute ......: BNL +
11 // + Creation date .: 17/06/2012 +
12 // + Move to MT in : 20/02/2021
13 // + +
14 // +======================================================================+
15 //
16 // ....... include
17 //
18 
20 #include "GaudiKernel/ToolHandle.h"
21 #include "AthAllocators/DataPool.h"
29 
30 
34 class CaloCell;
35 class CaloIdManager;
36 
42 {
43 public:
45  LArSCSimpleMaker(const std::string& name, ISvcLocator* pSvcLocator);
47 
48 
51 
53  StatusCode execute(const EventContext& context) const;
54 
55 private:
57  ToolHandle<ICaloSuperCellIDTool> m_scidtool
58  { this, "SCIDTool", "CaloSuperCellIDTool" ,
59  "Offline / supercell mapping tool."};
60 
63  { this, "CellContainer", "AllCalo",
64  "SG key for the input calorimeter cell container"};
65 
68  { this, "SCellContainer", "SCellContainer",
69  "SG key for the output supercell LAr channel container"};
70 
73  { this, "CaloNoiseSigmaDiff", "CaloNoiseSigmaDiff", "Sigma Diff for CaloNoise with High and Medium gain"};
74 
77  {this, "BCIDAvgKey", "CaloBCIDAverage", "" };
78 
79  // compensate for Noise (superCell from cells with high gain
80  Gaudi::Property<bool> m_compNoise{this,"CompNoise",true,"Compensate for Noise difference in LAr between high and medium gain"};
81  // compensate for BCID effect
82  Gaudi::Property<bool> m_addBCID{this,"addBCID",true,"Add BCID compensation back to cells prior to sum them up"};
83 
84  // Super Cell DD manager key
86  this,"CaloSuperCellDetDescrManager","CaloSuperCellDetDescrManager","SG key of the resulting CaloSuperCellDetDescrManager"};
87 
90 
91 
92 };
93 
94 
95 #endif // not LARROD_LARSCSIMPLEMAKER_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
LArSCSimpleMaker::execute
StatusCode execute(const EventContext &context) const
Algorithm execute method.
Definition: LArSCSimpleMaker.cxx:53
LArSCSimpleMaker::m_noise_per_cell_Key
SG::ReadCondHandleKey< CaloNoiseSigmaDiff > m_noise_per_cell_Key
Property SG Key for the Expected Noise Sigma diff in diff gains.
Definition: LArSCSimpleMaker.h:73
LArSCSimpleMaker::m_scidtool
ToolHandle< ICaloSuperCellIDTool > m_scidtool
Property: Offline / supercell mapping tool.
Definition: LArSCSimpleMaker.h:58
LArSCSimpleMaker::m_compNoise
Gaudi::Property< bool > m_compNoise
Definition: LArSCSimpleMaker.h:80
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
ICaloSuperCellIDTool
Interface for tool to map between calorimeter cells and supercells.
Definition: ICaloSuperCellIDTool.h:31
SG::ReadHandleKey< CaloCellContainer >
LArSCSimpleMaker::m_sCellContainerKey
SG::WriteHandleKey< CaloCellContainer > m_sCellContainerKey
Property: SG key for the output supercell LAr channel container.
Definition: LArSCSimpleMaker.h:68
LArSCSimpleMaker::m_calo_id_manager
const CaloIdManager * m_calo_id_manager
Entry point for calorimeter ID helpers.
Definition: LArSCSimpleMaker.h:89
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
CaloSuperCellDetDescrManager
Definition: CaloDetDescrManager.h:490
LArSCSimpleMaker::initialize
StatusCode initialize()
Standard Gaudi initialize method.
Definition: LArSCSimpleMaker.cxx:39
SG::WriteHandleKey< CaloCellContainer >
CaloIdManager
This class initializes the Calo (LAr and Tile) offline identifiers.
Definition: CaloIdManager.h:45
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArSCSimpleMaker::LArSCSimpleMaker
LArSCSimpleMaker(const std::string &name, ISvcLocator *pSvcLocator)
Standard Gaudi algorithm constructor.
Definition: LArSCSimpleMaker.cxx:32
CaloNoiseSigmaDiff.h
DataPool.h
ReadCondHandleKey.h
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
LArSCSimpleMaker::m_caloSuperCellMgrKey
SG::ReadCondHandleKey< CaloSuperCellDetDescrManager > m_caloSuperCellMgrKey
Definition: LArSCSimpleMaker.h:85
LArSCSimpleMaker::m_cellContainerKey
SG::ReadHandleKey< CaloCellContainer > m_cellContainerKey
Property: SG key for the input calorimeter cell container.
Definition: LArSCSimpleMaker.h:63
LArSCSimpleMaker::m_addBCID
Gaudi::Property< bool > m_addBCID
Definition: LArSCSimpleMaker.h:82
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CaloCellContainer.h
CaloBCIDAverage.h
SG::ReadCondHandleKey< CaloNoiseSigmaDiff >
LArSCSimpleMaker::~LArSCSimpleMaker
~LArSCSimpleMaker()
Definition: LArSCSimpleMaker.h:46
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
IOVSvcDefs.h
defines and typedefs for IOVSvc
LArSCSimpleMaker::m_bcidAvgKey
SG::ReadHandleKey< CaloBCIDAverage > m_bcidAvgKey
Property SG Key for the CaloLumiBCID.
Definition: LArSCSimpleMaker.h:77
LArSCSimpleMaker
Make a dummy supercell LArRawChannelContainer from a CaloCallContainer.
Definition: LArSCSimpleMaker.h:42