ATLAS Offline Software
Loading...
Searching...
No Matches
TileMuFillerTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5/*
6 * File: TileMuFillerTool.cxx
7 * Author: Stephen Cole <stephen.cole@cern.ch>
8 *
9 * Created on January 12, 2012, 3:59 PM
10 */
11
12#include "TileMuFillerTool.h"
13#include "GaudiKernel/MsgStream.h"
14#include "GaudiKernel/ISvcLocator.h"
15#include "GaudiKernel/StatusCode.h"
17
18using namespace std;
19
20namespace D3PD{
21
23 const string& name, const IInterface* parent):
24 BlockFillerTool<TileMu>(type,name,parent)
25{
26 TileMuFillerTool::book().ignore(); // Avoid coverity warnings
27}
28
31
33 CHECK(addVariable("Eta",m_eta));
34 CHECK(addVariable("Phi",m_phi));
35 CHECK(addVariable("EnergyDep0",m_energy0));
36 CHECK(addVariable("EnergyDep1",m_energy1));
37 CHECK(addVariable("EnergyDep2",m_energy2));
38 CHECK(addVariable("EnergyDepNeighbors",m_energy3));
39 CHECK(addVariable("Quality",m_quality));
40
41 return StatusCode::SUCCESS;
42}
43
44StatusCode TileMuFillerTool::fill(const TileMu& p){
45 *m_eta=p.eta();
46 *m_phi=p.phi();
47 *m_energy0=p.enedep()[0];
48 *m_energy1=p.enedep()[1];
49 *m_energy2=p.enedep()[2];
50 *m_energy3=p.enedep()[3];
51
52 return StatusCode::SUCCESS;
53}
54
55}
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)
Type-safe wrapper for block filler tools.
virtual StatusCode book()
Declare tuple variables.
TileMuFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
virtual StatusCode fill(const TileMu &p)
Fill one block — type-safe version.
Class to store TileMuId quantities.
Definition TileMu.h:25
Block filler tool for noisy FEB information.
STL namespace.