ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TilePulseSimulator
TilePulseSimulator
TilePulseShape.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TILEPULSESIMULATOR_TILEPULSESHAPE_H
6
#define TILEPULSESIMULATOR_TILEPULSESHAPE_H
7
8
#include "
AthenaBaseComps/AthMessaging.h
"
9
#include "TString.h"
10
#include <vector>
11
12
class
TF1;
13
class
TGraph;
14
class
TSpline;
15
class
IMessageSvc;
16
17
class
TilePulseShape
:
public
AthMessaging
{
18
public
:
19
TilePulseShape
(IMessageSvc* msgSvc,
const
std::string& name);
20
TilePulseShape
(IMessageSvc* msgSvc,
const
std::string& name,
const
TString& fileName);
21
TilePulseShape
(IMessageSvc* msgSvc,
const
std::string& name,
const
std::vector<double>& shapevec);
22
virtual
~TilePulseShape
();
23
void
loadPulseShape
(
const
TString& fileName);
24
void
setPulseShape
(
const
std::vector<double>& shapevec);
25
void
setUndershootParameters
(
double
amplitude,
double
decayTime);
26
double
undershootAmplitude
()
const
{
return
m_undershootAmplitude
; }
27
double
undershootDecayTime
()
const
{
return
m_undershootDecayTime
; }
28
double
effectiveStartTime
()
const
;
29
double
effectiveEndTime
()
const
;
30
31
//=== access to the underlying graph
32
TGraph*
getGraph
(
double
t0
=0.,
double
ped=0.,
double
amp=1.);
33
double
eval
(
double
x
,
bool
useSpline=
true
,
bool
useUndershoot=
false
);
34
35
//=== modify the pulseshape
36
void
resetDeformation
();
37
int
scalePulse
(
double
leftSF=1.,
double
rightSF=1.);
38
39
private
:
40
TGraph*
m_pulseShape
{
nullptr
};
41
TGraph*
m_deformedShape
{
nullptr
};
42
TSpline*
m_deformedSpline
{
nullptr
};
43
bool
m_useConfiguredUndershoot
{
false
};
44
double
m_undershootAmplitude
{};
45
double
m_undershootDecayTime
{};
46
};
47
48
#endif
// TILEPULSESIMULATOR_TILEPULSESHAPE_H
AthMessaging.h
t0
static Double_t t0
Definition
LArPhysWaveHECTool.cxx:38
x
#define x
AthMessaging::AthMessaging
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Definition
AthMessaging.cxx:13
TilePulseShape::eval
double eval(double x, bool useSpline=true, bool useUndershoot=false)
Definition
TilePulseShape.cxx:95
TilePulseShape::setPulseShape
void setPulseShape(const std::vector< double > &shapevec)
Definition
TilePulseShape.cxx:60
TilePulseShape::getGraph
TGraph * getGraph(double t0=0., double ped=0., double amp=1.)
Definition
TilePulseShape.cxx:189
TilePulseShape::undershootDecayTime
double undershootDecayTime() const
Definition
TilePulseShape.h:27
TilePulseShape::~TilePulseShape
virtual ~TilePulseShape()
Definition
TilePulseShape.cxx:39
TilePulseShape::m_undershootAmplitude
double m_undershootAmplitude
Definition
TilePulseShape.h:44
TilePulseShape::effectiveStartTime
double effectiveStartTime() const
Definition
TilePulseShape.cxx:80
TilePulseShape::m_undershootDecayTime
double m_undershootDecayTime
Definition
TilePulseShape.h:45
TilePulseShape::m_pulseShape
TGraph * m_pulseShape
Definition
TilePulseShape.h:40
TilePulseShape::m_deformedSpline
TSpline * m_deformedSpline
Definition
TilePulseShape.h:42
TilePulseShape::effectiveEndTime
double effectiveEndTime() const
Definition
TilePulseShape.cxx:86
TilePulseShape::undershootAmplitude
double undershootAmplitude() const
Definition
TilePulseShape.h:26
TilePulseShape::resetDeformation
void resetDeformation()
Definition
TilePulseShape.cxx:150
TilePulseShape::scalePulse
int scalePulse(double leftSF=1., double rightSF=1.)
Definition
TilePulseShape.cxx:162
TilePulseShape::setUndershootParameters
void setUndershootParameters(double amplitude, double decayTime)
Definition
TilePulseShape.cxx:72
TilePulseShape::loadPulseShape
void loadPulseShape(const TString &fileName)
Definition
TilePulseShape.cxx:47
TilePulseShape::m_deformedShape
TGraph * m_deformedShape
Definition
TilePulseShape.h:41
TilePulseShape::TilePulseShape
TilePulseShape(IMessageSvc *msgSvc, const std::string &name)
Definition
TilePulseShape.cxx:19
TilePulseShape::m_useConfiguredUndershoot
bool m_useConfiguredUndershoot
Definition
TilePulseShape.h:43
Generated on
for ATLAS Offline Software by
1.17.0