ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
HeavyIonPhys
HIEventUtils
HIEventUtils
ZdcRecTool.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 HIEVENTUTILS_ZDCRECTOOL_H
6
#define HIEVENTUTILS_ZDCRECTOOL_H
7
8
#include "
AsgTools/AsgTool.h
"
9
#include "
HIEventUtils/IZdcRecTool.h
"
10
#include "
xAODForward/ZdcModuleContainer.h
"
11
#include "
xAODTrigL1Calo/TriggerTowerContainer.h
"
12
13
#include "TF1.h"
14
#include "TMath.h"
15
16
namespace
ZDC
17
{
18
19
double
SincInterp
(
double
* xvec,
double
*
pvec
);
20
double
FermiExpFit
(
double
* xvec,
double
*
pvec
);
21
22
class
ZdcRecTool
:
public
virtual
IZdcRecTool
,
public
asg::AsgTool
23
{
24
25
ASG_TOOL_CLASS
(
ZdcRecTool
,
IZdcRecTool
)
26
27
public
:
28
ZdcRecTool
(
const
std::string& name);
29
virtual
~ZdcRecTool
();
30
31
//interface from AsgTool
32
virtual
StatusCode
initializeTool
()
override
;
33
virtual
StatusCode
initialize
()
override
{
return
initializeTool
();}
34
virtual
StatusCode
recoZdcModule
(
const
xAOD::ZdcModule
& module)
override
;
35
virtual
StatusCode
recoZdcModules
(
const
xAOD::ZdcModuleContainer
& moduleContainer)
override
;
36
virtual
StatusCode
reprocessZdc
()
override
;
37
38
// methods for processing, used for decoration
39
// TODO: documentaton about the arguments of these methods must be written by experts
40
bool
sigprocMaxFinder
(
const
std::vector<unsigned short>& adc,
float
deltaT,
float
& amp,
float
& time,
float
& qual);
41
bool
sigprocPeakFitter
(
const
std::vector<unsigned short>& adc,
float
deltaT,
float
& amp,
float
& time,
float
& qual);
42
bool
sigprocSincInterp
(
const
std::vector<unsigned short>& adc,
float
deltaT,
float
& amp,
float
& time,
float
& qual);
43
44
private
:
45
46
// internal functions - moved to private accoding to T.Bold request while merging into master
47
TF1*
m_tf1SincInterp
=
nullptr
;
48
TF1*
m_tf1FermiExpFit
=
nullptr
;
49
50
// Name of the ZDC rec tool
51
std::string
m_name
;
52
// Boolean to flag initialization
53
bool
m_init
;
54
// Path to the configuring file
55
std::string
m_zdcRecConfigPath
;
56
57
bool
m_eventReady
=
false
;
58
std::string
m_zdcModuleContainerName
;
59
const
xAOD::ZdcModuleContainer
*
m_zdcModules
=
nullptr
;
60
61
};
62
63
}
// namespace ZDC
64
65
#endif
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
pvec
std::array< fp_t, 2 > pvec
Definition
FPGATrackSimLLPDoubletHoughTransformTool.cxx:9
IZdcRecTool.h
TriggerTowerContainer.h
ZdcModuleContainer.h
ZDC::IZdcRecTool
Definition
IZdcRecTool.h:15
ZDC::ZdcRecTool::sigprocMaxFinder
bool sigprocMaxFinder(const std::vector< unsigned short > &adc, float deltaT, float &, float &time, float &qual)
Definition
ZdcRecTool.cxx:98
ZDC::ZdcRecTool::ZdcRecTool
ZdcRecTool(const std::string &name)
Definition
ZdcRecTool.cxx:14
ZDC::ZdcRecTool::m_tf1FermiExpFit
TF1 * m_tf1FermiExpFit
Definition
ZdcRecTool.h:48
ZDC::ZdcRecTool::m_zdcModuleContainerName
std::string m_zdcModuleContainerName
Definition
ZdcRecTool.h:58
ZDC::ZdcRecTool::m_zdcRecConfigPath
std::string m_zdcRecConfigPath
Definition
ZdcRecTool.h:55
ZDC::ZdcRecTool::m_init
bool m_init
Definition
ZdcRecTool.h:53
ZDC::ZdcRecTool::sigprocSincInterp
bool sigprocSincInterp(const std::vector< unsigned short > &adc, float deltaT, float &, float &time, float &qual)
Definition
ZdcRecTool.cxx:152
ZDC::ZdcRecTool::sigprocPeakFitter
bool sigprocPeakFitter(const std::vector< unsigned short > &adc, float deltaT, float &, float &time, float &qual)
Definition
ZdcRecTool.cxx:125
ZDC::ZdcRecTool::m_eventReady
bool m_eventReady
Definition
ZdcRecTool.h:57
ZDC::ZdcRecTool::m_name
std::string m_name
Definition
ZdcRecTool.h:51
ZDC::ZdcRecTool::m_tf1SincInterp
TF1 * m_tf1SincInterp
Definition
ZdcRecTool.h:47
ZDC::ZdcRecTool::~ZdcRecTool
virtual ~ZdcRecTool()
Definition
ZdcRecTool.cxx:26
ZDC::ZdcRecTool::recoZdcModules
virtual StatusCode recoZdcModules(const xAOD::ZdcModuleContainer &moduleContainer) override
Definition
ZdcRecTool.cxx:67
ZDC::ZdcRecTool::recoZdcModule
virtual StatusCode recoZdcModule(const xAOD::ZdcModule &module) override
Definition
ZdcRecTool.cxx:53
ZDC::ZdcRecTool::reprocessZdc
virtual StatusCode reprocessZdc() override
Definition
ZdcRecTool.cxx:82
ZDC::ZdcRecTool::m_zdcModules
const xAOD::ZdcModuleContainer * m_zdcModules
Definition
ZdcRecTool.h:59
ZDC::ZdcRecTool::initializeTool
virtual StatusCode initializeTool() override
Initialize the tool.
Definition
ZdcRecTool.cxx:31
ZDC::ZdcRecTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
ZdcRecTool.h:33
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
ZDC
Definition
LISAnalysisTool.cxx:19
ZDC::SincInterp
double SincInterp(const double *xvec, const double *pvec)
Definition
ZdcSincInterp.cxx:11
ZDC::FermiExpFit
double FermiExpFit(double *xvec, double *pvec)
Definition
ZdcRecTool.cxx:184
xAOD::ZdcModuleContainer
ZdcModuleContainer_v1 ZdcModuleContainer
Definition
ZdcModuleContainer.h:18
xAOD::ZdcModule
ZdcModule_v1 ZdcModule
Definition
ZdcModule.h:15
Generated on
for ATLAS Offline Software by
1.17.0