1#include "k4Interface/IGeoSvc.h"
3#include "GaudiKernel/RndmGenerators.h"
4#include "GaudiKernel/Service.h"
19 explicit MaterialScan(
const std::string& name, ISvcLocator* svcLoc);
27 Gaudi::Property<std::string>
m_filename{
this,
"filename",
"",
"file name to save the tree to"};
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"};
36 "number of random, uniformly distributed phi values to average over"};
39 "name of the envelope within which the material is measured"};
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