ATLAS Offline Software
Simulation
ISF
ISF_FastCaloSim
ISF_FastCaloSimEvent
src
TFCSInitWithEkin.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ISF_FastCaloSimEvent/TFCSInitWithEkin.h
"
6
#include "
ISF_FastCaloSimEvent/TFCSSimulationState.h
"
7
#include "
ISF_FastCaloSimEvent/TFCSTruthState.h
"
8
9
//=============================================
10
//======= TFCSInitWithEkin =========
11
//=============================================
12
13
TFCSInitWithEkin::TFCSInitWithEkin
(
const
char
*
name
,
const
char
*
title
)
14
:
TFCSParametrization
(
name
,
title
) {
15
set_match_all_pdgid
();
16
}
17
18
FCSReturnCode
TFCSInitWithEkin::simulate
(
TFCSSimulationState
&simulstate,
19
const
TFCSTruthState
*truth,
20
const
TFCSExtrapolationState
*)
const
{
21
ATH_MSG_DEBUG
(
"set E to Ekin="
<< truth->
Ekin
());
22
simulstate.
set_E
(truth->
Ekin
());
23
return
FCSSuccess
;
24
}
FCSReturnCode
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
Definition:
TFCSParametrizationBase.h:41
TFCSInitWithEkin::simulate
virtual FCSReturnCode simulate(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const override
Method in all derived classes to do some simulation.
Definition:
TFCSInitWithEkin.cxx:18
TFCSExtrapolationState
Definition:
TFCSExtrapolationState.h:13
TFCSInitWithEkin::TFCSInitWithEkin
TFCSInitWithEkin(const char *name=nullptr, const char *title=nullptr)
Definition:
TFCSInitWithEkin.cxx:13
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition:
AthMsgStreamMacros.h:29
TFCSTruthState::Ekin
double Ekin() const
Definition:
TFCSTruthState.h:26
covarianceTool.title
title
Definition:
covarianceTool.py:542
TFCSParametrizationBase::set_match_all_pdgid
virtual void set_match_all_pdgid()
Definition:
TFCSParametrizationBase.h:83
FCSSuccess
@ FCSSuccess
Definition:
TFCSParametrizationBase.h:41
TFCSParametrization
Definition:
TFCSParametrization.h:10
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
TFCSSimulationState::set_E
void set_E(int sample, double Esample)
Definition:
TFCSSimulationState.h:48
TFCSInitWithEkin.h
TFCSTruthState.h
TFCSSimulationState.h
TFCSTruthState
Definition:
TFCSTruthState.h:13
TFCSSimulationState
Definition:
TFCSSimulationState.h:32
Generated on Mon Dec 23 2024 21:19:30 for ATLAS Offline Software by
1.8.18