ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
ISF
ISF_FastCaloSim
ISF_FastCaloSimEvent
ISF_FastCaloSimEvent
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*/
9
#include "
ISF_FastCaloSimEvent/TFCSLateralShapeParametrizationHitBase.h
"
10
/*Truth state include*/
11
#include "
ISF_FastCaloSimEvent/TFCSTruthState.h
"
12
/*TFile include*/
13
#include <TFile.h>
14
/*Pieciewise linear interpolation class include*/
15
#include "
ISF_FastCaloSimEvent/TFCSEnergyInterpolationPiecewiseLinear.h
"
16
17
class
TFCSLateralShapeTuning
:
public
TFCSLateralShapeParametrizationHitBase
{
18
19
typedef
std::map<std::string, TFCSEnergyInterpolationPiecewiseLinear *>
20
interpolationMap
;
21
22
public
:
24
TFCSLateralShapeTuning
(
const
char
*name =
nullptr
,
25
const
char
*title =
nullptr
);
26
// Destructor
27
~TFCSLateralShapeTuning
();
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
37
FCSReturnCode
initFromMap
(
const
interpolationMap
&);
38
// Helper function for strip layer model
39
static
double
getSeriesScalingFactor
(
double
a0
,
double
a1,
double
a2,
40
double
a3,
double
distToShowerCenter);
41
42
private
:
43
// mapping between the parameter names of the model and its pieciewise linear
44
// interpolation obect
45
interpolationMap
m_parameterInterpol
;
46
47
ClassDefOverride(
TFCSLateralShapeTuning
, 1)
// TFCSLateralShapeTuning
48
};
49
50
#endif
hit
bool hit(const Container &ids, int pdgId)
Definition
JetIRCSafeLabelTool.cxx:64
TFCSEnergyInterpolationPiecewiseLinear.h
TFCSLateralShapeParametrizationHitBase.h
FCSReturnCode
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
Definition
TFCSParametrizationBase.h:41
TFCSTruthState.h
TFCSExtrapolationState
Definition
TFCSExtrapolationState.h:13
TFCSLateralShapeParametrizationHitBase::Hit
Definition
TFCSLateralShapeParametrizationHitBase.h:42
TFCSLateralShapeParametrizationHitBase::TFCSLateralShapeParametrizationHitBase
TFCSLateralShapeParametrizationHitBase(const char *name=nullptr, const char *title=nullptr)
Definition
TFCSLateralShapeParametrizationHitBase.cxx:15
TFCSLateralShapeTuning::simulate_hit
virtual FCSReturnCode simulate_hit(Hit &hit, TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) override
simulated one hit position with some energy.
Definition
TFCSLateralShapeTuning.cxx:79
TFCSLateralShapeTuning::interpolationMap
std::map< std::string, TFCSEnergyInterpolationPiecewiseLinear * > interpolationMap
Definition
TFCSLateralShapeTuning.h:20
TFCSLateralShapeTuning::initFromModelFile
FCSReturnCode initFromModelFile(const std::string &pathToModelParameters, int intMinEta, int intMaxEta)
Definition
TFCSLateralShapeTuning.cxx:25
TFCSLateralShapeTuning::m_parameterInterpol
interpolationMap m_parameterInterpol
Definition
TFCSLateralShapeTuning.h:45
TFCSLateralShapeTuning::TFCSLateralShapeTuning
TFCSLateralShapeTuning(const char *name=nullptr, const char *title=nullptr)
Constructor.
Definition
TFCSLateralShapeTuning.cxx:13
TFCSLateralShapeTuning::~TFCSLateralShapeTuning
~TFCSLateralShapeTuning()
Definition
TFCSLateralShapeTuning.cxx:17
TFCSLateralShapeTuning::getSeriesScalingFactor
static double getSeriesScalingFactor(double a0, double a1, double a2, double a3, double distToShowerCenter)
Definition
TFCSLateralShapeTuning.cxx:165
TFCSLateralShapeTuning::initFromMap
FCSReturnCode initFromMap(const interpolationMap &)
Definition
TFCSLateralShapeTuning.cxx:71
TFCSSimulationState
Definition
TFCSSimulationState.h:32
TFCSTruthState
Definition
TFCSTruthState.h:13
a0
double a0
Definition
globals.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0