ATLAS Offline Software
Loading...
Searching...
No Matches
ClusterSamplingFillerTool.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_CLUSTERSAMPLINGFILLERTOOL_H
16#define CALOD3PDMAKER_CLUSTERSAMPLINGFILLERTOOL_H
17
18
22#include <vector>
23
24namespace D3PD {
25
30 : public BlockFillerTool< xAOD::CaloCluster >
31{
32public:
34
35
42 ClusterSamplingFillerTool (const std::string& type,
43 const std::string& name,
44 const IInterface* parent);
45
46
47 virtual StatusCode initialize() override;
48
50 virtual StatusCode book() override;
51
52
61 virtual StatusCode fill (const xAOD::CaloCluster& p) override;
62
63
64private:
69 template <class T>
70 StatusCode fillEtamax (const T& p);
71
72
79 StatusCode fillSamplings (const std::vector<double>& eSamp,
80 const std::vector<double>& etaSamp,
81 const std::vector<double>& phiSamp);
82
83
84 static const unsigned int NSAMP = 24;
85
87 std::vector<unsigned int> m_samplings;
88
96
98 float* m_Eem;
99 float* m_Ehad;
100
102 float* m_Es[NSAMP];
103
105 float* m_etas[NSAMP];
106
108 float* m_phis[NSAMP];
109
112
115
118
119 unsigned int* m_RecoStatus;
121 this,
122 "CaloDetDescrManager",
123 "CaloDetDescrManager",
124 "SG Key for CaloDetDescrManager in the Condition Store"
125 };
126};
127
128} // namespace D3PD
129
130
131#endif // not CALOD3PDMAKER_CLUSTERSAMPLINGFILLERTOOL_H
Type-safe wrapper for block filler tools.
Type-safe wrapper for block filler tools.
float * m_Es[NSAMP]
Variable: Sampling energies.
BlockFillerTool< xAOD::CaloCluster > Base
float * m_Eem
Variable: total EM and HAD energies.
ClusterSamplingFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
float * m_etamax[NSAMP]
Variable: Eta of maximum energy.
float * m_raw_phis[NSAMP]
Variable: Sampling raw phi centroids.
float * m_raw_etas[NSAMP]
Variable: Sampling raw eta centroids.
float * m_phis[NSAMP]
Variable: Sampling phi centroids.
virtual StatusCode initialize() override
std::vector< unsigned int > m_samplings
Parameter: Samplings to write. Empty means to write all.
float * m_etas[NSAMP]
Variable: Sampling eta centroids.
virtual StatusCode book() override
Book variables for this block.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
StatusCode fillSamplings(const std::vector< double > &eSamp, const std::vector< double > &etaSamp, const std::vector< double > &phiSamp)
Fill sampling variables.
StatusCode fillEtamax(const T &p)
Fill etamax/reco status.
Block filler tool for noisy FEB information.
virtual StatusCode fill()
Fill one object.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.