Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
29 simulstate.
set_E(Emean);
36 bool shortprint =
opt.Index(
"short") >= 0;
38 TString optprint =
opt;
39 optprint.ReplaceAll(
"short",
"");
58 "test linear TFCSEnergyInterpolation");
60 test.set_Ekin_nominal(1000);
61 test.set_Ekin_min(1000);
62 test.set_Ekin_max(100000);
63 test.set_eta_nominal(0.225);
64 test.set_eta_min(0.2);
65 test.set_eta_max(0.25);
72 TGraph *
gr =
new TGraph();
73 gr->SetNameTitle(
"testTFCSEnergyInterpolation",
74 "test linear TFCSEnergyInterpolation");
75 gr->GetXaxis()->SetTitle(
"Ekin [MeV]");
76 gr->GetYaxis()->SetTitle(
"<E(reco)>/Ekin(true)");
79 for (
float Ekin = 1000; Ekin <= 100000; Ekin *= 1.1) {
81 truth->SetPxPyPzE(Ekin, 0, 0, Ekin);
85 gr->SetPoint(
ip, Ekin, simulstate->
E() / Ekin);
91 #if defined(__FastCaloSimStandAlone__)
92 TCanvas *
c =
new TCanvas(
"testTFCSEnergyInterpolation",
93 "test linear TFCSEnergyInterpolation");
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
void Print(Option_t *option="") const override
static void unit_test(TFCSSimulationState *simulstate=nullptr, TFCSTruthState *truth=nullptr, const TFCSExtrapolationState *extrapol=nullptr)
void Print(Option_t *option="") const
Print object information.
void set_E(int sample, double Esample)
virtual FCSReturnCode simulate(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const override
Method in all derived classes to do some simulation.
TFCSEnergyInterpolationLinear(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.