ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloDetDescr
src
CaloTowerGeometryCondAlg.h
Go to the documentation of this file.
1
//Dear emacs, this is -*-c++-*-
2
//Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
4
#ifndef CALODETDESC_CALOTOWERGEOMETRYCONDALG_H
5
#define CALODETDESC_CALOTOWERGEOMETRYCONDALG_H
6
7
#include "
AthenaBaseComps/AthCondAlgorithm.h
"
8
#include "
StoreGate/ReadCondHandleKey.h
"
9
#include "
StoreGate/WriteCondHandleKey.h
"
10
#include "
CaloDetDescr/CaloTowerGeometry.h
"
11
#include "
CaloDetDescr/CaloDetDescrManager.h
"
12
13
class
CaloTowerGeometryCondAlg
:
public
AthCondAlgorithm
{
14
15
public
:
16
using
AthCondAlgorithm::AthCondAlgorithm;
17
virtual
~CaloTowerGeometryCondAlg
() =
default
;
18
19
StatusCode
initialize
() override final;
20
StatusCode
execute
(
const
EventContext& ctx)
const
override final;
21
StatusCode
finalize
() override final {
return
StatusCode::SUCCESS;}
22
23
24
private
:
25
26
void
dump
(
const
CaloTowerGeometry
* towerGeo)
const
;
27
28
SG::ReadCondHandleKey<CaloDetDescrManager>
m_caloMgrKey
{
this
,
"CaloDetDescrManager"
,
"CaloDetDescrManager"
};
29
SG::WriteCondHandleKey<CaloTowerGeometry>
m_outputKey
{
this
,
"OutputKey"
,
"CaloTowerGeometry"
};
30
31
//Properties:
32
Gaudi::Property<unsigned>
m_towerEtaBins
{
this
,
"TowerEtaBins"
,100,
"Number of pseudorapidity bins in tower grid"
};
33
Gaudi::Property<double>
m_towerEtaMin
{
this
,
"TowerEtaMin"
,-5.0,
"Lower boundary of pseudorapidity range"
};
34
Gaudi::Property<double>
m_towerEtaMax
{
this
,
"TowerEtaMax"
, 5.0,
"Upper boundary of pseudorapidity range"
};
35
Gaudi::Property<bool>
m_adjustEta
{
this
,
"AdjustFCalToTowerEtaBounds"
,
true
,
"Adjust FCal cells to eta boundaries"
};
36
37
Gaudi::Property<unsigned>
m_towerPhiBins
{
this
,
"TowerPhiBins"
,64,
"Number of azimuthal bins in tower grid"
};
38
Gaudi::Property<double>
m_towerPhiMin
{
this
,
"TowerPhiMin"
, -
M_PI
,
"Lower boundary of azimuthal range"
};
39
Gaudi::Property<double>
m_towerPhiMax
{
this
,
"TowerPhiMax"
,
M_PI
,
"Upper boundary of azimuthal range"
};
40
41
// change only for R&D
42
Gaudi::Property<double>
m_fcal1Xslice
{
this
,
"FCal1NSlicesX"
,8.0,
"Number of X slices for FCal1 cells"
};
43
Gaudi::Property<double>
m_fcal1Yslice
{
this
,
"FCal1NSlicesY"
,8.0,
"Number of Y slices for FCal1 cells"
};
44
45
Gaudi::Property<double>
m_fcal2Xslice
{
this
,
"FCal2NSlicesX"
,8.0,
"Number of X slices for FCal2 cells"
};
46
Gaudi::Property<double>
m_fcal2Yslice
{
this
,
"FCal2NSlicesY"
,12.0,
"Number of Y slices for FCal2 cells"
};
47
48
Gaudi::Property<double>
m_fcal3Xslice
{
this
,
"FCal3NSlicesX"
,12.0,
"Number of X slices for FCal3 cells"
};
49
Gaudi::Property<double>
m_fcal3Yslice
{
this
,
"FCal3NSlicesY"
,12.0,
"Number of Y slices for FCal3 cells"
};
50
51
Gaudi::Property<std::string>
m_towerGridFile
{
this
,
"TowerGridFile"
,
""
,
"Text file to dump tower-grid"
};
52
53
Gaudi::Property<std::string>
m_towerMapFile
{
this
,
"TowerMapFile"
,
""
,
"Text file to dump cell->tower mapping"
};
54
55
56
57
};
58
#endif
M_PI
#define M_PI
Definition
ActiveFraction.h:14
AthCondAlgorithm.h
Base class for conditions algorithms.
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloTowerGeometry.h
ReadCondHandleKey.h
WriteCondHandleKey.h
AthCondAlgorithm
Base class for conditions algorithms.
Definition
AthCondAlgorithm.h:22
CaloTowerGeometryCondAlg
Definition
CaloTowerGeometryCondAlg.h:13
CaloTowerGeometryCondAlg::execute
StatusCode execute(const EventContext &ctx) const override final
Definition
CaloTowerGeometryCondAlg.cxx:30
CaloTowerGeometryCondAlg::m_fcal3Yslice
Gaudi::Property< double > m_fcal3Yslice
Definition
CaloTowerGeometryCondAlg.h:49
CaloTowerGeometryCondAlg::finalize
StatusCode finalize() override final
Definition
CaloTowerGeometryCondAlg.h:21
CaloTowerGeometryCondAlg::m_towerGridFile
Gaudi::Property< std::string > m_towerGridFile
Definition
CaloTowerGeometryCondAlg.h:51
CaloTowerGeometryCondAlg::m_towerEtaBins
Gaudi::Property< unsigned > m_towerEtaBins
Definition
CaloTowerGeometryCondAlg.h:32
CaloTowerGeometryCondAlg::m_fcal2Xslice
Gaudi::Property< double > m_fcal2Xslice
Definition
CaloTowerGeometryCondAlg.h:45
CaloTowerGeometryCondAlg::m_towerEtaMax
Gaudi::Property< double > m_towerEtaMax
Definition
CaloTowerGeometryCondAlg.h:34
CaloTowerGeometryCondAlg::m_adjustEta
Gaudi::Property< bool > m_adjustEta
Definition
CaloTowerGeometryCondAlg.h:35
CaloTowerGeometryCondAlg::initialize
StatusCode initialize() override final
Definition
CaloTowerGeometryCondAlg.cxx:20
CaloTowerGeometryCondAlg::m_outputKey
SG::WriteCondHandleKey< CaloTowerGeometry > m_outputKey
Definition
CaloTowerGeometryCondAlg.h:29
CaloTowerGeometryCondAlg::m_fcal2Yslice
Gaudi::Property< double > m_fcal2Yslice
Definition
CaloTowerGeometryCondAlg.h:46
CaloTowerGeometryCondAlg::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition
CaloTowerGeometryCondAlg.h:28
CaloTowerGeometryCondAlg::m_towerMapFile
Gaudi::Property< std::string > m_towerMapFile
Definition
CaloTowerGeometryCondAlg.h:53
CaloTowerGeometryCondAlg::m_towerPhiMax
Gaudi::Property< double > m_towerPhiMax
Definition
CaloTowerGeometryCondAlg.h:39
CaloTowerGeometryCondAlg::m_fcal3Xslice
Gaudi::Property< double > m_fcal3Xslice
Definition
CaloTowerGeometryCondAlg.h:48
CaloTowerGeometryCondAlg::m_towerEtaMin
Gaudi::Property< double > m_towerEtaMin
Definition
CaloTowerGeometryCondAlg.h:33
CaloTowerGeometryCondAlg::m_towerPhiMin
Gaudi::Property< double > m_towerPhiMin
Definition
CaloTowerGeometryCondAlg.h:38
CaloTowerGeometryCondAlg::m_fcal1Yslice
Gaudi::Property< double > m_fcal1Yslice
Definition
CaloTowerGeometryCondAlg.h:43
CaloTowerGeometryCondAlg::m_fcal1Xslice
Gaudi::Property< double > m_fcal1Xslice
Definition
CaloTowerGeometryCondAlg.h:42
CaloTowerGeometryCondAlg::~CaloTowerGeometryCondAlg
virtual ~CaloTowerGeometryCondAlg()=default
CaloTowerGeometryCondAlg::m_towerPhiBins
Gaudi::Property< unsigned > m_towerPhiBins
Definition
CaloTowerGeometryCondAlg.h:37
CaloTowerGeometry
Retrieve the list of towers associated with a calorimeter cell referenced by its hash identifier.
Definition
CaloTowerGeometry.h:23
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
const
dump
-event-from-file
Generated on
for ATLAS Offline Software by
1.17.0