ATLAS Offline Software
RegionCreator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef G4ATLASTOOLS_REGIONCREATOR_H
6 #define G4ATLASTOOLS_REGIONCREATOR_H
7 
8 // Base classes
11 
12 #include "GaudiKernel/SystemOfUnits.h"
13 
14 // STL library
15 #include <string>
16 
25 class RegionCreator final : public extends<AthAlgTool, IRegionCreator> {
26 public:
27  // Standard constructor and destructor
28  RegionCreator(const std::string& type, const std::string& name, const IInterface *parent);
30 
31  virtual StatusCode initialize() override;
32 
33  void Dump() override;
34 
35  void Construct() override;
36 
37 private:
38  Gaudi::Property<std::string> m_regionName{this, "RegionName", "", "Region name (same as the Tool name if not set)"};
39  Gaudi::Property<double> m_gammaCut{this, "GammaCut", 1.*Gaudi::Units::mm, "Cut to be applied for gammas"};
40  Gaudi::Property<double> m_electronCut{this, "ElectronCut", 1., "Cut to be applied for electrons"};
41  Gaudi::Property<double> m_positronCut{this, "PositronCut", 1., "Cut to be applied for positrons"};
42  Gaudi::Property<double> m_protonCut{this, "ProtonCut", 1., "Cut to be applied for gammas"};
43  Gaudi::Property<std::vector<std::string> > m_logicalVolumes{this, "VolumeList", {}, "List of volumes to be included in this region"};
44  BooleanProperty m_dumpRegion{this, "DumpRegion", false, ""};
45 };
46 
47 #endif
RegionCreator::~RegionCreator
~RegionCreator()
Definition: RegionCreator.h:29
RegionCreator::initialize
virtual StatusCode initialize() override
Definition: RegionCreator.cxx:21
RegionCreator
Definition: RegionCreator.h:25
IRegionCreator.h
RegionCreator::m_positronCut
Gaudi::Property< double > m_positronCut
Definition: RegionCreator.h:41
RegionCreator::m_electronCut
Gaudi::Property< double > m_electronCut
Definition: RegionCreator.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
RegionCreator::Construct
void Construct() override
Definition: RegionCreator.cxx:38
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
RegionCreator::m_gammaCut
Gaudi::Property< double > m_gammaCut
Definition: RegionCreator.h:39
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
RegionCreator::m_logicalVolumes
Gaudi::Property< std::vector< std::string > > m_logicalVolumes
Definition: RegionCreator.h:43
RegionCreator::m_regionName
Gaudi::Property< std::string > m_regionName
Definition: RegionCreator.h:38
python.SystemOfUnits.mm
int mm
Definition: SystemOfUnits.py:83
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
RegionCreator::m_protonCut
Gaudi::Property< double > m_protonCut
Definition: RegionCreator.h:42
RegionCreator::RegionCreator
RegionCreator(const std::string &type, const std::string &name, const IInterface *parent)
Definition: RegionCreator.cxx:15
RegionCreator::Dump
void Dump() override
Definition: RegionCreator.cxx:79
RegionCreator::m_dumpRegion
BooleanProperty m_dumpRegion
Definition: RegionCreator.h:44