k4SimGeant4
Loading...
Searching...
No Matches
MaterialScan.h
Go to the documentation of this file.
1#include "k4Interface/IGeoSvc.h"
2
3#include "GaudiKernel/RndmGenerators.h"
4#include "GaudiKernel/Service.h"
5
17class MaterialScan : public Service {
18public:
19 explicit MaterialScan(const std::string& name, ISvcLocator* svcLoc);
20
21 virtual StatusCode initialize();
22 virtual StatusCode finalize();
23 virtual ~MaterialScan(){};
24
25private:
27 Gaudi::Property<std::string> m_filename{this, "filename", "", "file name to save the tree to"};
29 ServiceHandle<IGeoSvc> m_geoSvc;
31 Gaudi::Property<double> m_etaBinning{this, "etaBinning", 0.05, "eta bin size"};
33 Gaudi::Property<double> m_etaMax{this, "etaMax", 6, "maximum eta value"};
35 Gaudi::Property<double> m_nPhiTrials{this, "nPhiTrials", 100,
36 "number of random, uniformly distributed phi values to average over"};
38 Gaudi::Property<std::string> m_envelopeName{this, "envelopeName", "world",
39 "name of the envelope within which the material is measured"};
41 Rndm::Numbers m_flatPhiDist;
43 Rndm::Numbers m_flatEtaDist;
44
45};
Service that facilitates material scan on initialize This service outputs a ROOT file containing a TT...
Definition MaterialScan.h:17
Gaudi::Property< std::string > m_filename
name of the output file
Definition MaterialScan.h:27
Gaudi::Property< double > m_nPhiTrials
number of random, uniformly distributed phi values to average over
Definition MaterialScan.h:35
Rndm::Numbers m_flatEtaDist
Flat random number generator.
Definition MaterialScan.h:43
virtual StatusCode finalize()
Definition MaterialScan.cpp:117
Rndm::Numbers m_flatPhiDist
Flat random number generator.
Definition MaterialScan.h:41
virtual ~MaterialScan()
Definition MaterialScan.h:23
Gaudi::Property< std::string > m_envelopeName
Name of the envelope within which the material is measured (by default: world volume)
Definition MaterialScan.h:38
Gaudi::Property< double > m_etaBinning
Step size in eta.
Definition MaterialScan.h:31
MaterialScan(const std::string &name, ISvcLocator *svcLoc)
Definition MaterialScan.cpp:19
ServiceHandle< IGeoSvc > m_geoSvc
Handle to the geometry service from which the detector is retrieved.
Definition MaterialScan.h:29
virtual StatusCode initialize()
Definition MaterialScan.cpp:22
Gaudi::Property< double > m_etaMax
Maximum eta until which to scan, scan is performed from -m_etaMax to +m_etaMax.
Definition MaterialScan.h:33