ATLAS Offline Software
Loading...
Searching...
No Matches
ClusterEMSamplingFillerTool.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
14
15#ifndef CALOD3PDMAKER_CLUSTEREMSAMPLINGFILLERTOOL_H
16#define CALOD3PDMAKER_CLUSTEREMSAMPLINGFILLERTOOL_H
17
18
21#include <vector>
22#include <algorithm>
23class CaloCluster;
24
25
26namespace D3PD {
27
28
33 : public BlockFillerTool<Types<CaloCluster, xAOD::CaloCluster> >
34{
35public:
37
38
45 ClusterEMSamplingFillerTool (const std::string& type,
46 const std::string& name,
47 const IInterface* parent);
48
49
51 virtual StatusCode book() override;
52
53
62 virtual StatusCode fill (const CaloCluster& p) override;
63
64
73 virtual StatusCode fill (const xAOD::CaloCluster& p) override;
74
75
76private:
83 template <class T>
84 StatusCode fillT (const T& p);
85
86
87 static const unsigned int NEMSAMP = 4;
88
91
94
97
100 std::vector<int> m_samplings;
101
103 float* m_Es[NEMSAMP];
104
107
110};
111
112
113} // namespace D3PD
114
115
116#endif // not CALOD3PDMAKER_CLUSTEREMSAMPLINGFILLERTOOL_H
Type-safe wrapper for block filler tools.
Principal data class for CaloCell clusters.
Type-safe wrapper for block filler tools.
virtual StatusCode book() override
Book variables for this block.
float * m_etas[NEMSAMP]
Variable: Sampling eta centroids.
bool m_writePhi
Property: Should phi be written?
bool m_writeEnergy
Property: Should energies be written?
virtual StatusCode fill(const CaloCluster &p) override
Fill one block — type-safe version.
float * m_Es[NEMSAMP]
Variable: Sampling energies.
std::vector< int > m_samplings
Property: List of samplings to write (in the range 0-3).
BlockFillerTool< Types< CaloCluster, xAOD::CaloCluster > > Base
float * m_phis[NEMSAMP]
Variable: Sampling phi centroids.
StatusCode fillT(const T &p)
Fill one block.
ClusterEMSamplingFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
bool m_writeEta
Property: Should eta be written?
Block filler tool for noisy FEB information.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.