ATLAS Offline Software
Loading...
Searching...
No Matches
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
}
FastCaloSim_CaloCell_ID.h
SUBPOS_ENT
@ SUBPOS_ENT
Definition
FastCaloSim_CaloCell_ID.h:12
SUBPOS_EXT
@ SUBPOS_EXT
Definition
FastCaloSim_CaloCell_ID.h:13
TFCSExtrapolationState.h
TFCSNNLateralShapeParametrization.h
FCSReturnCode
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
Definition
TFCSParametrizationBase.h:41
FCSSuccess
@ FCSSuccess
Definition
TFCSParametrizationBase.h:41
TFCSExtrapolationState
Definition
TFCSExtrapolationState.h:13
TFCSLateralShapeParametrizationHitBase::Hit
Definition
TFCSLateralShapeParametrizationHitBase.h:42
TFCSLateralShapeParametrizationHitBase::Hit::phi
float & phi()
Definition
TFCSLateralShapeParametrizationHitBase.h:87
TFCSLateralShapeParametrizationHitBase::Hit::eta
float & eta()
Definition
TFCSLateralShapeParametrizationHitBase.h:86
TFCSLateralShapeParametrizationHitBase::TFCSLateralShapeParametrizationHitBase
TFCSLateralShapeParametrizationHitBase(const char *name=nullptr, const char *title=nullptr)
Definition
TFCSLateralShapeParametrizationHitBase.cxx:15
TFCSLateralShapeParametrization::calosample
int calosample() const
Definition
TFCSLateralShapeParametrization.h:34
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
TFCSNNLateralShapeParametrization::TFCSNNLateralShapeParametrization
TFCSNNLateralShapeParametrization(const char *name=nullptr, const char *title=nullptr)
Definition
TFCSNNLateralShapeParametrization.cxx:13
TFCSSimulationState
Definition
TFCSSimulationState.h:32
TFCSTruthState
Definition
TFCSTruthState.h:13
Generated on
for ATLAS Offline Software by
1.14.0