ATLAS Offline Software
Loading...
Searching...
No Matches
TFCSLateralShapeTuning.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TFCSLateralShapeTuning_h
6#define TFCSLateralShapeTuning_h
7
8/*Parent class*/
10/*Truth state include*/
12/*Particle data includes*/
13#include "HepPDT/ParticleData.hh"
14#include "HepPDT/ParticleDataTable.hh"
15/*TFile include*/
16#include <TFile.h>
17/*Pieciewise linear interpolation class include*/
19
21
22 typedef std::map<std::string, TFCSEnergyInterpolationPiecewiseLinear *>
24
25public:
27 TFCSLateralShapeTuning(const char *name = nullptr,
28 const char *title = nullptr);
29 // Destructor
31 // Simulation call
32 virtual FCSReturnCode
33 simulate_hit(Hit &hit, TFCSSimulationState &simulstate,
34 const TFCSTruthState *truth,
35 const TFCSExtrapolationState *extrapol) override;
36 // Initialization from model parameter file
37 FCSReturnCode initFromModelFile(const std::string &pathToModelParameters,
38 int intMinEta, int intMaxEta);
39 // Initialization from interpolation map
41 // Helper function for strip layer model
42 static double getSeriesScalingFactor(double a0, double a1, double a2,
43 double a3, double distToShowerCenter);
44
45private:
46 // mapping between the parameter names of the model and its pieciewise linear
47 // interpolation obect
49
50 ClassDefOverride(TFCSLateralShapeTuning, 1) // TFCSLateralShapeTuning
51};
52
53#endif
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
TFCSLateralShapeParametrizationHitBase(const char *name=nullptr, const char *title=nullptr)
virtual FCSReturnCode simulate_hit(Hit &hit, TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) override
simulated one hit position with some energy.
std::map< std::string, TFCSEnergyInterpolationPiecewiseLinear * > interpolationMap
FCSReturnCode initFromModelFile(const std::string &pathToModelParameters, int intMinEta, int intMaxEta)
interpolationMap m_parameterInterpol
TFCSLateralShapeTuning(const char *name=nullptr, const char *title=nullptr)
Constructor.
static double getSeriesScalingFactor(double a0, double a1, double a2, double a3, double distToShowerCenter)
FCSReturnCode initFromMap(const interpolationMap &)
double a0
Definition globals.cxx:27