ATLAS Offline Software
Simulation
FastShower
FastCaloSim
src
CaloCellContainerFCSFinalizerTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
// Used in ATLFAST3
5
6
/********************************************************************
7
8
NAME: CaloCellContainerFCSFinalizerTool
9
PACKAGE: athena/Simulation/FastShower/FastCaloSim
10
11
AUTHORS: David Rousseau (modified by Xiaozhong Huang)
12
CREATED: Jan 25,2019
13
14
PURPOSE: Apply necessary finalising operation to CaloCellContainer
15
Remove any checks since the CaloCellContainer is complete
16
and ordered from the beginning
17
********************************************************************/
18
19
#include "
CaloCellContainerFCSFinalizerTool.h
"
20
21
#include "
CaloEvent/CaloCellContainer.h
"
22
#include "
CaloEvent/CaloConstCellContainer.h
"
23
25
// CONSTRUCTOR:
27
28
CaloCellContainerFCSFinalizerTool::CaloCellContainerFCSFinalizerTool
(
29
const
std::string&
type
,
30
const
std::string&
name
,
31
const
IInterface*
parent
)
32
:base_class(
type
,
name
,
parent
)
33
{
34
}
35
36
37
template
<
class
CONTAINER>
38
StatusCode
CaloCellContainerFCSFinalizerTool::doProcess
(CONTAINER* theCont )
const
39
{
40
41
theCont->updateCaloIterators();
42
43
return
StatusCode::SUCCESS;
44
}
45
46
47
StatusCode
48
CaloCellContainerFCSFinalizerTool::process
(
CaloCellContainer
* theCont,
49
const
EventContext&
/*ctx*/
)
const
50
{
51
CHECK
(
doProcess
(theCont) );
52
return
StatusCode::SUCCESS;
53
}
54
55
56
StatusCode
57
CaloCellContainerFCSFinalizerTool::process
(
CaloConstCellContainer
* theCont,
58
const
EventContext&
/*ctx*/
)
const
59
{
60
// Container will automatically be locked when recorded.
61
return
doProcess
(theCont);
62
}
CaloCellContainerFCSFinalizerTool::doProcess
StatusCode doProcess(CONTAINER *theCellContainer) const
Definition:
CaloCellContainerFCSFinalizerTool.cxx:38
CaloCellContainerFCSFinalizerTool::process
virtual StatusCode process(CaloCellContainer *theCellContainer, const EventContext &ctx) const override
Definition:
CaloCellContainerFCSFinalizerTool.cxx:48
CaloCellContainerFCSFinalizerTool::CaloCellContainerFCSFinalizerTool
CaloCellContainerFCSFinalizerTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
CaloCellContainerFCSFinalizerTool.cxx:28
CaloCellContainerFCSFinalizerTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition:
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
CaloCellContainer.h
CaloCellContainer
Container class for CaloCell.
Definition:
CaloCellContainer.h:55
CaloConstCellContainer
CaloCellContainer that can accept const cell pointers.
Definition:
CaloConstCellContainer.h:45
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
CaloConstCellContainer.h
CaloCellContainer that can accept const cell pointers.
Generated on Mon Dec 23 2024 21:07:45 for ATLAS Offline Software by
1.8.18