ATLAS Offline Software
Loading...
Searching...
No Matches
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:
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
#define M_PI
Base class for conditions algorithms.
Definition of CaloDetDescrManager.
Base class for conditions algorithms.
StatusCode execute(const EventContext &ctx) const override final
Gaudi::Property< double > m_fcal3Yslice
StatusCode finalize() override final
Gaudi::Property< std::string > m_towerGridFile
Gaudi::Property< unsigned > m_towerEtaBins
Gaudi::Property< double > m_fcal2Xslice
Gaudi::Property< double > m_towerEtaMax
Gaudi::Property< bool > m_adjustEta
StatusCode initialize() override final
SG::WriteCondHandleKey< CaloTowerGeometry > m_outputKey
Gaudi::Property< double > m_fcal2Yslice
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Gaudi::Property< std::string > m_towerMapFile
Gaudi::Property< double > m_towerPhiMax
Gaudi::Property< double > m_fcal3Xslice
Gaudi::Property< double > m_towerEtaMin
Gaudi::Property< double > m_towerPhiMin
Gaudi::Property< double > m_fcal1Yslice
Gaudi::Property< double > m_fcal1Xslice
virtual ~CaloTowerGeometryCondAlg()=default
Gaudi::Property< unsigned > m_towerPhiBins
Retrieve the list of towers associated with a calorimeter cell referenced by its hash identifier.
-event-from-file