ATLAS Offline Software
Loading...
Searching...
No Matches
MBTSTimeFillerTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5// $Id$
12
13
14#include "MBTSTimeFillerTool.h"
17
18
19namespace D3PD {
20
21
29 (const std::string& type,
30 const std::string& name,
31 const IInterface* parent)
32 : BlockFillerTool<void> (type, name, parent),
33 m_timetool ("MBTSTimeFilterTool")
34{
35 declareProperty ("TimeTool", m_timetool,
36 "Tool to calculate MBTS times.");
37
38 book().ignore(); // Avoid coverity warnings
39}
40
41
46{
47 CHECK( m_timetool.retrieve() );
48 return StatusCode::SUCCESS;
49}
50
51
56{
57 CHECK( addVariable ("timeDiff", m_timeDiff,
58 "MBTS A-C time difference.") );
59 CHECK( addVariable ("timeA", m_timeA,
60 "MBTS A-side time.") );
61 CHECK( addVariable ("timeC", m_timeC,
62 "MBTS C-side time.") );
63 CHECK( addVariable ("countA", m_countA,
64 "Number of A-side MBTS counters used for time.") );
65 CHECK( addVariable ("countC", m_countC,
66 "Number of C-side MBTS counters used for time.") );
67
68 return StatusCode::SUCCESS;
69}
70
71
76{
78 CHECK( m_timetool->getTimeDifference (time_info) );
79 *m_timeDiff = time_info.timeDiff;
80 *m_timeA = time_info.timeA;
81 *m_timeC = time_info.timeC;
82 *m_countA = time_info.ncellA;
83 *m_countC = time_info.ncellC;
84 return StatusCode::SUCCESS;
85}
86
87
88} // namespace D3PD
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
BlockFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
int * m_countC
Variable: Number of C-side MBTS counters used for time.
virtual StatusCode book() final
Book variables for this block.
float * m_timeA
Variable: MBTS A-side time.
float * m_timeDiff
Variable: MBTS A-C time difference.
ToolHandle< MBTSTimeFilterTool > m_timetool
Property: The tool to calculate the time information.
virtual StatusCode initialize() override
Standard Gaudi initialize method.
virtual StatusCode fill() override
Fill one block — type-safe version.
float * m_timeC
Variable: MBTS C-side time.
MBTSTimeFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
int * m_countA
Variable: Number of A-side MBTS counters used for time.
Block filler tool for noisy FEB information.
Simple helper struct used to obtain the timing information by the IMBTSTimeFilter and ICaloTimerFilte...