|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #include "CLHEP/Random/RandFlat.h"
6 #include "CLHEP/Random/RandPoisson.h"
58 const double center_r = hit.
center_r();
59 const double center_z = hit.
center_z();
61 if (TMath::IsNaN(center_r) or TMath::IsNaN(center_z) or
62 TMath::IsNaN(center_eta) or
63 TMath::IsNaN(center_phi)) {
69 alpha = 2 * TMath::Pi() * CLHEP::RandFlat::shoot(simulstate.
randomEngine());
72 float delta_eta =
r *
cos(alpha);
79 <<
" phi=" << hit.
phi() <<
" z=" << hit.
z()
80 <<
" r=" <<
r <<
" alpha=" << alpha);
87 bool shortprint =
opt.Index(
"short") >= 0;
89 TString optprint =
opt;
90 optprint.ReplaceAll(
"short",
"");
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
void Print(Option_t *option="") const override
void set_scale(float _scale)
set the radius in which hits should be generated
CLHEP::HepRandomEngine * randomEngine()
virtual int get_number_of_hits(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const override
default for this class is to simulate poisson(integral histogram) hits
virtual FCSReturnCode simulate_hit(Hit &hit, TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) override
simulated one hit position with weight that should be put into simulstate sometime later all hit weig...
virtual ~TFCSFlatLateralShapeParametrization()
virtual void Print(Option_t *option="") const override
void set_number_of_hits(float nhits)
set the integral of the histogram to the desired number of hits
def delta_phi(phi1, phi2)
float m_dR
Simulate hits flat in radius dR.
void setEtaPhiZE(float eta, float phi, float z, float E)
void set_dR(float _dR)
set the radius in which hits should be generated
TFCSFlatLateralShapeParametrization(const char *name=nullptr, const char *title=nullptr)
bool msgLvl(const MSG::Level lvl) const
Check whether the logging system is active at the provided verbosity level.