ATLAS Offline Software
Simulation
ISF
ISF_FastCaloSim
ISF_FastCaloSimParametrization
Root
TFCSNNLateralShapeParametrization.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ISF_FastCaloSimParametrization/TFCSNNLateralShapeParametrization.h
"
6
#include "
ISF_FastCaloSimEvent/TFCSExtrapolationState.h
"
7
#include "
ISF_FastCaloSimEvent/FastCaloSim_CaloCell_ID.h
"
8
9
//=============================================
10
//======= TFCSLateralShapeParametrization =========
11
//=============================================
12
13
TFCSNNLateralShapeParametrization::TFCSNNLateralShapeParametrization
(
const
char
*
name
,
const
char
*
title
):
TFCSLateralShapeParametrizationHitBase
(
name
,
title
)
14
{
15
}
16
17
FCSReturnCode
TFCSNNLateralShapeParametrization::simulate_hit
(
Hit
& hit,
TFCSSimulationState
&
/*simulstate*/
,
const
TFCSTruthState
*
/*truth*/
,
const
TFCSExtrapolationState
*
extrapol
)
18
{
19
int
cs=
calosample
();
20
hit.
eta
()=0.5*(
extrapol
->eta(cs,
CaloSubPos::SUBPOS_ENT
) +
extrapol
->eta(cs,
CaloSubPos::SUBPOS_EXT
) );
21
hit.
phi
()=0.5*(
extrapol
->phi(cs,
CaloSubPos::SUBPOS_ENT
) +
extrapol
->phi(cs,
CaloSubPos::SUBPOS_EXT
) );
22
23
return
FCSSuccess
;
24
}
FCSReturnCode
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
Definition:
TFCSParametrizationBase.h:41
TFCSLateralShapeParametrizationHitBase::Hit::phi
float & phi()
Definition:
TFCSLateralShapeParametrizationHitBase.h:87
TFCSNNLateralShapeParametrization::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:
TFCSNNLateralShapeParametrization.cxx:17
TFCSExtrapolationState
Definition:
TFCSExtrapolationState.h:13
TFCSLateralShapeParametrizationHitBase::Hit
Definition:
TFCSLateralShapeParametrizationHitBase.h:42
RunActsMaterialValidation.extrapol
extrapol
Definition:
RunActsMaterialValidation.py:90
TFCSLateralShapeParametrizationHitBase
Definition:
TFCSLateralShapeParametrizationHitBase.h:13
covarianceTool.title
title
Definition:
covarianceTool.py:542
TFCSNNLateralShapeParametrization::TFCSNNLateralShapeParametrization
TFCSNNLateralShapeParametrization(const char *name=nullptr, const char *title=nullptr)
Definition:
TFCSNNLateralShapeParametrization.cxx:13
SUBPOS_ENT
@ SUBPOS_ENT
Definition:
FastCaloSim_CaloCell_ID.h:12
FCSSuccess
@ FCSSuccess
Definition:
TFCSParametrizationBase.h:41
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
TFCSNNLateralShapeParametrization.h
SUBPOS_EXT
@ SUBPOS_EXT
Definition:
FastCaloSim_CaloCell_ID.h:13
TFCSLateralShapeParametrization::calosample
int calosample() const
Definition:
TFCSLateralShapeParametrization.h:34
TFCSExtrapolationState.h
TFCSLateralShapeParametrizationHitBase::Hit::eta
float & eta()
Definition:
TFCSLateralShapeParametrizationHitBase.h:86
FastCaloSim_CaloCell_ID.h
TFCSTruthState
Definition:
TFCSTruthState.h:13
TFCSSimulationState
Definition:
TFCSSimulationState.h:32
Generated on Thu Nov 7 2024 21:27:33 for ATLAS Offline Software by
1.8.18