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/*TFile include*/
13#include <TFile.h>
14/*Pieciewise linear interpolation class include*/
16
18
19 typedef std::map<std::string, TFCSEnergyInterpolationPiecewiseLinear *>
21
22public:
24 TFCSLateralShapeTuning(const char *name = nullptr,
25 const char *title = nullptr);
26 // Destructor
28 // Simulation call
29 virtual FCSReturnCode
30 simulate_hit(Hit &hit, TFCSSimulationState &simulstate,
31 const TFCSTruthState *truth,
32 const TFCSExtrapolationState *extrapol) override;
33 // Initialization from model parameter file
34 FCSReturnCode initFromModelFile(const std::string &pathToModelParameters,
35 int intMinEta, int intMaxEta);
36 // Initialization from interpolation map
38 // Helper function for strip layer model
39 static double getSeriesScalingFactor(double a0, double a1, double a2,
40 double a3, double distToShowerCenter);
41
42private:
43 // mapping between the parameter names of the model and its pieciewise linear
44 // interpolation obect
46
47 ClassDefOverride(TFCSLateralShapeTuning, 1) // TFCSLateralShapeTuning
48};
49
50#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