ATLAS Offline Software
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 
12 
14 
15  public:
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  virtual bool isReEntrant() const override final { return false; }
23 
24 
25  private:
26 
27  void dump(const CaloTowerGeometry* towerGeo) const;
28 
29  SG::ReadCondHandleKey<CaloDetDescrManager> m_caloMgrKey{this,"CaloDetDescrManager", "CaloDetDescrManager"};
30  SG::WriteCondHandleKey<CaloTowerGeometry> m_outputKey{this,"OutputKey","CaloTowerGeometry"};
31 
32  //Properties:
33  Gaudi::Property<unsigned> m_towerEtaBins{this,"TowerEtaBins",100,"Number of pseudorapidity bins in tower grid"};
34  Gaudi::Property<double> m_towerEtaMin{this,"TowerEtaMin",-5.0,"Lower boundary of pseudorapidity range"};
35  Gaudi::Property<double> m_towerEtaMax {this,"TowerEtaMax", 5.0,"Upper boundary of pseudorapidity range"};
36  Gaudi::Property<bool> m_adjustEta {this,"AdjustFCalToTowerEtaBounds", true, "Adjust FCal cells to eta boundaries"};
37 
38  Gaudi::Property<unsigned> m_towerPhiBins {this, "TowerPhiBins",64, "Number of azimuthal bins in tower grid"};
39  Gaudi::Property<double> m_towerPhiMin {this,"TowerPhiMin", -M_PI, "Lower boundary of azimuthal range"};
40  Gaudi::Property<double> m_towerPhiMax {this,"TowerPhiMax", M_PI, "Upper boundary of azimuthal range"};
41 
42  // change only for R&D
43  Gaudi::Property<double> m_fcal1Xslice {this,"FCal1NSlicesX",8.0,"Number of X slices for FCal1 cells"};
44  Gaudi::Property<double> m_fcal1Yslice {this,"FCal1NSlicesY",8.0,"Number of Y slices for FCal1 cells"};
45 
46  Gaudi::Property<double> m_fcal2Xslice {this,"FCal2NSlicesX",8.0,"Number of X slices for FCal2 cells"};
47  Gaudi::Property<double> m_fcal2Yslice {this,"FCal2NSlicesY",12.0,"Number of Y slices for FCal2 cells"};
48 
49  Gaudi::Property<double> m_fcal3Xslice {this, "FCal3NSlicesX",12.0, "Number of X slices for FCal3 cells"};
50  Gaudi::Property<double> m_fcal3Yslice {this, "FCal3NSlicesY",12.0, "Number of Y slices for FCal3 cells"};
51 
52  Gaudi::Property<std::string> m_towerGridFile{this,"TowerGridFile","","Text file to dump tower-grid"};
53 
54  Gaudi::Property<std::string> m_towerMapFile{this,"TowerMapFile","","Text file to dump cell->tower mapping"};
55 
56 
57 
58 };
59 #endif
CaloTowerGeometryCondAlg::finalize
StatusCode finalize() override final
Definition: CaloTowerGeometryCondAlg.h:21
CaloTowerGeometryCondAlg::m_fcal1Yslice
Gaudi::Property< double > m_fcal1Yslice
Definition: CaloTowerGeometryCondAlg.h:44
WriteCondHandleKey.h
M_PI
#define M_PI
Definition: ActiveFraction.h:11
CaloTowerGeometryCondAlg::m_towerEtaMin
Gaudi::Property< double > m_towerEtaMin
Definition: CaloTowerGeometryCondAlg.h:34
CaloTowerGeometryCondAlg::m_fcal3Xslice
Gaudi::Property< double > m_fcal3Xslice
Definition: CaloTowerGeometryCondAlg.h:49
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
CaloTowerGeometryCondAlg::m_adjustEta
Gaudi::Property< bool > m_adjustEta
Definition: CaloTowerGeometryCondAlg.h:36
CaloTowerGeometryCondAlg::m_fcal2Xslice
Gaudi::Property< double > m_fcal2Xslice
Definition: CaloTowerGeometryCondAlg.h:46
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloTowerGeometryCondAlg::initialize
StatusCode initialize() override final
Definition: CaloTowerGeometryCondAlg.cxx:20
CaloTowerGeometryCondAlg::m_fcal2Yslice
Gaudi::Property< double > m_fcal2Yslice
Definition: CaloTowerGeometryCondAlg.h:47
CaloTowerGeometryCondAlg::m_towerPhiMin
Gaudi::Property< double > m_towerPhiMin
Definition: CaloTowerGeometryCondAlg.h:39
CaloTowerGeometryCondAlg
Definition: CaloTowerGeometryCondAlg.h:13
CaloTowerGeometryCondAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: CaloTowerGeometryCondAlg.h:22
ReadCondHandleKey.h
AthReentrantAlgorithm.h
CaloTowerGeometryCondAlg::dump
void dump(const CaloTowerGeometry *towerGeo) const
Definition: CaloTowerGeometryCondAlg.cxx:75
CaloTowerGeometryCondAlg::m_towerEtaMax
Gaudi::Property< double > m_towerEtaMax
Definition: CaloTowerGeometryCondAlg.h:35
CaloTowerGeometryCondAlg::m_fcal3Yslice
Gaudi::Property< double > m_fcal3Yslice
Definition: CaloTowerGeometryCondAlg.h:50
CaloTowerGeometryCondAlg::execute
StatusCode execute(const EventContext &ctx) const override final
Definition: CaloTowerGeometryCondAlg.cxx:30
CaloTowerGeometry
Tower geometry store and description provider.
Definition: CaloTowerGeometry.h:23
SG::ReadCondHandleKey< CaloDetDescrManager >
CaloTowerGeometryCondAlg::m_fcal1Xslice
Gaudi::Property< double > m_fcal1Xslice
Definition: CaloTowerGeometryCondAlg.h:43
CaloTowerGeometry.h
CaloTowerGeometryCondAlg::~CaloTowerGeometryCondAlg
virtual ~CaloTowerGeometryCondAlg()=default
SG::WriteCondHandleKey< CaloTowerGeometry >
CaloTowerGeometryCondAlg::m_towerEtaBins
Gaudi::Property< unsigned > m_towerEtaBins
Definition: CaloTowerGeometryCondAlg.h:33
CaloTowerGeometryCondAlg::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: CaloTowerGeometryCondAlg.h:29
CaloTowerGeometryCondAlg::m_outputKey
SG::WriteCondHandleKey< CaloTowerGeometry > m_outputKey
Definition: CaloTowerGeometryCondAlg.h:30
CaloTowerGeometryCondAlg::m_towerGridFile
Gaudi::Property< std::string > m_towerGridFile
Definition: CaloTowerGeometryCondAlg.h:52
CaloTowerGeometryCondAlg::m_towerPhiMax
Gaudi::Property< double > m_towerPhiMax
Definition: CaloTowerGeometryCondAlg.h:40
CaloTowerGeometryCondAlg::m_towerPhiBins
Gaudi::Property< unsigned > m_towerPhiBins
Definition: CaloTowerGeometryCondAlg.h:38
CaloTowerGeometryCondAlg::m_towerMapFile
Gaudi::Property< std::string > m_towerMapFile
Definition: CaloTowerGeometryCondAlg.h:54