ATLAS Offline Software
Simulation
ISF
ISF_FastCaloSim
ISF_FastCaloSimEvent
ISF_FastCaloSimEvent
TFCSHistoLateralShapeWeight.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TFCSHistoLateralShapeWeight_h
6
#define TFCSHistoLateralShapeWeight_h
7
8
#include "
ISF_FastCaloSimEvent/TFCSLateralShapeParametrizationHitBase.h
"
9
10
class
TH1;
11
12
class
TFCSHistoLateralShapeWeight
13
:
public
TFCSLateralShapeParametrizationHitBase
{
14
public
:
15
TFCSHistoLateralShapeWeight
(
const
char
*
name
=
nullptr
,
16
const
char
*
title
=
nullptr
);
17
virtual
~TFCSHistoLateralShapeWeight
();
18
20
virtual
FCSReturnCode
21
simulate_hit
(
Hit
&hit,
TFCSSimulationState
&simulstate,
22
const
TFCSTruthState
*truth,
23
const
TFCSExtrapolationState
*
extrapol
)
override
;
24
27
bool
Initialize
(TH1 *
hist
);
28
29
TH1 *
getHistogram
()
const
{
return
m_hist
; };
30
31
virtual
void
Print
(Option_t *option =
""
)
const override
;
32
virtual
void
setMinWeight
(
float
minWeight) {
m_minWeight
= minWeight; }
33
virtual
void
setMaxWeight
(
float
maxWeight) {
m_maxWeight
= maxWeight; }
34
virtual
float
getMinWeight
()
const override
;
35
virtual
float
getMaxWeight
()
const override
;
36
37
protected
:
40
TH1 *
m_hist
{
nullptr
};
41
float
m_minWeight
{-1.};
42
float
m_maxWeight
{-1.};
43
44
ClassDefOverride(
TFCSHistoLateralShapeWeight
,
45
2)
// TFCSHistoLateralShapeWeight
46
};
47
48
#endif
FCSReturnCode
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
Definition:
TFCSParametrizationBase.h:41
TFCSHistoLateralShapeWeight
Definition:
TFCSHistoLateralShapeWeight.h:13
plotmaker.hist
hist
Definition:
plotmaker.py:148
TFCSHistoLateralShapeWeight::TFCSHistoLateralShapeWeight
TFCSHistoLateralShapeWeight(const char *name=nullptr, const char *title=nullptr)
Definition:
TFCSHistoLateralShapeWeight.cxx:21
TFCSExtrapolationState
Definition:
TFCSExtrapolationState.h:13
TFCSLateralShapeParametrizationHitBase::Hit
Definition:
TFCSLateralShapeParametrizationHitBase.h:42
RunActsMaterialValidation.extrapol
extrapol
Definition:
RunActsMaterialValidation.py:91
TFCSHistoLateralShapeWeight::getMinWeight
virtual float getMinWeight() const override
Get minimum and maximum value of weight for hit energy reweighting.
Definition:
TFCSHistoLateralShapeWeight.cxx:30
TFCSHistoLateralShapeWeight::getHistogram
TH1 * getHistogram() const
Definition:
TFCSHistoLateralShapeWeight.h:29
TFCSLateralShapeParametrizationHitBase
Definition:
TFCSLateralShapeParametrizationHitBase.h:13
TFCSLateralShapeParametrizationHitBase.h
TFCSHistoLateralShapeWeight::setMinWeight
virtual void setMinWeight(float minWeight)
Definition:
TFCSHistoLateralShapeWeight.h:32
TFCSHistoLateralShapeWeight::m_minWeight
float m_minWeight
Definition:
TFCSHistoLateralShapeWeight.h:41
TFCSHistoLateralShapeWeight::Print
virtual void Print(Option_t *option="") const override
Definition:
TFCSHistoLateralShapeWeight.cxx:89
TFCSHistoLateralShapeWeight::setMaxWeight
virtual void setMaxWeight(float maxWeight)
Definition:
TFCSHistoLateralShapeWeight.h:33
TFCSHistoLateralShapeWeight::m_maxWeight
float m_maxWeight
Definition:
TFCSHistoLateralShapeWeight.h:42
covarianceTool.title
title
Definition:
covarianceTool.py:542
TFCSHistoLateralShapeWeight::Initialize
bool Initialize(TH1 *hist)
Init from histogram.
Definition:
TFCSHistoLateralShapeWeight.cxx:77
TFCSHistoLateralShapeWeight::simulate_hit
virtual FCSReturnCode simulate_hit(Hit &hit, TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) override
weight the energy of one hit in order to generate fluctuations
Definition:
TFCSHistoLateralShapeWeight.cxx:34
TFCSHistoLateralShapeWeight::m_hist
TH1 * m_hist
Histogram to be used for the shape simulation The histogram x-axis should be in dR^2=deta^2+dphi^2.
Definition:
TFCSHistoLateralShapeWeight.h:40
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
TFCSHistoLateralShapeWeight::getMaxWeight
virtual float getMaxWeight() const override
Definition:
TFCSHistoLateralShapeWeight.cxx:32
TFCSHistoLateralShapeWeight::~TFCSHistoLateralShapeWeight
virtual ~TFCSHistoLateralShapeWeight()
Definition:
TFCSHistoLateralShapeWeight.cxx:25
TFCSTruthState
Definition:
TFCSTruthState.h:13
TFCSSimulationState
Definition:
TFCSSimulationState.h:32
Generated on Fri Jan 10 2025 21:18:44 for ATLAS Offline Software by
1.8.18