ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
hit
bool hit(const Container &ids, int pdgId)
Definition
JetIRCSafeLabelTool.cxx:64
TFCSLateralShapeParametrizationHitBase.h
FCSReturnCode
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
Definition
TFCSParametrizationBase.h:41
TFCSExtrapolationState
Definition
TFCSExtrapolationState.h:13
TFCSHistoLateralShapeWeight
Definition
TFCSHistoLateralShapeWeight.h:13
TFCSHistoLateralShapeWeight::~TFCSHistoLateralShapeWeight
virtual ~TFCSHistoLateralShapeWeight()
Definition
TFCSHistoLateralShapeWeight.cxx:25
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::getHistogram
TH1 * getHistogram() const
Definition
TFCSHistoLateralShapeWeight.h:29
TFCSHistoLateralShapeWeight::setMaxWeight
virtual void setMaxWeight(float maxWeight)
Definition
TFCSHistoLateralShapeWeight.h:33
TFCSHistoLateralShapeWeight::m_maxWeight
float m_maxWeight
Definition
TFCSHistoLateralShapeWeight.h:42
TFCSHistoLateralShapeWeight::Print
virtual void Print(Option_t *option="") const override
Definition
TFCSHistoLateralShapeWeight.cxx:89
TFCSHistoLateralShapeWeight::Initialize
bool Initialize(TH1 *hist)
Init from histogram.
Definition
TFCSHistoLateralShapeWeight.cxx:77
TFCSHistoLateralShapeWeight::TFCSHistoLateralShapeWeight
TFCSHistoLateralShapeWeight(const char *name=nullptr, const char *title=nullptr)
Definition
TFCSHistoLateralShapeWeight.cxx:21
TFCSHistoLateralShapeWeight::getMinWeight
virtual float getMinWeight() const override
Get minimum and maximum value of weight for hit energy reweighting.
Definition
TFCSHistoLateralShapeWeight.cxx:30
TFCSHistoLateralShapeWeight::m_minWeight
float m_minWeight
Definition
TFCSHistoLateralShapeWeight.h:41
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
TFCSHistoLateralShapeWeight::getMaxWeight
virtual float getMaxWeight() const override
Definition
TFCSHistoLateralShapeWeight.cxx:32
TFCSHistoLateralShapeWeight::setMinWeight
virtual void setMinWeight(float minWeight)
Definition
TFCSHistoLateralShapeWeight.h:32
TFCSLateralShapeParametrizationHitBase::Hit
Definition
TFCSLateralShapeParametrizationHitBase.h:42
TFCSLateralShapeParametrizationHitBase::TFCSLateralShapeParametrizationHitBase
TFCSLateralShapeParametrizationHitBase(const char *name=nullptr, const char *title=nullptr)
Definition
TFCSLateralShapeParametrizationHitBase.cxx:15
TFCSSimulationState
Definition
TFCSSimulationState.h:32
TFCSTruthState
Definition
TFCSTruthState.h:13
Generated on
for ATLAS Offline Software by
1.17.0