2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
7 * @file D3PDMakerInterfaces/IBlockFillerTool.icc
8 * @author scott snyder <snyder@bnl.gov>
10 * @brief Abstract interface for tool to fill a block in the D3PD.
18 * @brief StatusCode check helper: change @c AGAIN or @c EMPTY to @c SUCCESS.
19 * @param sc The StatusCode to check.
21 * If @a sc is @c AGAIN or @c EMPTY, then return @c SUCCESS.
22 * Otherwise, return @a sc.
25 StatusCode IBlockFillerTool::againok (StatusCode sc)
27 if (sc.getCode() == AGAIN || sc.getCode() == EMPTY)
28 sc = StatusCode::SUCCESS;
34 * @brief StatusCode check helper: change @c AGAIN or @c EMPTY to @c SUCCESS.
35 * @param sc The StatusCode to check.
36 * @param scout[out] Accumulated status code.
38 * If @a sc is @c AGAIN or @c EMPTY, then return @c SUCCESS.
39 * Otherwise, return @a sc.
41 * If @a sc is @c AGAIN, then @a scout will be set to @c AGAIN.
42 * Otherwise, if @a sc is not @c EMPTY, then @c scout will be set to @c sc.
45 StatusCode IBlockFillerTool::againok (StatusCode sc, StatusCode& scout)
47 if (sc.getCode() == AGAIN) {
48 sc = StatusCode::SUCCESS;
49 scout = StatusCode(AGAIN);
51 if (sc.getCode() == EMPTY)
52 sc = StatusCode::SUCCESS;