ATLAS Offline Software
Loading...
Searching...
No Matches
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
8NAME: CaloCellContainerFCSFinalizerTool
9PACKAGE: athena/Simulation/FastShower/FastCaloSim
10
11AUTHORS: David Rousseau (modified by Xiaozhong Huang)
12CREATED: Jan 25,2019
13
14PURPOSE: Apply necessary finalising operation to CaloCellContainer
15 Remove any checks since the CaloCellContainer is complete
16 and ordered from the beginning
17********************************************************************/
18
20
23
25// CONSTRUCTOR:
27
29 const std::string& type,
30 const std::string& name,
31 const IInterface* parent)
32 :base_class(type, name, parent)
33{
34}
35
36
37template <class CONTAINER>
38StatusCode CaloCellContainerFCSFinalizerTool::doProcess(CONTAINER* theCont ) const
39{
40
41 theCont->updateCaloIterators();
42
43 return StatusCode::SUCCESS;
44}
45
46
47StatusCode
49 const EventContext& /*ctx*/) const
50{
51 CHECK( doProcess (theCont) );
52 return StatusCode::SUCCESS;
53}
54
55
56StatusCode
58 const EventContext& /*ctx*/) const
59{
60 // Container will automatically be locked when recorded.
61 return doProcess (theCont);
62}
CaloCellContainer that can accept const cell pointers.
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode doProcess(CONTAINER *theCellContainer) const
virtual StatusCode process(CaloCellContainer *theCellContainer, const EventContext &ctx) const override
CaloCellContainerFCSFinalizerTool(const std::string &type, const std::string &name, const IInterface *parent)
Container class for CaloCell.
CaloCellContainer that can accept const cell pointers.