ATLAS Offline Software
Loading...
Searching...
No Matches
LArCollisionTimeFillerTool.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
17
18
19namespace D3PD {
20
21
29 (const std::string& type,
30 const std::string& name,
31 const IInterface* parent)
32 : BlockFillerTool<LArCollisionTime> (type, name, parent)
33{
34 book().ignore(); // Avoid coverity warnings
35}
36
37
42{
43 CHECK( addVariable ("ncellA", m_ncellA,
44 "Number of A-side cells for time calculation.") );
45 CHECK( addVariable ("ncellC", m_ncellC,
46 "Number of C-side cells for time calculation.") );
47 CHECK( addVariable ("energyA", m_energyA,
48 "Total A-side energy.") );
49 CHECK( addVariable ("energyC", m_energyC,
50 "Total C-side energy.") );
51 CHECK( addVariable ("timeA", m_timeA,
52 "A-side time.") );
53 CHECK( addVariable ("timeC", m_timeC,
54 "C-side time.") );
55 CHECK( addVariable ("timeDiff", m_timeDiff,
56 "A-C LAr cell time difference.") );
57
58 return StatusCode::SUCCESS;
59}
60
61
71{
72 *m_ncellA = c.ncellA();
73 *m_ncellC = c.ncellC();
74 *m_energyA = c.energyA();
75 *m_energyC = c.energyC();
76 *m_timeA = c.timeA();
77 *m_timeC = c.timeC();
79
80 return StatusCode::SUCCESS;
81}
82
83
84} // namespace D3PD
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Block filler tool for collision time information.
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Type-safe wrapper for block filler tools.
virtual StatusCode book() final
Book variables for this block.
int * m_ncellA
Variable: Number of A-side cells for time calculation.
float * m_timeDiff
Variable: A-C LAr cell time difference.
float * m_energyC
Variable: Total C-side energy.
virtual StatusCode fill(const LArCollisionTime &c) override
Fill one block — type-safe version.
float * m_timeC
Variable: C-side time.
LArCollisionTimeFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
float * m_timeA
Variable: A-side time.
float * m_energyA
Variable: Total A-side energy.
int * m_ncellC
Variable: Number of C-side cells for time calculation.
Holds information about collisions timing from end-cap LAr calorimeters.
Block filler tool for noisy FEB information.